beautypg.com

HP StorageWorks 2405 Disk System User Manual

Page 113

background image

Removal and Replacement

113

Re
m

ova

l a

nd
R

epl

a

ce

m

ent

1

Enter the following command to reduce the mirror:

# lvreduce -m <mirror_copies> -A n

For example, to reduce a two-way mirror:

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

or, for a three-way mirror:

# lvreduce -m 1 -A n /dev/vg00/lvol5 /dev/dsk/c2t4d0

If this step fails, execute an lvdisplay command to determine if the lvreduce
command succeeded. If the command did not succeed, execute the command
again. Perform any other lvreduce commands that were not executed before
the system failed. Then proceed.

Note

An important effect of the lvreduce command is that the LVM
configuration backup file used by the vgcfgrestore command is
updated. If this replacement procedure is being performed now on
another host system and there is no need to execute any lvreduce
commands, then the configuration file is not updated. The LVM
configuration is correct on the physical volumes, however, so the
configuration file can be updated with the vgcfbackup command.

2

Replace the disk module (see “Procedure” on page 115).

3

Execute ioscan to verify that the new disk drive is accessible and a proper
replacement.

4

Enter the following command to restore the LVM configuration/headers to
the replaced disks from the backup of the LVM configuration:

# vgcfgrestore -n

For example:

# vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t4d0

If this step fails, repeat it to ensure all configuration data is written to the new
disk.

Note

If this replacement procedure is being performed now on another
host system and there is no need to execute any lvreduce
commands, then the configuration file can be updated with the
vgcfbackup command.

5

Enter the following command to attach the replaced disk to the active volume
group: