Skip to main content

3.2.21 Configuring a Virtual Disk Server


3.2.21 Configuring a Virtual Disk Server
Use the following commands to configure a virtual disk server.
Table 3-24  Commands for Configuring a Virtual Disk Server
Command Functional Outline
ldm add-vdiskserverdevice Adds a device volume to a virtual disk server.
ldm remove-vdiskserverdevice Removes a device volume from a virtual disk server.
ldm add-vdiskserverdevice command
Use the ldm add-vdiskserverdevice command to add a volume to a virtual disk server.
# ldm add-vdiskserverdevice backend volume-name@service-name
  1. backend
    Specify a physical disk path. In addition to a file, you can specify the path of a disk, disk slice, etc. for backend.
  2. volume-name
    Specify a volume name that is unique within the virtual disk server.
  3. service-name
    Specify a virtual disk service name.
The following example creates and adds a file of 100 GB as a volume of the disk server primary-vds0.
# mkfile 100g /ldoms/domain/test/fdisk1
# ldm add-vdiskserverdevice /ldoms/domain/test/fdisk1 vol2@primary-vds0
Idm remove-vdiskserverdevice command
Use the ldm remove-vdiskserverdevice command to delete a volume from a virtual disk server.
# ldm remove-vdiskserverdevice volume-name@service-name
  1. volume-name
    Specify a volume name.
  2. service-name
    Specify a virtual disk server name.
The following example deletes the volume vol2 from the virtual disk server primary-vds0.
# ldm remove-vdiskserverdevice vol2@primary-vds0