How to make Veritas disk online
1. Set the "remove" flag.
To be able to get the disks back in the disk-group, we need to be able to reinitialize them. To reinitialize the disks, disks have to be removed from the disk-group. To be able to remove disks with the failed flag on, the -k flag has to be used with the rmdisk command.
#vxdg -k -g rootdg rmdisk disk02
NOTE: "failed" flag will be replaced by "removed" flag.
2. Uninitialize the disk.
#cd /usr/lib/vxvm/bin
#./vxdiskunsetup -C c5t1d0
NOTE: Disk status changes from error state to offline state.
3. Initialize the disk.
#./vxdisksetup -I c5t1d0
NOTE: Disk status changes from offline status to online status.
4. "Add" the disk to the disk-group.
NOTE: To add the disks back in the disk-group, the adddisk command has to be used with the -k flag. With this command automatically the vxvm header information of the "failed" vxvm disks is updated with the existing disk-group information.
#vxdg -k -g rootdg adddisk disk02=c5t1d0
NOTE: The "removed" flag is set to off and as a result no more "removed was:" messages. The disks are also again part of there original disk-groups.
5. Re-synchronize the volumes.
#vxrecover -g rootdg -sb
Note:
-s start any disabled volumes
-b execute vxrecover in the background
6. Run vxtask list to check the progress.
1. Set the "remove" flag.
To be able to get the disks back in the disk-group, we need to be able to reinitialize them. To reinitialize the disks, disks have to be removed from the disk-group. To be able to remove disks with the failed flag on, the -k flag has to be used with the rmdisk command.
#vxdg -k -g rootdg rmdisk disk02
NOTE: "failed" flag will be replaced by "removed" flag.
2. Uninitialize the disk.
#cd /usr/lib/vxvm/bin
#./vxdiskunsetup -C c5t1d0
NOTE: Disk status changes from error state to offline state.
3. Initialize the disk.
#./vxdisksetup -I c5t1d0
NOTE: Disk status changes from offline status to online status.
4. "Add" the disk to the disk-group.
NOTE: To add the disks back in the disk-group, the adddisk command has to be used with the -k flag. With this command automatically the vxvm header information of the "failed" vxvm disks is updated with the existing disk-group information.
#vxdg -k -g rootdg adddisk disk02=c5t1d0
NOTE: The "removed" flag is set to off and as a result no more "removed was:" messages. The disks are also again part of there original disk-groups.
5. Re-synchronize the volumes.
#vxrecover -g rootdg -sb
Note:
-s start any disabled volumes
-b execute vxrecover in the background
6. Run vxtask list to check the progress.
No comments:
Post a Comment