- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: reboot and shutdown the servers
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
Discussions
Discussions
Forums
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
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
тАО01-17-2006 09:09 AM
тАО01-17-2006 09:09 AM
Which are tghe best commands to "reboot" and "shutdown" the hpux servers ? Can we do it as a powerbroker user or will need to login as a root on the console ?
Do we need to take backup of any config files in case servers fails to come up successfully ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 09:13 AM
тАО01-17-2006 09:13 AM
SolutionAny user defined in /etc/shutdown.allow can use the shutdown command. No need to be logged on the console either, though that is typically preferred so you can watch the enter boot process for problems.
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 09:17 AM
тАО01-17-2006 09:17 AM
Re: reboot and shutdown the servers
reboot is quick and does not run the shutdown scripts. It can and has corrupted data and databases in the past.
it is much faster.
shutdown is the right way to go especially for critical systems with critical data on them.
shutdown runs the shutdown scripts as planned in the init/shutdown setup.
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
тАО01-17-2006 09:21 AM
тАО01-17-2006 09:21 AM
Re: reboot and shutdown the servers
'reboot' is really the last step of 'shutdown'. 'shutdown' causes your '/sbin/init.d/*' "stop" sequences to run while 'reboot' does not. Therefore, it is appropriate and wise to do 'shutdown' whenever possible.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 09:23 AM
тАО01-17-2006 09:23 AM
Re: reboot and shutdown the servers
I should add that you can enable a non-root user to run the 'shutdown' command by adding the user to the '/etc/shutdown.allow' file.
See the manpages for 'shutdown(1M)' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 09:24 AM
тАО01-17-2006 09:24 AM
Re: reboot and shutdown the servers
you should use the shutdown -r to reboot your server gracefully...
you can add users to the shutdown.allow file which is located in /etc which give user rights to run the shutdown command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 09:34 AM
тАО01-17-2006 09:34 AM
Re: reboot and shutdown the servers
Here is something:
1. If you have not rebooted/shutdowned the server long time, it is a good practice to keep all the configuration data backed up, incase of any problem. [ Nickel and cfg2html is good. ]
2. You can issue # shutdown -r -y 0
To reboot the server.
And # shutdown -h -y 0
To Halt.
3. You can login to console , to use the reboot to check for any error messages in console . You can use sudo or powerbroker , but rebooting/shutdown from console gives you much flexibility.
Enjoy,
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 12:16 PM
тАО01-17-2006 12:16 PM
Re: reboot and shutdown the servers
As I think there isn't "best command to reboot and shutdown" a HP-UX server :)
As HP engineer recommendation: should'n give "root" permission to any other user for security reason!
The most importance things in your question is: Was reboot or shutdown process effected to your applications?
The answer is: It depend on your applications!
In my system, before reboot or shutdown the server, I always shutdown all my application for example: Oracle, DB2, etc...
Of course, you need to backup all your application for saving data and application configuration including backup importance volume group (vg00 like an example).
Hope this helps
Hoang Chi Cong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 12:35 PM
тАО01-17-2006 12:35 PM
Re: reboot and shutdown the servers
The Best command to Shutdown and Reboot a hp unix Server is ..
To shutdown..
#shutdown -yh 0
To Reboot..
#shutdown -yr 0
To execute this command either u should have root access or u should have sudo permission.
cheers
indrajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2006 12:50 PM
тАО01-17-2006 12:50 PM
Re: reboot and shutdown the servers
it depends on needs, a good doc on whether u like to reboot or shutdown:
http://docs.hp.com/en/B2355-90672/ch02s06.html
as to whether backup is essential, it depends as well. if u have not shutdown for a very, very long time, and intent to leave the system down for a day or 2, it will be good to backup and also make_tape_recovery, cause u never know if the disks will fail.
regards.