Replacing a rootdisk if vxdiskadm fails
Page 1 of 1
Replacing a rootdisk if vxdiskadm fails
In the event that vxdskadm fails to properly initialize a rootdisk for replacement, it is required that you remove the disk and all its associations from the diskgroup and then rebuild from scratch. Here are the steps to achieve this:
# vxdg -g rootdg -k rmdisk rootdisk
# vxprint -htg rootdg - remove the plexes associated with the original disk i.e ones marked disabled, nodevice
# vxplex dis <plex> (all plexes associated with rootdisk)
# vxedit -r rm <plex> (all plexes assiciated with rootdisk)
# vxedit rm rootdisk
# vxdisk list - There should be no removed entry at this point.
# vxdisk rm c#t#d#s2 (rootdisk)
# format - Zero out all partitions except for slice 2 and the label
# vxdctl enable
# vxdisksetup -i c#t#d# (rootdisk)
# vxdg -g rootdg adddisk rootdisk=c#t#d#
# vxdiskadm - select option 6 to mirror and choose the rootmirror as the disk to mirror, the destination disk will be the rootdisk
# prtvtoc /dev/rdsk/c#t#d#s2 - Check the partitions are ok
# vxdg -g rootdg -k rmdisk rootdisk
# vxprint -htg rootdg - remove the plexes associated with the original disk i.e ones marked disabled, nodevice
# vxplex dis <plex> (all plexes associated with rootdisk)
# vxedit -r rm <plex> (all plexes assiciated with rootdisk)
# vxedit rm rootdisk
# vxdisk list - There should be no removed entry at this point.
# vxdisk rm c#t#d#s2 (rootdisk)
# format - Zero out all partitions except for slice 2 and the label
# vxdctl enable
# vxdisksetup -i c#t#d# (rootdisk)
# vxdg -g rootdg adddisk rootdisk=c#t#d#
# vxdiskadm - select option 6 to mirror and choose the rootmirror as the disk to mirror, the destination disk will be the rootdisk
# prtvtoc /dev/rdsk/c#t#d#s2 - Check the partitions are ok
suran- Posts : 15
Join date : 2008-04-10
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|