The HP Virtual Server Environment : Virtual Partition Example Scenario (part 5) - Virtual Partition States, Booting the First Virtual Partition

2/16/2015 5:57:58 AM

Virtual Partition States

Before diving into the process of booting the vPar monitor and the first vPar, a discussion of the vPar states is in order. The states of a vPar are shown in Figure 2. These states are helpful in interpreting the output of the vparstatus command and managing vPars. Listing 4 shows the zoo24 vPar is in the N/A state. In this case, the vPar monitor has not been booted, so the vPar can't be in any other state. The following list describes all of the vPar states and an explanation of when a vPar can be in each state.

N/A is the initial state for vPars when the vPar monitor is not running or an alternate database has been passed to the vparstatus command. In both of these cases, the vPar is not running and cannot be started without first booting the vPar monitor with the given vPar database.

Down is the vPar state that occurs when the vPar monitor is running but the vPar has not been booted with the vparboot command from the HP-UX command line or the vparload command from the vPar monitor.

Load is the first state a vPar will transition to upon being booted with the vparboot or vparload command. While in this state, the vPar's kernel is being loaded into memory. After loading the kernel into memory, the vPar automatically transitions to the boot state without user intervention. Therefore, this state is labeled as a transitory state.

Boot is the state a vPar goes through while booting the HP-UX operating system. As with the load state, the boot state is transitory and the vPar will transition to the up state without user interaction.

Up is the state a vPar will occupy a majority of the time. This state is where workloads are running and traditional HP-UX administration tasks, such as configuring users and installing software, can be performed.

Shut is the state a vPar goes through when it has been shut down with the HP-UX shutdown or reboot commands. This state is also transitory; the vPar will automatically transition to the down state after the shutdown process is complete.

Crash is a state administrators hope to never see. A vPar enters this state when the HP-UX kernel panics. While in this transitory state, a kernel dump is performed. When the kernel dump is complete, the vPar returns to the down state.

Hung is another undesirable vPar state. In this state the vPar is not responding and most likely needs to be reset using the vparreset command. Depending on the type of reset performed, the vPar will transition either to the crash state (as a result of a soft reset) or the down state (as a result of a hard reset).

Figure 2. Virtual Partition States

Booting the First Virtual Partition

In order to boot a vPar to the up state, the next step is booting the vPar monitor. This is accomplished by booting the vPar monitor by interacting with the firmware interfaces to specify the path of the vPar monitor. Listing 5 shows an example of interacting with the Initial System Loader (ISL) to boot the vPar monitor at /stand/vpmon instead of the default HP-UX kernel.

Listing 5. Virtual Partition Monitor Boot Process
---- Main Menu -------------------------------------------------

Command Description
------- -----------
BOot [PRI|HAA|ALT|<path>] Boot from specified path
PAth [PRI|HAA|ALT] [<path>] Display or modify a path
SEArch [ALL|<cell>|<path>] Search for boot devices
ScRoll [ON|OFF] Display or change scroll capability

COnfiguration menu Displays or sets boot
INformation menu Displays hardware info
SERvice menu Displays service commands

DIsplay Redisplay the current menu
HElp [<menu>|<command>] Display help for menu
REBOOT Restart Partition
RECONFIGRESET Reset to allow Reconfig
Main Menu: Enter command or menu > bo

Primary Boot Path: 6/0/6/0/0.2

Do you wish to stop at the ISL prompt? (y/n) >> y

Initializing boot Device.

Boot IO Dependent Code (IODC) Revision 0

Boot Path Initialized.

HARD Booted.

ISL Revision A.00.43 Apr 12, 2000

ISL> hpux /stand/vpmon

: disk(6/0/6/0/;0)/stand/vpmon
679936 + 190216 + 17306888 start 0x23000

Welcome to VPMON (type '?' for a list of commands)


When the vPar monitor is loaded without arguments as shown in Listing 5, it will not automatically boot any of the vPars. Instead the monitor stops at the vPar monitor prompt, MON>. From this prompt, several vPar specific commands are available. The most commonly used commands are vparload and reboot.

The vparload command can be used in several ways. To boot all of the vPars that have their auto attribute set (the default setting) simply specify the vparload –auto command. All vPars can be booted, regardless of their auto attribute by using the vparload –all option. Finally, specific vPars can be booted using the vparload –p <partition> option. This is the option used in Listing 6 to boot the zoo24 vPar. The output from the HP-UX boot process has been suppressed from the listing.

Listing 6. Loading First Virtual Partition
MON> vparload
Usage: vparload -auto | -all
vparload -p <partition> [-o <boot opts>] [-b <kern path>]
[-B <boot device>]
MON> vparload -p zoo24
[MON] Booting zoo24...
[MON] Console client set to zoo24
[MON] Console server set to zoo24


[MON] zoo24 loaded

<normal HP-UX boot follows>

With the HP-UX boot process completes, the first vPar has been successfully booted and in the up state. The output of the vparstatus command executed from the HP-UX within the first vPar is shown in Listing 7. The vPar zoo24 is assigned one bound CPU, the minimum number of CPUs is one, and the maximum number of CPUs is three. The vPar has 1024MB of memory.

