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!

This article was posted by Matty on 2007-03-17 10:33:00 -0400 EDT