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
HP-UX Virtual Partitions Administrator’s Guide > Chapter 5 vPars Monitor and Shell Commands

Managing: Creating a Virtual Partition

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

You can create a virtual partition using the vparcreate command.

CAUTION: LBAs must be explicitly specified when using vPars A.03.01 or earlier. The examples in this chapter use a non-nPartitionable system. If using an nPartitionable system, read “Planning, Installing, and Using vPars with an nPartitionable Server”.
NOTE: When you create a virtual partition, the vPars Monitor assumes you will boot and use the partition. Therefore, when a virtual partition is created, even if it is down and not being used, the resources assigned to it cannot be used by any other partition.

Also, when using vPars, the physical hardware console port must be owned by a partition. To avoid terminal type mismatches, this should be the first virtual partition created. For an example, see “Assigning the Hardware Console LBA”.

For memory considerations, see “Memory: Allocation Notes”.

Example (A.03.xx)

To create a virtual partition named winona2 with the following resources:

  • Three total CPUs (two bound CPUs at hardware paths 41 and 45 and one unbound CPU) with a maximum of four (bound plus unbound) CPUs

  • 1280 MB of memory

  • all hardware where the LBA is at 0/8 or 1/10

  • a boot disk at 0/8/0/0.5.0

use the corresponding vparcreate command line options:

Resource or Attribute

vparcreate Option

virtual partition name is winona2

-p winona2

three total CPUs

-a cpu::3

of which two are bound CPUs and a maximum of four CPUs

-a cpu:::2:4

at hardware paths 41 and 45

-a cpu:41 -a cpu:45

1280 MB of memory

-a mem::1280

all hardware where the LBA is at 0/8

-a io:0.8

all hardware where the LBA is at 1/10

-a io:1.10

hardware at 0/8/0/0.5.0 as the boot disk

-a io:0.8.0.0.5.0:boot

The resulting vparcreate command line is:

winona1# vparcreate -p winona2 -a cpu::3 -a cpu:::2:4 -a cpu:41 -a cpu:45 -a mem::1280 -a io:0.8 -a io:1.10 -a io:0.8.0.0.5.0:boot

TIP: For the vparcreate options, you can create a text file that includes all the options and then cat the text file within the vparcreate command line. This avoids having to remember all the options when you are typing the vparcreate command line.

For example, for the vPars A.03.xx vparcreate command of winona2, you can create a text file called /stand/winona2.opts:

winona1# vi /stand/winona2.opts

The text file would contain the following:

-p winona2 \ -a cpu::3 \ -a cpu:::2:4 \ -a cpu:41 \ -a cpu:45 \ -a mem::1280 \ -a io:0.8 \ -a io:1.10 \ -a io:0.8.0.0.5.0:boot

When you are ready to execute the vparcreate command, the command appears as:

winona1# vparcreate ‘cat /stand/winona2.opts‘

You can verify the creation using the vparstatus command:

winona1# vparstatus -p winona2 -v

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