- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Send Message to everyone..that cluster package...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2007 06:41 PM
03-20-2007 06:41 PM
We have 2node cluster..i just would like to send a message to all logged in users on adoptive node ,that the cluster package has halted and switching to node 2 and so please log off immediately...Bcoz here we r using the adoptive node as development server ..since our company is in a deep financial crunch....Please suggest...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2007 07:48 PM
03-20-2007 07:48 PM
Re: Send Message to everyone..that cluster package is switching
http://www.hpux.ws/mailfile2
Take code from there and build it into your script.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2007 08:00 PM
03-20-2007 08:00 PM
Re: Send Message to everyone..that cluster package is switching
I am not very good in scripting...but i would like to know when my package goes down on node1,which process should i grep for ,to verify and then send a message to all logged in users of adoptive node...to log off immediately since that node would be my producn node ..
Regards,
Boomer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2007 09:03 PM
03-20-2007 09:03 PM
SolutionIf the production node crashes, the shutdown actions are not done at all: the package is just started up on the adoptive node with the hopes that the fsck will clean up any filesystem problems the crash may have caused, and that the application can handle its own problems.
Would the beginning of the package startup on the adoptive node be a good place for sending the message? After all, it's the only thing that is guaranteed to execute, no matter why the package is being switched.
Something like this could be added into the package startup actions part of the package control script:
wall << EOF
ATTENTION: production system now starting up on this host.
All non-production users please log off *immediately*.
EOF
You might also want to increase the package filesystem mount and umount retry counts in the control script, if they are at the default values: this will ensure that if some developer has something hogging the production package's mount point, that process will be killed automatically and the mount will be retried. I've found 3 to be a good retry count value for both.
Remember that the package control script is not automatically replicated between the nodes: you must do that yourself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2007 09:10 PM
03-20-2007 09:10 PM
Re: Send Message to everyone..that cluster package is switching
Thanks for ur suggestion...i will be putting the same entry that u have mentioned in the package starup section....
Points given....