Download Volume Manager Troubleshooting Guide
Transcript
Failures on RAID-5 Volumes Note Following severe hardware failure of several disks or other related subsystems underlying a RAID-5 plex, it may be impossible to recover the volume using the methods described in this chapter. In this case, remove the volume, recreate it on hardware that is functioning correctly, and restore the contents of the volume from a backup. Parity Resynchronization In most cases, a RAID-5 array does not have stale parity. Stale parity only occurs after all RAID-5 log plexes for the RAID-5 volume have failed, and then only if there is a system failure. Even if a RAID-5 volume has stale parity, it is usually repaired as part of the volume start process. If a volume without valid RAID-5 logs is started and the process is killed before the volume is resynchronized, the result is an active volume with stale parity. For an example of the output of the vxprint -ht command, see the following example for a stale RAID-5 volume: V NAME RVG/VSET/COKSTATESTATE LENGTH PL NAME VOLUME KSTATE STATE LENGTH SD NAME PLEX DISK DISKOFFSLENGTH SV NAME PLEX VOLNAME NVOLLAYRLENGTH ... v r5vol ENABLED NEEDSYNC204800 pl r5vol-01 r5vol ENABLED ACTIVE 204800 sd disk01-01 r5vol-01disk01 0 102400 sd disk02-01 r5vol-01disk02 0 102400 sd disk03-01 r5vol-01disk03 0 102400 ... READPOL PREFPLEX LAYOUT NCOL/WID [COL/]OFF DEVICE [COL/]OFF AM/NM UTYPE MODE MODE MODE RAID RAID 0/0 1/0 2/0 raid5 RW ENA dS ENA 3/16 c2t9d0 c2t10d0 c2t11d0 This output lists the volume state as NEEDSYNC, indicating that the parity needs to be resynchronized. The state could also have been SYNC, indicating that a synchronization was attempted at start time and that a synchronization process should be doing the synchronization. If no such process exists or if the volume is in the NEEDSYNC state, a synchronization can be manually started by using the resync keyword for the vxvol command. For example, to resynchronize the RAID-5 volume in the figure “Invalid RAID-5 Volume” on page 16, use the following command: # vxvol -g mydg resync r5vol Chapter 1, Recovery from Hardware Failure 13