remove a mapped LUN in guest domain

-bash-4.1# ldm stop  gestdom1

LDom gestdom1 stopped

 

-bash-4.1# ldm unbind gestdom1

 

Check the volume (vAF) want to remove on the VDisk.

 

-bash-4.1# ldm rm-vdsdev vAF@primary-vds0

 

Figure out the disk name (here is vd1) mapped into the guest domain to remove.

 

-bash-4.1#  ldm ls-dom -e  gestdom1

NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME

gestdom1        inactive   ——          16    32G

 

UUID   …

CONTROL

failure-policy=ignore

extended-mapin-space=off

cpu-arch=native

 

DEPENDENCY

master=primary

 

CORE

COUNT:    2

 

MEMORY

SIZE:    32G

 

CONSTRAINT

threading=max-throughput

 

VARIABLES

boot-command=boot

boot-device=disk:a

pm_boot_policy=disabled=1;ttfc=0;ttmr=0;

use-nvramrc?=true

 

NETWORK

NAME             SERVICE                     ID   DEVICE     MAC               MODE   PVID VID                  MTU   LINKPROP

vnet1            primary-vsw0                1               00:xxxx       1                         1500

 

DISK

NAME             VOLUME                      TOUT ID   DEVICE  SERVER         MPGROUP

vd0              vAB@primary-vds0                 0

vd4              vB3@primary-vds0                 1

vd3              vB2@primary-vds0                 2

vd2              vAE@primary-vds0                 3

vd1              vAF@primary-vds0                 4

 

VLDCC

NAME             SERVICE                     DESC

ds               primary-vldc0@primary       domain-services

 

-bash-4.1# ldm remove-vdisk vd1  guestdom1