6.Issue the following command to extend the logical volume to the newly inserted disk:

#lvextend -m 1 /dev/vg_sg01 /dev/dsk/c2t3d0

7.Finally, use the lvsync command for each logical volume that has extents on the failed physical volume. This synchronizes the extents of the new disk with the extents of the other mirror.

#lvsync /dev/vg_sg01/lvolname

Online Replacement of a Mechanism in an HA Enclosure Configured with Shared LVM (SLVM)

If you are using software mirroring for shared concurrent activation of Oracle RAC data with MirrorDisk/UX and the mirrored disks are mounted in a high-availability disk enclosure, use the following LVM command options to change/replace disks via OLR (On Line Replacement).

NOTE: This procedure supports either LVM or SLVM VG and is “online” (activated) and uses an “online disk replacement” mechanism. It is supported for SLVM; however, the PV being replaced must be detached from each node. For example, running pvchange -a N /dev/dsk/ from one node only detaches the disk from that node's perspective.

1.Detach the target PV by using one of the following commands on each node of the cluster:

# pvchange -a n [pv path]

Use the pvchange command -a n [pv path] to detach only one path or replace a disk if the primary disk path is not performing well and you want to disable the path. The pvchange -a n command detaches the single specified PV Link (device path). (If the path was the path in use, LVM will switch to any alternate PV Link that is still available.)

—OR—

#pvchange -a N [pv path]

Alternatively, use the pvchange -a N [pv path] command to detach a disk (all paths to the disk) and close it. Use this to allow diagnostics or replace a multi-ported disk.

NOTE: If the volume group is mirrored, applications can continue accessing data on mirror copies after the commands above. If the volume is not mirrored, then any access attempts to the device may hang indefinitely or time out. This depends upon the LV timeout value configured for the logical volume.

2.Replace new disk.

The new disk size needs to be of equal or greater size. This is required whether or not the disk replacement is online or offline.

3.Restore the LVM header to the new disk using the following command:

# vgcfgrestore -n [vg name] [pv raw path]

It is only necessary to perform the vgcfgrestore operation once from any node on the cluster.

4.Attach PV or Activate the VG from each node of the cluster using the following commands:

#pvchange -a y [pv path]

—OR—

#vgchange -a [yes] [vg name]

The PV must be detached from all nodes and must be attached from each of the nodes to make it usable. Alternatively, you can reactivate the VG from each of the nodes. (This command cannot attach all the paths to the PV, therefore each PV link has to be attached as well.)

Replacing Disks 133

Page 133
Image 133
HP Serviceguard Extension for RAC (SGeRAC) # lvextend -m 1 /dev/vgsg01 /dev/dsk/c2t3d0, # lvsync /dev/vgsg01/lvolname