Specifications

When Good Disks Go Bad:
Dealing with Disk Failures under LVM
Abstract ..............................................................................................................................................3
Background.........................................................................................................................................3
1.
Preparing for Disk Recovery..........................................................................................................4
Defining a Recovery Strategy .............................................................................................................4
Using Hot-Swappable Disks ...............................................................................................................4
Installing the Patches that Enable LVM Online Disk Replacement.............................................................4
Mirroring Critical Information, Especially the Root Volume Group...........................................................4
Creating Recovery Media ..................................................................................................................5
Other Guidelines for Optimal System Recovery ....................................................................................5
2.
Recognizing a Failing Disk ...........................................................................................................7
I/O Errors in the System Log ..............................................................................................................7
Disk Failure Notification Messages from Diagnostics.............................................................................7
LVM Command Errors .......................................................................................................................8
3.
Confirming Disk Failure ................................................................................................................9
4.
Gathering Information about a Failing Disk...................................................................................11
Is the Questionable Disk Hot-Swappable?..........................................................................................11
Is it the Root Disk or Part of the Root Volume Group? ..........................................................................11
What Recovery Strategy Do You Have for the Logical Volumes on this Disk? .........................................11
5.
Removing the Disk .....................................................................................................................13
Removing a Mirror Copy from a Disk................................................................................................13
Moving the Physical Extents to Another Disk.......................................................................................13
Removing the Disk from the Volume Group ........................................................................................14
6.
Replacing the Disk .....................................................................................................................16
Step 1: Halting LVM Access to the Disk .............................................................................................16
Step 2: Replacing the Faulty Disk......................................................................................................18
Step 3: Initializing the Disk for LVM ..................................................................................................18
Step 4: Re-enabling LVM Access to the Disk.......................................................................................18
Step 5: Restoring Lost Data to the Disk ..............................................................................................19
Replacing a LVM Disk in an HP Serviceguard Cluster Volume Group ....................................................19
Disk Replacement Scenarios.............................................................................................................19
1

Summary of content (36 pages)