Removing duplicate devices from vxdisk list
I replaced a disk in one of our A5200s last week, and noticed that vxdisk was displaying two entries for the device once I replaced it with vxdiskadm:
$ vxdisk list
DEVICE TYPE DISK GROUP STATUS c7t21d0s2 sliced disk01 oradg online c7t22d0s2 sliced disk02 oradg error c7t22d0s2 sliced - - error c7t23d0s2 sliced disk03 oradg online
To fix this annoyance, I first removed the disk disk02 from the oradg disk group:
$ vxdg -g oradg rmdisk disk02
Once the disk was removed, I ran vxdisk “remove” two times to remove both disk access records:
$ vxdisk rm c7t22d0s2
$ vxdisk rm c7t22d0s2
After both device access records were removed, I executed ‘devfsadm -C’ to clean the Solaris device tree, and then ran ‘vxdctl enable’ to have Veritas update the list of devices it knows about. After these oeprations completed, the device showed up once in the vxdisk output:
$ vxdisk list
DEVICE TYPE DISK GROUP STATUS c7t21d0s2 sliced disk01 oradg online c7t22d0s2 sliced disk02 oradg online c7t23d0s2 sliced disk03 oradg online
I have seen times where the Solaris device tree will hold on to old entries, which unfortunately requires a reboot to fix. Luckily for me, this wasn’t the case with my system. Shibby!








martin on May 30th, 2007
If a luxadm remove_device fails you can often end up with duplicate entries when you insert a new disk. Follow this veritas process to clear the duplicate entries.
http://seer.support.veritas.com/docs/264725.htm
The key is to use “luxadm -e offline” against the raw /devices nodes for the wwn of the failed disk.
e.g. luxadm -e offline /devices/pci@8,700000/SUNW,qlc@2/fp@0,0/ssd@w2100002037f81f0e,0:c,raw
This has to be done once for each path for multi-pathed disks.