TIP:
To shorten the time required to synchronize the mirror copies, use the
lvextend
and
lvsync
command options introduced in the September 2007 release of HP-UX 11i Version
3. These options enable you to resynchronize logical volumes in parallel rather than serially.
For example:
# lvextend -s –m 1 /dev/vg00/lvol1 /dev/disk/disk4
# lvextend -s –m 1 /dev/vg00/lvol2 /dev/disk/disk4
# lvextend -s –m 1 /dev/vg00/lvol3 /dev/disk/disk4
# lvextend -s –m 1 /dev/vg00/lvol4 /dev/disk/disk4
# lvextend -s –m 1 /dev/vg00/lvol5 /dev/disk/disk4
# lvextend -s –m 1 /dev/vg00/lvol6 /dev/disk/disk4
# lvextend -s –m 1 /dev/vg00/lvol7 /dev/disk/disk4
# lvextend -s –m 1 /dev/vg00/lvol8 /dev/disk/disk4
# lvsync -T /dev/vg00/lvol*
8.
Update the root volume group information as follows:
# lvlnboot -R /dev/vg00
9.
Verify that the mirrored disk is displayed as a boot disk and that the boot, root, and swap
logical volumes appear to be on both disks as follows:
# lvlnboot -v
10. Specify the mirror disk as the alternate boot path in nonvolatile memory as follows:
# setboot –a 0/1/1/0.0x1.0x0
11. Add a line to
/stand/bootconf
for the new boot disk using
vi
or another text editor as
follows:
# vi /stand/bootconf
l /dev/disk/disk4
Where the literal “
l
” (lower case L) represents LVM.
Mirroring the Boot Disk on HP Integrity Servers
The procedure to mirror the root disk on Integrity servers is similar to the procedure for HP 9000
servers. The difference is that Integrity server boot disks are partitioned; you must set up the
partitions, copy utilities to the EFI partition, and use the HP-UX partition device files for LVM
commands.
Figure 5
shows the disk layout of a boot disk. The disk contains a Master Boot Record (MBR) and
EFI partition tables that point to each of the partitions. The
idisk
command creates the partitions
(see idisk(1M)).
Figure 5 Sample LVM Disk Layout on an HP Integrity Server
92
Administering LVM