The example below is showing duplicate entries in vxdisk list along with an error status:
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
ct0d0s2 sliced rootdisk rootdg online
c4t0d0s2 sliced rootmirror rootdg online
c6t32d0s2 sliced testdg02 testdg error
c6t32d0s2 sliced - - error
c6t33d0s2 sliced testdg03 testdg error
c6t33d0s2 sliced - - error
c6t34d0s2 sliced - - error
c6t34d0s2 sliced testdg04 testdg error
c6t35d0s2 sliced testdg05 testdg error
c6t35d0s2 sliced - - error
c6t58d0s2 sliced testdg06 testdg error
c6t58d0s2 sliced - - error
However, vxprint -ht -g testdg shows that the testvol volume is ENABLED and ACTIVE:
v testvol - ENABLED ACTIVE 314572800 RAID - raid5
pltestvol-01 testvol ENABLED ACTIVE 314592960RAID 4/32 RW
sdtestdg02-01 testvol-01 testdg020 176784930/0 c6t32d0 ENA
sdtestdg03-01 testvol-01 testdg030 176784930/17678493 c6t33d0 ENA
sdtestdg04-01 testvol-01 testdg040 170752050/35356986 c6t34d0 ENA
sdtestdg05-01 testvol-01 testdg050 176784931/0 c6t35d0 ENA
Data on the disks remains accessible through VERITAS Volume Manager (VxVM) and the mounted file system. Therefore, vxdisk list displays incorrect information regarding the duplicate entries, and being in an error status.
Solution 1:
With Storage Foundation 5.0 MP3, and above the following commands can be tried first without restarting vxconfigd:
# rm /etc/vx/disk.info
# rm /dev/vx/dmp/*
# rm /dev/vx/rdmp/*
# vxddladm -c assign names
Solution2:
With any version prior to 5.0 MP3 where the disk.info file exists, vxconfigd must be restarted in order to recreate the dmp nodes, and the disk.info file.
IMPORTANT: If this is part of a VCS cluster, freeze all service groups before running these commands.
# rm /etc/vx/disk.info
# rm /dev/vx/dmp/*
# rm /dev/vx/rdmp/*
# vxconfigd -k
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c3t0d0s2 sliced rootdisk rootdg online
c4t0d0s2 sliced rootmirror rootdg online
c6t32d0s2 sliced testdg02 testdg online
c6t33d0s2 sliced testdg03 testdg online
c6t34d0s2 sliced testdg04 testdg online
c6t35d0s2 sliced testdg05 testdg online
c6t58d0s2 sliced testdg06 testdg online