/dev/disk/disk6 -- Boot Disk
Boot: bootlv on: /dev/disk/disk6
Root: rootlv on: /dev/disk/disk6
Swap: swaplv on: /dev/disk/disk6
Dump: swaplv on: /dev/disk/disk6, 0
15. Once the boot and root logical volumes are created, create file systems for them. For example:
# mkfs –F hfs /dev/vgroot/rbootlv
# mkfs –F vxfs /dev/vgroot/rrootlv
NOTE:
On HP Integrity servers, the boot file system can be VxFS. Enter the following
command:
# mkfs –F vxfs /dev/vgroot/rbootlv
Mirroring the Boot Disk
NOTE:
Mirroring requires the optional product, HP MirrorDisk/UX.
Version 2.0 and 2.1 volume groups do not support boot disks, so you cannot mirror the boot disk
in a Version 2.0 or 2.1 volume group.
After you create mirror copies of the root, boot, and primary swap logical volumes, if any of the
underlying physical volumes fail, the system can use the mirror copy on the other disk and continue.
When the failed disk comes back online, it is automatically recovered, provided the system has
not been rebooted.
If the system reboots before the disk is back online, reactivate the volume group to update the LVM
data structures that track the disks within the volume group. You can use
vgchange -a y
even
though the volume group is already active.
For example, you can reactivate volume group
vg00
by entering the following command:
# vgchange -a y /dev/vg00
As a result, LVM scans and activates all available disks in the volume group
vg00
, including the
disk that came online after the system rebooted.
The procedure for creating a mirror of the boot disk is different for HP 9000 and HP Integrity
servers. HP Integrity servers use partitioned boot disks.
NOTE:
These examples include creating a mirror copy of the primary swap logical volume. The
primary swap mirror does not need to be on a specific disk or at a specific location, but it must
be allocated on contiguous disk space. The recommended mirror policy for primary swap is to
have the mirror write cache and the mirror consistency recovery mechanisms disabled.
When primary swap is mirrored and your primary swap device also serves as a dump area, be
sure that mirror write cache and mirror consistency recovery are set to off at boot time to avoid
losing your dump. To reset these options, reboot your system in maintenance mode and use the
lvchange
command with the
-M n
and
-c n
options.
Mirroring the Boot Disk on HP 9000 Servers
To set up a mirrored root configuration, you must add a disk to the root volume group, mirror all
the root logical volumes onto it, and make it bootable. For this example, the disk to be added is
at path 0/1/1/0.0x1.0x0 and has device special files named
/dev/rdisk/disk4
and
/dev/
disk/disk4
. Follow these steps:
1.
Make sure the device files are in place. For example:
# insf -e -H 0/1/1/0.0x1.0x0
The following device files now exist for this disk:
/dev/[r]disk/disk4
90
Administering LVM