Showing posts with label EFI Shell. Show all posts
Showing posts with label EFI Shell. Show all posts

Monday, December 7, 2015

Important Operations for VPARs booting in vPars and nPars environments (HP-UX)

Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs


Commands for the VPARs:

Switching between the vPars and nPars mode: INTEGRITY ONLY:

1) HP-UX > vparenv :

If the system is booted in the NPARs MODE

#vparenv –m vPars
#shutdown –ry 00

In the EFI SHELL, SHELL> fs0:

Fso:> boot /stand/vpmon vparload –all

If the system is having all the VPARs up and running and we need to reboot the same in the NPAR mode.

#vparenv –m nPars

Shutdown all the VPARs one by one.

#shutdown –hy 00
On the Monitor prompt VPMON

MON> reboot

EFI SHELL> fs0:

Fs0:>boot /stand/vmunix

VPMON
MON>reboot nPars
MON>reboot vPars

EFI
Fso:>vparconfig reboot vPars
Fs0:>vparconfig reboot nPars



Vparconfig is not a Built-in EFI Shell command. This is installed in the EFI Shell of the disk at the time of installing the VPARs Bundle on to the system. This has to be executed from within the EFI shell of the disk.


Vparconfig is not a Built-in EFI Shell command. This is installed in the EFI Shell of the disk at the time of installing the VPARs Bundle on to the system. This has to be executed from within the EFI shell of the disk.


parconfig:

EFI Shell>

SHELL> fs0:

Fs0:>parconfig nPars –n

Fs0:>parconfig reset

It is recommended to perform the mode changing and the reboot using the vparconfig command instead of the parconfig whenever possible.

However in the cases when the VPARs product is not installed or using the other disks for the booting purposes we can use this as this command is present on an NPAR system Disk EFI even if the VPARs Bundle is not installed.
Parconfig can not be used to set the mode of the system to the VPARs mode.


NOTE:
1) If vparconfig reboot vPars is used and before that the mode is not set to vpars using the UNIX command vparenv –m vPars it is not possible to boot the VPARs.

2) It is always recommended to set the modes using the vparenv rather than vparconfig of the Disk EFI.

3) Setting the mode to vPars for the first time we must use the command as vparenv.

4) If the desired mode is not set, it will not be possible to boot in that mode.

vparefiutil:

The vparefiutil is a UNIX command that is used to update the EFI mappings in the VPDB /stand/vpdb or in the alternate VPAR Database.

The setboot or the vparmodify command only updates the entry in the VPDB, but does not update the EFI boot paths mappings of the VPDB.

During the boot of a VPAR, the VPMON reads the VPDB and transparently provides the boot path EFI settings so that the VPAR can boot.

Whenever the boot path of a disk changes or an additional boot disk is added including the addition of a boot mirror disk, the EFI mappings within the VPDB has to be updated otherwise it shall not be possible to boot that VPAR.

So vparefiutil has to be executed in the form on all the VPARs as

#vparefiutil –u –D /stand/vpdb

VPARs booting the VPMON and VPMON Commands (HP-UX) PA-RISC and Integrity servers

Note: These apply to VPARs versions 4.x/5.x . For the latest in case of any differences refer to the latest documents on the VPARs


How can we boot the VPMON?

PARISC:


BCH> ISL
ISL> hpux /stand/vpmon


INTEGRITY:

SHELL> fs0:
Fso:>hpux
HPUX> boot vpmon

Options with the VPMON command:


-a read the VPDB and load all the VPARs that have the Autoboot attribute set.
-D /stand/vpdb – use the VPDB file /stand/vpdb


VPMON Commands: (Commands that can be given at the MON Prompt)


MON> readdb /stand/vpdb

NOTE:

On Integrity the /stand/vpdb is actually linked to /stand/boot.sys/stand/vpdb.backup.
So while performing the backup of the VPDB using the UNIX cp command we also have to create the link /stand/vpdb to the /stand/boot.sys/stand/vpdb.backup so that using the VPDB the VPARs can be booted.

MON>vparload –all  ---- boots all the VPARs irrespective AUTOBOOT/AUTOSEARCH is set or not.

MON> vparload –auto -- This will boot all the VPARs that have the AUTOBOOT set.

MON> vparload –p vpar1 –o “-is”

This boots the VPARs in the single user mode

MON>vparload –p vpar1 –b /stand/vmunix.other

This boots the VPAR from an alternate VPAR Kernel

MON>vparload –p vpar1 –B 0/0/0/3/0.6.0

Boot the VPAR from an alternate boot path

The alternate kernels for the VPARs are kept in the directory /stand/alternate_config/.

To see the bootpath

MON>bootpath

Reboot in nPars environment

MON>reboot nPars

Reboot in vPars environment

MON>reboot vPars

Reboot the MON (hence the system)

MON>reboot

Read a Text file in /stand

MON>cat /stand/stuents.txt

MON>cbuf vpar1 -- shows the console buffer of the partition.

MON>clear pending -- clears a pending RFR. If an RFR is pending the VPAR can not be booted so in some cases we need to clear the pending RFR.


Seeing the contents of LIF Area

MON>lifls

Get the contents of the AUTO file

MON>getauto

List the files in /stand

MON>ls

NOTE:
The following commands do not work when one or more of the VPARs are up and running, getauto, lifls and readdb.

The following commands are disabled when the VPAR is up that owns the bootdisk, ls and cat.