lvlnboot.1m (2010 09)
l
lvlnboot(1M) lvlnboot(1M)
-v Print verbose messages. With no other arguments present, print infor-
mation on root, boot, swap, and dump logical volumes. If a combined
root-boot volume is configured, no information for the boot volume is
displayed.
Snapshot Logical Volume Considerations
Snapshot logical volumes can not be configured as root, boot, swap or dump volumes. Logical volumes
with space-efficient snapshots can not be configured as root or boot volumes. Logical volumes with
snapshots can not be configured as swap or dump volumes. See lvm(7) for information about snapshot
logical volumes.
EXTERNAL INFLUENCES
Environment Variables
LANG determines the language in which messages are displayed.
If
LANG is not specified or is null, it defaults to "C" (see lang (5)).
If any internationalization variable contains an invalid setting, all internationalization variables default
to "C" (see environ (5)).
EXAMPLES
The following examples show configuration of a combined root-boot volume on a PA-RISC system.
Create a root volume group,
vglvmroot, containing root, swap, and dump logical volumes.
Assume that an appropriate directory called /dev/vglvmroot
and a corresponding group file
already exist (see lvm(7)).
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 root 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 root -L 120 -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, 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 PA-RISC system.
Create a root volume group,
vglvmroot, containing root, boot, swap, and dump logical volumes.
Assume that an appropriate directory called /dev/vglvmroot and a corresponding group file
already exist (see lvm(7)).
HP-UX 11i Version 3: September 2010 − 3 − Hewlett-Packard Company 3