Listing 7. Virtual Partition Status
# vparstatus -v -p zoo24
[Virtual Partition Details]
Name: zoo24
State: Up
Attributes: Dynamic,Autoboot
Kernel Path: /stand/vmunix
Boot Opts:

[CPU Details]
Min/Max: 1/3
Bound by User [Path]:
Bound by Monitor [Path]: 6.10
Unbound [Path]:

[IO Details]

[Memory Details]
Specified [Base /Range]:
(bytes) (MB)
Total Memory (MB): 1024

Before creating the second vPar, closely examine Listing 8. Notice that the ioscan output shows only the I/O devices under LBAs 6/0/0 and 6/0/6. There are 12 LBAs in the zoo6 nPartition, so the remaining 10 LBAs are hidden from view by the vPar monitor. This illustrates the importance of capturing the ioscan output during the planning phase so it can be referred to during the creation of subsequent vPars.

Listing 8. Ioscan after Booting Virtual Partition
# ioscan -k
H/W Path Class Description
6 cell
6/0 ioa System Bus Adapter (804)
6/0/0 ba Local PCI Bus Adapter (782)
6/0/0/0/0 tty PCI Serial (103c1048)
6/0/0/1/0 lan HP PCI 10/100Base-TX Core
6/0/6 ba Local PCI Bus Adapter (782)
6/0/6/0/0 ext_bus SCSI C896 Ultra2 Wide LVD
6/0/6/0/0.2 target
6/0/6/0/0.2.0 disk HP 18.2GST318404LC
6/0/6/0/0.4 target
6/0/6/0/0.4.0 disk HP 18.2GST318404LC
H/W Path Class Description
6/0/6/0/0.6 target
6/0/6/0/0.6.0 disk HP 18.2GST318404LC
6/0/6/0/0.7 target
6/0/6/0/0.7.0 ctl Initiator
6/0/6/0/1 ext_bus SCSI C896 Ultra2 Wide LVD
6/0/6/0/1.7 target
6/0/6/0/1.7.0 ctl Initiator
6/5 memory Memory
6/10 processor Processor
6/11 processor Processor
6/12 processor Processor
6/13 processor Processor
64 tty Virtual Console Client
65 tty Virtual Console Server

  •  The HP Virtual Server Environment : HP Virtual Partitions - Virtual Partition Terminology
  •  The HP Virtual Server Environment : HP Virtual Partitions - Virtual Partitions Overview
  •  Microsoft Exchange Server 2010 : Managing Mailboxes (part 8) - Using the EMS to Manage Mailbox Properties
  •  Microsoft Exchange Server 2010 : Managing Mailboxes (part 7) - Using the EMS to Manage User Properties
  •  Microsoft Exchange Server 2010 : Managing Mailboxes (part 6) - Using the EMC to Manage User and Mailbox Properties
  •  Microsoft Exchange Server 2010 : Managing Mailboxes (part 5) - Creating a New User and Assigning a Mailbox Using the EMC
  •  Microsoft Exchange Server 2010 : Managing Mailboxes (part 4) - Assigning a Mailbox to a User from the EMS
  •  Microsoft Exchange Server 2010 : Managing Mailboxes (part 3) - Assigning a Mailbox to More than One User
  •  Microsoft Exchange Server 2010 : Managing Mailboxes (part 2) - Using the EMC to Assign a Mailbox
  •  Microsoft Exchange Server 2010 : Managing Mailboxes (part 1)
    Most View
    Hard Disk Help: From Unusual Noises To Random Crashes
    Routers - March 2014 (Part 4) - Trendnet TEW-812DRU, Asus RT-AC56U, Tenda W300D
    Thermaltake Black Element Cyclone Edition Gaming Mouse
    ASP.NET 4 in VB 2010 : Page Tracing (part 1) - Enabling Tracing, Tracing Information
    Corsair H90 140mm Liquid CPU Cooler
    Advanced Streaming For Your Phone or Tablet (Part 3)
    Phablet Phone Shootout Super Sized Phones (Part 2) - LG G Flex
    Smashing Html5 : Navigation Strategies - Single-Page Web Sites with Iframes
    Dell XPS One 27 Touch - Big, Bright, Bold And Responsive
    Group Test - Mid-Range Maestros (Part 4) : Motorola RAZR i, Motorola RAZR I specs
    Popular Tags
    Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS
    Top 10
    Review : Acer Aspire R13
    Review : Microsoft Lumia 535
    Review : Olympus OM-D E-M5 Mark II
    TomTom Runner + MultiSport Cardio
    Timex Ironman Run Trainer 2.0
    Suunto Ambit3 Peak Sapphire HR
    Polar M400
    Garmin Forerunner 920XT
    Sharepoint 2013 : Content Model and Managed Metadata - Publishing, Un-publishing, and Republishing
    Sharepoint 2013 : Content Model and Managed Metadata - Content Type Hubs