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

Monitor and Shell Commands
Using an Alternate Partition Database File
Chapter 5
154
To create and boot using an alternate partition database, perform the following:
1. Create the partition configuration and alternate partition database file.
winona1# vparcreate -p winsim1 -D /stand/vpdb.sim -a cpu::4 -a cpu:::4 -a mem::1600 -a
io:0.0 -a io:0.4 -a io:0.0.2.0.6.0:BOOT
winona2# vparcreate -p winsim2 -D /stand/vpdb.sim -a cpu::4 -a cpu:::4 -a mem::1600 -a
io:0.8 -a io:1.10 -a io: 1.2 -a io:0.8.0.0.5.0:BOOT
CAUTION LBAs must be explicitly specified. The examples in this chapter use a non-nPartitionable
system. If using an nPartitionable system, please read “Planning, Installing, and Using
vPars with an nPartitionable Server” on page 48.
The alternate partition database file is created if it does not exist.
NOTE In order to boot from an alternate partition database file, the file must exist in /stand of the
disk from which you will boot the entire server.
2. Shutdown all the virtual partitions and reboot the server:
winona3# vparstatus ; shutdown -hy 0
winona2# vparstatus ; shutdown -hy 0
winona1# vparstatus ; shutdown -hy 0
MON> reboot
3. Interrupt the boot process and boot the Monitor /stand/vpmon specifying the -p alternate partition
database option and the -a autoboot option:
BCH> bo pri
interact with IPL: y
ISL> hpux /stand/vpmon -D /stand/vpdb.sim -a
The Monitor boots, reads the partition database file /stand/vpdb.sim, and copies the partition
configuration information into the Monitor’s memory. The local copy of the partition database is now
/stand/vpdb.sim (the same filename as what was read by the Monitor at Monitor boot time).
Integrity NOTE: 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, a ln command also should be executed to create the soft link. Otherwise it
will not be possible to boot from the backup database file.
Because the local copy is now /stand/vpdb.sim, you do not need to specify the -D /stand/vpdb.sim
option when performing vPars Monitor commands. For example, to set the static attribute for the
partition winsim2, the command is:
winsim2# vparmodify -p winsim2 -S static
Autoboot
AUTO AUTO