Replacing An Unmirrored Nonboot Disk - HP -UX 11i Administrator's Manual

Logical volume management
Hide thumbs Also See for HP-UX 11i:
Table of Contents

Advertisement

8.
Restore LVM access to the disk.
If you did not reboot the system in
follows:
# pvchange
If you did reboot the system, reattach the disk by reactivating the volume group as follows:
# vgchange -a y /dev/vgnn
NOTE:
is deactivated or already activated. It attaches all paths for all disks in the volume group and
resumes automatically recovering any disks in the volume group that had been offline or any
disks in the volume group that were replaced. Therefore, run vgchange only after all work
has been completed on all disks and paths in the volume group, and it is necessary to attach
them all.
Because all the data on the replaced disk was mirrored, you do not need to do anything else; LVM
automatically synchronizes the data on the disk with the other mirror copies of the data.

Replacing an Unmirrored Nonboot Disk

Use this procedure if any of the physical extents on the disk do not have mirror copies elsewhere,
and your disk is not a boot disk.
In this example, the disk to be replaced is at lunpath 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
Class I Lun H/W Path
========================================================================
disk 14 64000/0xfa00/0x0
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, disable user and LVM access to all unmirrored logical volumes.
First, disable user access to all unmirrored logical volumes. Halt any applications and unmount
any file systems using these logical volumes. This prevents the applications or file systems from
writing inconsistent data over the newly restored replacement disk.
For each unmirrored logical volume using the disk:
a.
Use the fuser command to make sure no one is accessing the logical volume, either as
a raw device or as a file system. If users have files open in the file system or it is their
current working directory, fuser reports their process IDs.
For example, if the logical volume was /dev/vg01/lvol1, enter the following command:
# fuser -cu dev/vg01/lvol1
/dev/vg01/lvol1:
a y /dev/disk/disk14
The vgchange command with the -a y option can be run on a volume group that
m lun /dev/disk/disk14
Driver
esdisk
0/1/1/1.0x3.0x0
/dev/disk/disk14
27815c(root)
Step
2, "Halt LVM access to the disk," reattach the disk as
S/W State H/W Type Health
CLAIMED
DEVICE
/dev/rdisk/disk14
27184c(root)
Disk Troubleshooting and Recovery Procedures
Description
offline HP MSA Vol
131

Advertisement

Table of Contents
loading

Table of Contents