HP-UX Reference (11i v3 07/02) - 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.
The boot information stored on disks assumes a certain ordering of disks listed in /etc/lvmtab. lvlnboot(1M)
command should be run in recovery mode (-R option) when there is a change to the order of the disks in
/etc/lvmtab for any bootable volume group (see vgimport(1M) and vgscan(1M) for more information).
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 (see hpux(1M) for
PA-RISC systems).
-c This command updates the /stand/rootconf
file with the location of the
root volume in the currently booted volume group.
The
/stand/rootconf
file is used during maintenance-mode boots to locate
the root volume.
During normal boots (versus maintenance-mode boots, see hpux(1M) for PA-
RISC systems), this command is automatically executed by
/sbin/ioinitrc
(see inittab(4)).
Since this command is performed during boot, it does not need to be performed
manually unless /stand/rootconf is missing (or alternatively, performing a
normal reboot will recreate this file).
During maintenance-mode boots, since the root volume group is not activated,
lvlnboot -c does not update /stand/rootconf.
Maintenance-mode boot will fail if /stand/rootconf
does not already exist
with the correct location of the root volume. See WARNINGS.
When a new root volume group is created, the first boot must be a normal boot
(versus a maintenance-mode boot), so that
/stand/rootconf gets created.
HP-UX 11i Version 3: February 2007 − 1 − Hewlett-Packard Company 479