Replacing a rootdisk if vxdiskadm fails

View previous topic View next topic Go down

Replacing a rootdisk if vxdiskadm fails

Post by suran on Mon Apr 14, 2008 4:43 pm

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

suran

Posts : 15
Join date : 2008-04-10

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum