beautypg.com

Hotplug hardware procedure – HP 9000 rp5400 Servers User Manual

Page 113

background image

00003 /dev/dsk/c1t6d0 00003 current /dev/dsk/c2t6d0 00003 current
00004 /dev/dsk/c1t6d0 00004 current /dev/dsk/c2t6d0 00004 current
00005 /dev/dsk/c1t6d0 00005 current /dev/dsk/c2t6d0 00005 current
00006 /dev/dsk/c1t6d0 00006 current /dev/dsk/c2t6d0 00006 current
00007 /dev/dsk/c1t6d0 00007 current /dev/dsk/c2t6d0 00007 current
00008 /dev/dsk/c1t6d0 00008 current /dev/dsk/c2t6d0 00008 current

The pvkey stuatus (0 or 1 in this example) shown in the first command, maps to the device
file names (/dev/dsk/c1t6d0 or /dev/dsk/c2t6d0) in the second command under columns PV1
and PV2, respectively.

5.

Reduce any logical volumes that have mirror copies on the faulty disk drive so that they no
longer mirror onto that disk drive (note the -A n option):

# lvreduce -m 0 -A n -k /dev/dsk/cXtXcX <pvkey#>&

(for 1 way mirroring)

OR

# lvreduce -m 1 -A n -k /dev/dsk/cXtXcX <pvkey#>&

(for 2way mirroring)

For example, enter:

# lvreduce -m 0 -A n -k /dev/vg00/lvol4 /dev/dsk/c2t4d0 1&

The following message will appear:

Logical volume /dev/vg00/lvol4 has been successfully reduced.
lvlnboot: Logical Volume has no extents.

NOTE:

It is important to include the ampersand (&) at the end of the command line.

Otherwise, the lvreduce process will hang, and you will need terminal control to negate the
command. Once the 'successfully reduced' message has been generated, manually end the
process using the kill -9 command.

1.

Use the ps command to find the PID for the lvreduce process.

# ps -ef | grep lvreduce

2.

Manually end the process with the Kill -9 command (It may take several minutes for
the process to end.).

# kill -9

6.

Repeat steps 4 and 5 for all logical volumes.

7.

With all logical volumes reduced, now reduce the volume group using the vgreduce command.
For example:

# vgreduce /dev/vg00 /dev/dsk/c2t6d0

CAUTION:

The vgreduce procedure may take a long time to complete. Do NOT terminate

this process.

8.

Update the disk BDRA using the lvlnboot command.

# lvlnboot -R

9.

Proceed to the HotPlug Hardware Procedure to remove the bad disk drive from the server.

HotPlug Hardware Procedure

CAUTION:

Disk Drives can be removed or installed with the server still powered on. This is

referred to as a "manual HotPlug".

To remove a disk drive from the server, perform the following step:

Individual Component Remove/Replace Instructions

113