4 mirroring – IBM RS/6000 User Manual

Page 74

Advertising
background image

Running

lspv

now shows:

lspv
hdisk

a641877c

rootvg

hdisk1

b a645b

None

hdisk2

a62746 4

None

hdisk3

b a645b

None

4.

rmdev -d -l hdisk1

5.

rmdev -d -l hdisk3

6.

cfgmgr

Running

lspv

now shows the correct disks:

lspv
hdisk

a641877c

rootvg

hdisk1

b a645b

None

hdisk2

a62746 4

None

7.

importvg -y testvg hdisk1

8. Mount all the filesystems. You may have to run

fsck -y

on the filesystems first

if they were written to while the disk was removed.

3.3.4 Mirroring

Mirroring disks has been discussed at great detail in many publications and in
InfoExplorer. Here, we will explain an outline of the process you will need to take
to use mirroring. Mirroring will take maximum advantage of the hot-swap
subsystem.

The hot-swap subsystem will mean that AIX will have to be explicitly told about the
removal and addition of disks. In a normal AIX environment the system would have
been shut down and powered-off. The system would then recognize the removal or
addition of disks.

3.3.4.1 Removing and Adding a Mirrored Disk

If you want to remove a disk which is a mirror of other disks in its volume group,
you can either remove the logical volume's copies which are on the disk and follow
the procedure outlined in 3.3.2.1, “Removing a Disk From an Existing Volume
Group” on page 48, or you can remove the disk without telling AIX. If you choose
to remove the disk without telling AIX, you should perform the following when you
re-add the disk:

1. Unmount all the filesystems which are mirrored on the disk.

2. Change the state of the disk in the volume group to active:

chpv -v -r hdiskx
chpv -v -a hdiskx

3. Synchronize all the partitions on the disk from their mirrors:

syncvg -v VGname

4. Remount all the filesystems which are mirrored on the disk.

This will ensure that AIX correctly knows about the disk being re-added and that all
the partitions are correctly synchronized.

50

Introduction to PCI-Based RS/6000 Servers

Advertising