Operating System - HP-UX
1832962 Members
2963 Online
110048 Solutions
New Discussion

Re: how to automate powe shutdown for virtial array 2405

 
SOLVED
Go to solution
Ahmed Hassan_2
Occasional Advisor

how to automate powe shutdown for virtial array 2405

I need to know is there any script ready to configure the shutdown for VA2405 and the ux server? or how to configure ups_mond to shutdown the virutial array ?

I can shutdown the UX server when power failure by using /usr/lbin/ups_mond which is executable file ,I want to configure the commands
firest to umount all logical volums except vg00 , then run armmgr -s shut to shutdown the virutial array before shutdown the system

I have a lot of power problem and power failure on the site
3 REPLIES 3
Naveej.K.A
Honored Contributor
Solution

Re: how to automate powe shutdown for virtial array 2405

Hi hassan,

how about writing a script in /sbin/init.d/vashut and linking it to /sbin/rc2.d/K999vashut and include commands to umount the filesystems on the VA and use an armmgr -s shut to shutdown the VA?

with best wishes
Naveej
practice makes a man perfect!!!
Ahmed Hassan_2
Occasional Advisor

Re: how to automate powe shutdown for virtial array 2405

ups_mond script is monitoring the power failure througth the serial port , and if you want to make new script you should design it from crash to monitor the power atherwise which script will start before the other ? if ups_mond started firest it will take all the filesystem down
Naveej.K.A
Honored Contributor

Re: how to automate powe shutdown for virtial array 2405

ups_mond script is definitely going to start first as it is being run periodically in the background from the /etc/inittab with respawn on.

but ups_mond is going to execute the command, shutdown. During a "shutdown", the /sbin/rc scripts will be called and the file systems will be unmounted. Only thing you need to do is a shutdown of your Virtual array, which can be executed with the script.

With best wishes
Naveej
practice makes a man perfect!!!