Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Installing and Managing HP-UX Virtual Partitions (vPars) > Chapter 5 Monitor and Shell Commands

Using an Alternate Partition Database File

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

By default, the local copy of the vPars partition database is kept in the file /stand/vpdb on the boot disk of each partition. However, you can create, edit, and delete virtual partitions in an alternate partition database file by using the "-Dfilename" option in the vPars command string, where filename is the name of the alternate partition database file. For more information on the vPars command strings, see the vPars manpages.

The alternate partition database file can be used to create an entirely different partition configuration without affecting the live partition database in the monitor's memory or the local copies in /stand/vpdb.

Example

Suppose the current partition configuration is:

Partition
Name
winona1winona2winona3
Bound CPUs
total = 2
min = 2
total = 2
min = 2
paths = 41,45
total = 1
min = 1

Unbound CPUs

three CPUs are available 
Memory
640 MB
1280 MB
1280 MB
I/0 Paths
(LBAs)
0/0
0/4
0/8
1/10
0/5
1/4
Boot Path
0/0/2/0.6.0
0/8/0/0.5.0
1/4/0/0.5.0
LAN
0/0/0/0
1/10/0/0/4/0
0/5/0/0/4/0
Autoboot
AUTO
AUTO
AUTO

You could create an alternate partition database where the configuration is:

Partition
Name
winsim1winsim2
Bound CPUs
total = 4
min = 4
total = 4
min = 4

Unbound CPUs

no CPUs are available 
Memory
1600 MB
1600 MB
I/0 Paths
(LBAs)
0/0
0/4
0/8
1/10
1/2
Boot Path
0/0/2/0.6.0
0/8/0/0.5.0
LAN
0/0/0/0
1/10/0/0/4/0
Autoboot
AUTO
AUTO

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

    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 computer.
  2. Shutdown all the virtual partitions and reboot the computer:

    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 -palternate partition database option and the -aautoboot 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).

    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

    This change will be synchronized to the local copies of /stand/vpdb.sim. (If /stand/vpdb.sim does not exist, as in this case on winsim2, the file will be automatically created during synchronization).

  4. To return to using /stand/vpdb, do the same steps as above, except on the ISL command line in Step 3 is:

    ISL> hpux /stand/vpmon -a

    By default, the file /stand/vpdb is read as the partition database file.

When working with an alternate partition database file using -D filename, please note the following:

  • filename must reside in /stand when the computer boots because the vPars monitor can only traverse HFS file systems of the boot disk.

  • Be careful when creating partitions using the -Doption. Fewer checks on configuration are being performed. It is possible to create a partition configuration that is not valid.

  • All LVM rules still apply. For example, you cannot migrate I/O only by re-assigning the I/O to a different partition; you must still vgexport and vgimport the volume groups.

  • Although there is no command that displays which partition database file was read when the monitor was booted, because the local copies of the active database are synchronized every five seconds, you should be able to tell which database file was read and is active based on the time stamps of the various database files in /stand.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2001 Hewlett-Packard Development Company, L.P.