lvlnboot.1m (2010 09)
l
lvlnboot(1M) lvlnboot(1M)
First, initialize the disk, say /dev/dsk/c0t0d0
, so that it can be used as an LVM boot disk.
pvcreate -B /dev/rdsk/c0t0d0
Create the volume group vglvmroot.
vgcreate /dev/vglvmroot /dev/dsk/c0t0d0
Place the LIF information on the disk using the
mkboot command.
mkboot /dev/rdsk/c0t0d0
Create a logical volume that is suitable for use as the boot volume. This logical volume has to be the
first in the volume group and should be a contiguous volume with bad block relocation turned off.
lvcreate -n boot -L 24 -C y -r n /dev/vglvmroot
Create a logical volume that is suitable for use as the root volume. This logical volume should be a
contiguous volume with bad block relocation turned off.
lvcreate -n root -L 64 -C y -r n /dev/vglvmroot
Create a logical volume that will be used as primary swap. This volume should be contiguous.
lvcreate -n swap -L 64 -C y /dev/vglvmroot
Create a logical volume that will be used as the dump volume. This volume should be contiguous
with bad block relocation turned off.
lvcreate -n dump -L 64 -C y -r n /dev/vglvmroot
Specify that the logical volume, root, will be used as the root volume.
lvlnboot -r /dev/vglvmroot/root
Specify that the logical volume, boot, will be used as the boot volume.
lvlnboot -b /dev/vglvmroot/boot
Specify that the logical volume, swap, will be used as the primary swap.
lvlnboot -s /dev/vglvmroot/swap
Specify that the logical volume, dump, will be used as the dump volume.
lvlnboot -d /dev/vglvmroot/dump
Display the results of the previous operations.
lvlnboot -v /dev/vglvmroot
The following examples show configuration of separate root and boot volumes on a version 2.2 volume
group for an HP Integrity system.
Create a version 2.2 root volume group,
vglvmroot, containing root, boot, swap, and dump logical
volumes. Assume that an HP-UX partition and an associated device special file,
/dev/disk/disk3_p2, have been created on the HP Integrity system boot disk,
/dev/disk/disk3, using idisk and insf.
First, initialize the HP-UX partition so that it can be used as an LVM boot disk.
pvcreate -B /dev/rdisk/disk3_p2
Create the version 2.2 volume group, vglvmroot, with 8MB extent size and maximum volume
group size 1TB, specifying the HP-UX partition device special file.
vgcreate -V 2.2 -s 8 -S 1t /dev/vglvmroot /dev/disk/disk3_p2
Place the LIF information on the disk using the mkboot command, specifying the -e and -f
options and the HP Integrity system boot disk.
mkboot -e -l /dev/rdisk/disk3
Create a logical volume that is suitable for use as the boot volume. This logical volume has to be the
first in the volume group and should be a contiguous volume.
lvcreate -n boot -L 1024 -C y /dev/vglvmroot
Create a logical volume that is suitable for use as the root volume. This logical volume should be a
contiguous volume.
4 Hewlett-Packard Company − 4 − HP-UX 11i Version 3: September 2010