Remove disks from vxvm control in a m9000 for dynamic reconfig

If when you want to remove a XSB from a domain you get the message that the OS disks are being used by VxVM, and you know they’re not:

XSCF> deleteboard -c disconnect 09-0
XSB#09-0 will be unconfigured from domain immediately. Continue?[y|n] :y
Start unconfiguring XSB from domain.                                               Resource              Information
------------------  -------------------------
/dev/dsk/c1t0d0s2   Device being used by VxVM
/dev/dsk/c1t1d0s2   Device being used by VxVM
XSB#09-0 could not be unconfigured from DomainID 2 due to operating system error.

The message “Device being used by VxVM” can be a bit misleading. They are not in use by VxVM, they’re in use by VxDMP!!!!

To remove this dependency you need to remove them from dmp by doing something like:

vxdisk -o alldgs list | egrep '^c0|^c1' | awk '{ print $1 }' | while read d;do vxdmpadm -f disable path=$d; done

After this you can remove the XSB using “deleteboard -c disconnect” without the “device being used by vxvm” error message :)

Leave a Reply

Your email address will not be published. Required fields are marked *