HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)
l
lvlnboot(1M) lvlnboot(1M)
NAME
lvlnboot - prepare LVM logical volume to be root, boot, primary swap, or dump volume
SYNOPSIS
/usr/sbin/lvlnboot
[[-A autobackup]{-b
boot_lv -d dump_lv -r root_lv
-R -s swap_lv }] [
-v][vg_name]
/usr/sbin/lvlnboot
[-c]
Remarks
lvlnboot cannot be performed if the volume group is activated in shared mode.
DESCRIPTION
The lvlnboot command updates all physical volumes in the volume group so that the logical volume
becomes the root, boot, primary swap, or a dump volume when the system is next booted on the volume
group. If a nonexistent logical volume is specified, this command fails. If a different logical volume is
already linked to the root or primary swap, the command fails.
This command should be run in recovery mode (-R) whenever the configuration of the root volume group is
affected by one of the following commands: lvextend, lvmerge, lvreduce, lvsplit
, pvmove,
lvremove, vgextend,orvgreduce (see lvextend(1M), lvmerge(1M), lvreduce(1M), lvsplit(1M),
pvmove(1M), lvremove (1M), vgextend(1M), and vgreduce(1M)). Starting with HP-UX Release 10.0, this is
done automatically.
Options and Arguments
lvlnboot recognizes the following options and arguments:
vg_name The path name of a volume group.
-A autobackup Set automatic backup for this invocation of this command. autobackup can have
one of the following values:
y Automatically back up configuration changes made to the logical volume.
This is the default.
After this command executes, the vgcfgbackup command (see
vgcfgbackup(1M)) is executed for the volume group to which the logical
volume belongs.
n Do not back up configuration changes this time.
-b boot_lv Define boot_lv to be the boot volume the next time the system is booted on the
volume group. boot_lv must be the first logical volume on the physical volume.
boot_lv must be contiguous, and must not allow bad block relocation.
boot_lv is used to locate the boot file system during the boot process. The boot
file system has the kernel which is read by the boot loader hpux(1M).
-d dump_lv Define dump_lv to be one of the dump volumes the next time the system is
booted on the volume group. dump_lv must be a contiguous logical volume and
cannot have Bad Block Relocation enabled.
The command updates the Boot Data Reserved Area of each bootable physical
volume in the volume group (see pvcreate(1M)).
The combined size of all the dump volumes should be at least 2048 bytes larger
than the total memory of the system. The additional 2 KB is used to safeguard
against a dump to the bottom of the disk.
Multiple dump devices can be configured, but each dump_lv must be entered
with a separate lvlnboot command line.
-r root_lv Define root_lv to be the root volume the next time the system is booted on this
volume group. root_lv must be a contiguous logical volume and cannot have bad
block relocation enabled.
If root_lv is the first logical volume on the physical volume, then it is configured
as the combined root-boot volume. Otherwise, root_lv is configured as the
separate root volume in which case a separate boot volume needs to be
configured using the lvlnboot -b option.
HP-UX 11i Version 1: September 2005 − 1 − Hewlett-Packard Company Section 1M−−453