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 :)

Dell omreport disk status

[root@myserver tmp]# omreport storage controller
 Controller  PERC H710P Mini (Embedded)

Controllers
ID                                            : 0
Status                                        : Ok
Name                                          : PERC H710P Mini
Slot ID                                       : Embedded
State                                         : Ready
Firmware Version                              : 21.2.0-0007
Minimum Required Firmware Version             : Not Applicable
Driver Version                                : 00.00.06.14-rh1
Minimum Required Driver Version               : Not Applicable
Storport Driver Version                       : Not Applicable
Minimum Required Storport Driver Version      : Not Applicable
Number of Connectors                          : 1
Rebuild Rate                                  : 30%
BGI Rate                                      : 30%
Check Consistency Rate                        : 30%
Reconstruct Rate                              : 30%
Alarm State                                   : Not Applicable
Cluster Mode                                  : Not Applicable
SCSI Initiator ID                             : Not Applicable
Cache Memory Size                             : 1024 MB
Patrol Read Mode                              : Auto
Patrol Read State                             : Stopped
Patrol Read Rate                              : 30%
Patrol Read Iterations                        : 18
Abort Check Consistency on Error              : Disabled
Allow Revertible Hot Spare and Replace Member : Enabled
Load Balance                                  : Not Applicable
Auto Replace Member on Predictive Failure     : Disabled
Redundant Path view                           : Not Applicable
CacheCade Capable                             : Yes
Persistent Hot Spare                          : Disabled
Encryption Capable                            : Yes
Encryption Key Present                        : No
Encryption Mode                               : None
Preserved Cache                               : No
Spin Down Unconfigured Drives                 : Disabled
Spin Down Hot Spares                          : Disabled
Spin Down Configured Drives                   : Disabled
Automatic Disk Power Saving (Idle C)          : Disabled
Time Interval for Spin Down (in Minutes)      : Not Applicable
Start Time (HH:MM)                            : Not Applicable

[root@myserver tmp]# omreport storage vdisk controller=0
Virtual Disk 0 on Controller PERC H710P Mini (Embedded)

Controller PERC H710P Mini (Embedded)
ID                        : 0
Status                    : Ok
Name                      : Virtual Disk 0
State                     : Ready
Hot Spare Policy violated : Not Assigned
Encrypted                 : No
Layout                    : RAID-1
Size                      : 278.88 GB (299439751168 bytes)
Device Name               : /dev/sda
Bus Protocol              : SAS
Media                     : HDD
Read Policy               : Adaptive Read Ahead
Write Policy              : Write Back
Cache Policy              : Not Applicable
Stripe Element Size       : 64 KB
Disk Cache Policy         : Disabled