Issue
Duplicate devices visible in "vxdisk list", getting error V-5-1-8645
Solution
In case of some of Sun servers, the internal hard disks are fibre
channel drives. In occurance of any failure to these drives, some steps
should be followed as explained in bottom.
Explanation:
If disk is directly removed from the server, that might leave the stale wwn number into configuration of operating system because of which Veritas is not able to correctly determine the device.
As a result of this, you might see duplicate entries in "vxdisk list" output. In this case even device tree cleaning doesn't helps rather you see error in the last step:
here is the procedure to clean device tree:
# mv /etc/vx/disk.info /etc/vx/disk.info.old
# rm /dev/vx/rdmp/*
# rm /dev/vx/dmp/*
# rm /dev/rdsk/*
# rm /dev/dsk/*
# devfsadm -Cv
# vxconfigd -k
In last step above, When you do "vxconfigd -k" to rebuild the DMP device tree structure, you get following error:
# vxconfigd -k
cx600_claim_device(standard): do_inquiry failed for /dev/rdsk/c1t0d0s2, ret 5
VxVM vxconfigd ERROR V-5-1-8645 Error in claiming /dev/rdsk/c1t0d0s2 by NR list: I/O error
In this situation, you will need to do a reconfigure reboot to resolve this issue.
Recommendation:
If you want to avoid getting into above scenario, use following steps:
1. Remove the disk from Veritas configuration
#vxdisk rm <device>
2. Remove the device from Operating System
# luxadm disp /dev/rdsk/c1t0d0s2 (not the WWN number)
# luxadm remove_device /dev/rdsk/c1t0d0s2
3. Above step will tell you to now remove device physically
4. Scan the OS for rebuilding device tree to understand no more disk exists in that slot.
# devfsadm -Cv
5. Insert the disk back
6. Scan the OS once again for new device
# devfsadm -Cv
7. Verify from OS that you can see the disk
# luxadm disp /dev/rdsk/c1t0d0s2 (ensure you see new WWN number)
# format (try accessing or labeling the disk)
7. Scan veritas device tree structure to recognize new device
# vxdctl enable
8. Proceed with mirroring if you want
# vxdiskadm (option 6)
This would generate a clean device structure for OS & Veritas.
Explanation:
If disk is directly removed from the server, that might leave the stale wwn number into configuration of operating system because of which Veritas is not able to correctly determine the device.
As a result of this, you might see duplicate entries in "vxdisk list" output. In this case even device tree cleaning doesn't helps rather you see error in the last step:
here is the procedure to clean device tree:
# mv /etc/vx/disk.info /etc/vx/disk.info.old
# rm /dev/vx/rdmp/*
# rm /dev/vx/dmp/*
# rm /dev/rdsk/*
# rm /dev/dsk/*
# devfsadm -Cv
# vxconfigd -k
In last step above, When you do "vxconfigd -k" to rebuild the DMP device tree structure, you get following error:
# vxconfigd -k
cx600_claim_device(standard): do_inquiry failed for /dev/rdsk/c1t0d0s2, ret 5
VxVM vxconfigd ERROR V-5-1-8645 Error in claiming /dev/rdsk/c1t0d0s2 by NR list: I/O error
In this situation, you will need to do a reconfigure reboot to resolve this issue.
Recommendation:
If you want to avoid getting into above scenario, use following steps:
1. Remove the disk from Veritas configuration
#vxdisk rm <device>
2. Remove the device from Operating System
# luxadm disp /dev/rdsk/c1t0d0s2 (not the WWN number)
# luxadm remove_device /dev/rdsk/c1t0d0s2
3. Above step will tell you to now remove device physically
4. Scan the OS for rebuilding device tree to understand no more disk exists in that slot.
# devfsadm -Cv
5. Insert the disk back
6. Scan the OS once again for new device
# devfsadm -Cv
7. Verify from OS that you can see the disk
# luxadm disp /dev/rdsk/c1t0d0s2 (ensure you see new WWN number)
# format (try accessing or labeling the disk)
7. Scan veritas device tree structure to recognize new device
# vxdctl enable
8. Proceed with mirroring if you want
# vxdiskadm (option 6)
This would generate a clean device structure for OS & Veritas.
No comments:
Post a Comment