
8. 7. Replacing the Disk (11i v3 release Onwards when the LVM Volume Group is Configured with
Persistent DSFs)
After you isolate a failed disk, the replacement process depends on answers to the following
questions:
Is the disk hot-swappable?
Is the disk the root disk or part of the root volume group?
What logical volumes are on the disk, and are they mirrored?
Based on the gathered information, choose the appropriate procedure.
Replacing a Mirrored Nonboot Disk
Use this procedure if all the physical extents on the disk have copies on another disk, and the disk is
not a boot disk. If the disk contains any unmirrored logical volumes or any mirrored logical volumes
without an available and current mirror copy, see Replacing an Unmirrored Nonboot Disk.
For this example, the disk to be replaced is at LUN hardware path 0/1/1/1.0x3.0x0, with device
special files named /dev/disk/disk14 and /dev/rdisk/disk14. Follow these steps:
1. Save the hardware paths to the disk.
Run the ioscan command and note the hardware paths of the failed disk.
# ioscan –m lun /dev/disk/disk14
Class I Lun H/W Path Driver S/W State H/W Type Health Description
========================================================================
disk 14 64000/0xfa00/0x0 esdisk CLAIMED DEVICE offline HP MSA Vol
0/1/1/1.0x3.0x0
/dev/disk/disk14 /dev/rdisk/disk14
In this example, the LUN instance number is 14, the LUN hardware path is 64000/0xfa00/0x0,
and the lunpath hardware path is 0/1/1/1.0x3.0x0.
When the failed disk is replaced, a new LUN instance and LUN hardware path are created. To
identify the disk after it is replaced, you must use the lunpath hardware path
(0/1/1/1.0x3.0x0).
2. Halt LVM access to the disk.
If the disk is not hot-swappable, power off the system to replace it. By shutting down the system,
you halt LVM access to the disk, so you can skip this step.
If the disk is hot-swappable, detach it using the –a option of the pvchange command:
# pvchange -a N /dev/disk/disk14
3. Replace the disk.
For the hardware details on how to replace the disk, see the hardware administrator's guide for
the system or disk array.
If the disk is hot-swappable, replace it. If the disk is not hot-swappable, shut down the system, turn
off the power, and replace the disk. Reboot the system.
4. Notify the mass storage subsystem that the disk has been replaced.
If the system was not rebooted to replace the failed disk, run scsimgr before using the new disk
as a replacement for the old disk. For example:
Comentarios a estos manuales