Operating System - HP-UX
1830705 Members
2500 Online
110015 Solutions
New Discussion

VPARS: Auto Boot And Quorum Override

 
RadioShack RSTS(Backup)
Occasional Advisor

VPARS: Auto Boot And Quorum Override

Is there a way to auto boot all vpars (after cycling the hard partition) while at the same time overriding the LVM quorum (-lq) in all vpars?

Manually I can do it with:
MON> vparload -p -o "-lq"
-or-
# vparboot -p -o "-lq"

Using AUTO LIF I can auto boot all partitions using:
hpux /stand/vpmon -a

Is "hpux -lq /stand/vpmon -a" futile?

Thanks,
Brent
8 REPLIES 8
harry d brown jr
Honored Contributor

Re: VPARS: Auto Boot And Quorum Override

Try adding the -lq to the boot options of all of the partitions, then have the autoexecute file just do an:

hpux /stand/vpmon -a

personally, I control my reboots, so I don't mess with auto-booting and autoboot options.

live free or die
harry
Live Free or Die
gil paz_2
Advisor

Re: VPARS: Auto Boot And Quorum Override

You need to do:
On the system disk (/dev/rdsk/c0t6d0):
mkboot ???a ???hpux ???lq (;0)/stand/vpmon
-a" /dev/rdsk/c0t6d0

On the Mirror disk (/dev/rdsk/c0t5d0)
mkboot ???a ???hpux ???lq (;0)/stand/vpmon
-a" /dev/rdsk/c0t5d0
RadioShack RSTS(Backup)
Occasional Advisor

Re: VPARS: Auto Boot And Quorum Override

>You need to do:
>On the system disk (/dev/rdsk/c0t6d0):
>mkboot ???a ???hpux ???lq (;0)/stand/vpmon
>-a" /dev/rdsk/c0t6d0

Are you 100% sure? This was my original assumption until I tried the following:

hpux -is /stand/vpmon -a

Result = All vpars did NOT boot to single user (in fact none of them did) which leads me to believe that hpux -lq /stand/vpmon -a is not actually overriding quorum in all vpars. Easy enough to test, I simiply don't have the resources at the moment. Thanks for your input though.

Brent
gil paz_2
Advisor

Re: VPARS: Auto Boot And Quorum Override

Hi,
To boot from MON:
MON> vparload -p -o "-is"
"-lq"
Stefan Farrelly
Honored Contributor

Re: VPARS: Auto Boot And Quorum Override

You need to change the boot up command to be;

hpux /stand/vpmon vparload -all

And switch on autoboot. This will load vpmon off the boot device and then load all vpars. To load all vpars with -lq use;

hpux /stand/vpmon vparload -p -o "lq"

I dont think you can boot mutliple vpars into lq mode using this command. The manual doesnt say. You could try adding multiple vparload commands to the above. You will need to change the bootup command for each vpar (when loaded) using mkboot (to add -lq) then next time your server starts when you do the command to load all vpars (vparload -all) it will load all of them using -lq.

Im from Palmerston North, New Zealand, but somehow ended up in London...
Stefan Farrelly
Honored Contributor

Re: VPARS: Auto Boot And Quorum Override

Im a little confused. You mentioned the -lq option - which is low quorum in case some disk(s) are missing from vg00, but then you mention single user mode. If you want single user mode change the string to "-is"
Im from Palmerston North, New Zealand, but somehow ended up in London...
Steve Lewis
Honored Contributor

Re: VPARS: Auto Boot And Quorum Override

If I can be so bold to opine:

It isn't always a good idea to automatically override quorum on boot up, since the system will come up regardless of the error and you won't find out about your failed vg00 mirror unless you explicitly check for it (either checking the syslog, root mail from EMS or OV monitor). The system may be up for weeks without anyone knowing theres a problem with your root disk mirror and its simply a matter of time before the other disk goes and you will have a far bigger problem to fix. I have seen this happen on an unattended system at a customer site where there was scant system monitoring.

If you leave out the -lq and the system doesn't boot, then you know immediately that you have a problem to fix, yet you will still be able to boot it by manually overriding quorum.

Just my opinion. I guess its a question of how much monitoring you do.

RadioShack RSTS(Backup)
Occasional Advisor

Re: VPARS: Auto Boot And Quorum Override

>You will need to change the bootup command >for each vpar (when loaded) using mkboot (to >add -lq) then next time your server starts >when you do the command to load all vpars (vparload -all) it will load all of them >using -lq.

Stefan:

I don't think this will work for the following reason:

The AUTO file is not read when a virtual partition is booted (vpdb is). The only the time the AUTO file is read is when the physical server (npar) is started and it is read only from the disk that is booting. Therefore, modifying all of the individual AUTO files on each vpar using "mkboot" will have no effect (unless you decide to physically boot from any one of them).

This being the case, it doesn't appear that the VPARs software can do any of the following:
- Auto boot all vpars to single user mode "is"
- Auto boot all vpars with low quorum "lq"
- Auto boot all vpars to LVM Maint mode "lm"

Brent