UnixPedia : HPUX / LINUX / SOLARIS: HPUX :Switching between nPars and vPars Modes

Monday, June 2, 2014

HPUX :Switching between nPars and vPars Modes



Switching between nPars and vPars Modes(Integrity only).
Overview
Modes
On an Integrity system, you will need to set the mode in order to boot into a specific mode. For
vPars usage, there are only two modes:
vPars
sets the next nPartition boot to boot into the vPars environment. This allows you to boot the vPars
Monitor and therefore the virtual partitions in the next nPartition boot. You still need to boot the vPars
Monitor and the virtual partitions, but this mode allows you to do this.
nPars
sets the next nPartition boot to boot into the standalone environment. In this mode, you cannot boot the
vPars Monitor and therefore the virtual partitions. However, you can boot any OE instance into
standalone mode.
Procedures

Commands to Set the Mode
HP-UX Shell: vparenv [-m mode]
where
mode has the value of either vPars or nPars
sets the mode for the next nPartition reboot. Note that this may take a few minutes to process.
Example:
To set the nPartition into vPars mode so that the next nPartition boot allows you to boot the vPars
Monitor and therefore the vPars environment:
1. Set the mode
# vparenv -m vPars
2. Then, you manually reboot the nPartition:
# shutdown –r

...
Shell> fs0:
fs0:\> hpux /stand/vpmon
...
MON>


Monitor: reboot [mode]
where
mode has the value of either vPars or nPars
reboots the nPartition into the mode mode. If any virtual partitions are up, this will cause them to be
shutdown ungracefully.
EFI: vparconfig [reboot mode]
where
mode has the value of either vPars or nPars
sets the mode for the next nPartition reboot and then also reboots the nPartition.
Note that vparconfig is not a built-in EFI shell command. You must go to the disk (for example, fs0:)
to execute the vparconfig command.
Examples:
• To set the mode to vPars and then immediately reboot the nPartition into vPars mode:
Shell> fs0: /* first goto the disk */
fs0:\> vparconfig reboot vPars /* then you can execute vparconfig */
• To set the mode to nPars and then immediately reboot the nPartition into nPars mode
Shell> fs0: /* first goto the disk */
fs0:\> vparconfig reboot nPars
EFI: parconfig [mode[-n] ]
where
mode has the value of only nPars. parconfig does not allow you to set the mode to vPars
-n means no interactive prompts
NOTE: HP recommends using vparconfig instead of parconfig whenever possible; information on
parconfig is provided here as additional information or when vparconfig is not present on the disk.
vparconfig is installed only on the boot disks of the virtual partitions when vPars is installed. If the boot
disks are removed or you switch boot disks, you may need to use parconfig.
Example
To set the nPartition into nPars mode and reboot the nPartition:
1. First, set the mode:
Shell> parconfig nPars -n
2. Then, you can reboot the nPartition from either the EFI shell using the reset option:
Shell> parconfig reset


Usage Scenarios
• If you are running HP-UX in nPars mode (standalone), use the following vPars command to switch to
vPars mode:
OS-Prompt> vparenv -m vPars /* sets the mode for the next nPartition reboot */
OS-Prompt> reboot /* to reboot the system into vPars mode */
• If you are at the Monitor prompt, use the following Monitor command to switch to nPars mode:
MON> reboot nPars /* sets the mode and reboots the system */
• If you are at EFI shell prompt, use the following EFI utility to switch to either nPars or vPars mode:
Shell:> fsN:
fsN:> vparconfig reboot nPars|vPars
Since vparconfig is not a built-in EFI shell command, you must goto the disk to execute vparconfig. For
example, to switch to vPars mode:
Shell:> fs0: /* goto the EFI partition of the disk */
fs0:> vparconfig reboot vPars /* sets the mode and reboots the system */
Note: vparconfig is an EFI utility which gets installed in the EFI partition during the installation of the
vPars product.
• If you are at EFI shell prompt in vPars mode and you do not have vPars installed on any of your disks,
you can use the built-in EFI command parconfig to switch to nPars mode:
Shell:> parconfig nPars
Shell:> parconfig reset
Note: Remember to issue a parconfig reset after setting the mode. parconfig nPars only sets the
mode to nPars. You must issue the parconfig reset to reset the system so that it boots into nPars
mode.
Note: parconfig does not support switching to vPars mode. In other words, you can use parconfig to set
the mode to nPars, but you cannot use parconfig to set the mode to vPars.
Keywords.
Vparenv Vparconfig,vparboot,reboot,parconfig.

1 comment: