Showing posts with label hpux. Show all posts
Showing posts with label hpux. Show all posts

Monday, December 7, 2015

How to boot VPARs in Single User mode or LVM Maintenance Mode or LVM Quorum override mode with Single User

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 a VPAR in various modes?

We can boot a VPAR in a desired mode from the UNIX Prompt using vparboot or using the VPMON vparload command. But the VPAR needs to be down to be booted in a desired mode.


vpar1#vparboot –p vpar2 –o “-is”  : Single user boot

vpar1#vparboot –p vpar2 –o “-lm”   : LVM Maintenance boot

vpar1#vparboot –p vpar2 –o “-lq” –o “-is”   : Single User with the Quorum ignore

From VPMON if we need to do the same things


VPMON

MON>vparload –p vpar2 –o “-is”   : Single user boot

MON>vparload –p vpar2 –o “-lm”   : LVM Maintenance Boot

MON>vparload –p vpar2 –o “-lq” –o “-is” : Single user with Quorum Ignore

How to change the boot device hardware path for a VPAR (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


How can we change the hardware path of the boot disk in a VPAR?


vpar2 is the VPAR whose disk we are going to migrate to a new hardware path location.

1) Note the present boot configuration of the VPAR vpar1

vpar2#vparstatus –p vpar2 –v --- note boot path and Autoboot and autosearch settings.

vpar2#setboot

vpar2#lvlnboot –v

vpar2#vgexport –p –v –s –m /stand/vg00.map /dev/vg00

vpar2#vgexport –p –f /stand/vg00_pv_list /dev/vg00

2) Shutdown the VPAR and remove the disk.

vpar2#shutdown –hy 00

3) Make changes to the VPDB from the other VPAR.

vpar1#vparmodify –p vpar2 –a io:new_io_path: –a io:new_io_path:boot

vpar1#vparmodify –p vpar2 –d io:old_io_path

4) Boot the VPAR from the VPMON.

MON>vparload –p vpar2 –o “-lq” –B <new_io_path>

5) After the VPAR has booted access the prompt of that VPAR and do a VGIMPORT and lvlnboot and setboot and if reqd vparefiutil.