Skip to main content

3.2.22 Configuring a Virtual Disk


3.2.22 Configuring a Virtual Disk
Use the following commands to configure a virtual disk.
Table 3-25  Commands for Configuring a Virtual Disk
Command Functional Outline
ldm add-vdisk Adds a virtual disk.
ldm remove-vdisk Removes a virtual disk.
ldm add-vdisk command
Use the ldm add-vdisk command to add a virtual device as a virtual disk to a guest domain.
# ldm add-vdisk disk-name volume-name@service-name ldom
  1. disk-name
    Specify a virtual disk name.
  2. volume-name
    Specify the device name of the existing virtual disk server to be connected.
  3. service-name
    Specify the name of the existing virtual disk server to be connected.
  4. ldom
    Specify the logical domain.
The following example adds the added device vol2 of the virtual disk server primary-vds0 as the virtual disk vdisk1 to the guest domain ldom1.
# ldm add-vdisk vdisk1 vol2@primary-vds0 ldom1
ldm remove-vdisk command
Use the ldm remove-vdisk command to remove a virtual disk from a guest domain.
# ldm remove-vdisk disk-name ldom
  1. disk-name
    Specify a virtual disk name.
  2. ldom
    Specify the logical domain name.
The following example removes the virtual disk vdisk2 from the guest domain ldom1.
# ldm remove-vdisk vdisk2 ldom1