Installing and Managing HP-UX Virtual Partitions (includes A.04.02)

Monitor and Shell Commands
Monitor: Using Monitor Commands
Chapter 5
105
Monitor: Using Monitor Commands
You can use the following Monitor commands at the Monitor prompt for booting and basic troubleshooting.
However, most vPars operations should be performed using the vPars shell commands.
Note the following for the Monitor commands:
Unless specifically stated, all operations occur only on the boot disk from which the Monitor was booted.
Usually, this is the boot disk of the primary path entry in system-wide stable storage.
Further, the Monitor can traverse only HFS file systems. Usually, the only HFS file system is /stand.
•Except for the vparload command, an alternate disk device cannot be specified using the Monitor
commands.
The following Monitor commands are disabled when one or more virtual partitions are up:
getauto, lifls, and readdb.
The following Monitor commands are disabled when the virtual partition that owns the disk from which
the Monitor was booted, usually the primary path, is up:
ls and cat.
NOTE You can see all the latest Monitor commands and options from the vpmon (1) manpage.
Not all Monitor commands are available on all platforms. The following common Monitor
commands are not available on Integrity systems: cat, cbuf, getauto, lifls, and ls. Refer to
the vpmon (1) manpage for a complete list.
Booting
readdb
filename
reads an alternate partition database
filename
for partition configuration information
filename
must be an absolute path and reside on a HFS file system.
Example:
If you have a backup copy of the partition database in the file /stand/vpdb.backup, you can read the
database configuration information using:
MON> readdb /stand/vpdb.backup
Notes:
This command can only be used when the Monitor /stand/vpmon is booted and the default partition
database (/stand/vpdb) does not exist, the alternate partition database as specified in the -p option
of /stand/vpmon does not exist, or the database file read is corrupt. For more information on the -p
option, see “Monitor: Booting the vPars Monitor” on page 103.
Integrity only: If you issue readdb /stand/vpdb.backup, the file that is actually read is at
/stand/boot.sys/stand/vpdb.backup. The vparcreate command transparently creates the soft
link from /stand/boot.sys/stand/
file
to /stand/
file
. Therefore, if you backup the database file
using the Unix cp command, the ln -s command also should be executed to create the soft link.
Otherwise, it will not be possible to boot from the backup database file.