Removing a ghost disk from VxVM control

If VxVM 5.0 is installed, you may need to remove a ghost disk from VxVM control before using hadevice utility (except -r option).

If you check the ghost disk's status using the hadevice -c hdisk# command, you get an error. The error reads: V-16-10011-10237 Error opening the device /dev/hdisk# (The file access permissions do not allow the specified action.) Check if the ghost disk is under VxVM control. You can do this using the vxdisk -eq list command. If the disk is under VxVM control, remove it using the vxdisk rm vxvm_disk_name.

In this example, hdisk4 is a ghost disk.

   sysA# vxdisk -eq list
    Disk_0          auto      -          -         LVM        disk0
    HDS9500-ALUA0_0 auto      -          -         error      hdisk4
    HDS9500-ALUA0_1 auto      -          -         online     hdisk2
    HDS9500-ALUA0_2 auto      -          -         online     hdisk3

    sysA# vxdisk rm HDS9500-ALUA0_0