- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- What's different with reboot and "shutdown -r 0"
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
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
тАО06-26-2005 03:31 AM
тАО06-26-2005 03:31 AM
What's different with reboot and "shutdown -r 0"
then my unix-9000 was gone.
HP-help center tell me , next time please use shutdown - r 0 .
He said "We usually use that command to restart.
I want to know more detail .
Does somebody tell me more?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2005 03:37 AM
тАО06-26-2005 03:37 AM
Re: What's different with reboot and "shutdown -r 0"
Usually you dont use "reboot" from Multiuser mode to reboot the system. It is used to reboot the system from single user mode. The reason being..
Reboot command reboots the system faster because it kills the currently running processes ungracefully... that is to say with signal "9" .. "kill -9" ...
On the other hand "shutdown -ry 0" will reboot the system..gracefully giving enough time for all the running processes to exit gracefully.. something equivalent to "kill -15" ... hence slower but safe...
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2005 03:46 AM
тАО06-26-2005 03:46 AM
Re: What's different with reboot and "shutdown -r 0"
Executing the shutdown command stops system activities in an orderly and consistent manner. It prompts the admin for a broadcast message to send to all users, kllls all users, gracefully shutdown all critical processes and synchronizes and unmounts filesystems.
The reboot command use kill -9 to kill running process, which takes the system down quickly, but can cause problems to the application and filesystems.
reboot may be used if the system is already in single-user mode.
Sudeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2005 04:22 AM
тАО06-26-2005 04:22 AM
Re: What's different with reboot and "shutdown -r 0"
When you do a shutdown, the /sbin/rc?.d/K* scripts are executed to gracefully stop system processes.
A reboot does not do this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2005 01:53 PM
тАО06-26-2005 01:53 PM
Re: What's different with reboot and "shutdown -r 0"
`shutdown -r 0` is better choice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2005 02:27 PM
тАО06-26-2005 02:27 PM
Re: What's different with reboot and "shutdown -r 0"
Reboot is just killing the process forcebily which can result in data loss or file corruption. Whereas shutdown -r 0 is command which tells system to gracefully(not forcefully) shutdown the system( wait for processes to get complete by itself). The option -r is to reboot after graceful shutdown and 0 is the grace period in seconds.
See man pages for more information. Always prefer shutdown.
Cheers !!!
eknath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2005 03:09 PM
тАО06-26-2005 03:09 PM
Re: What's different with reboot and "shutdown -r 0"
When bringing an HP-UX system down, HP recommends using
the shutdown command instead of the reboot command.
The shutdown command does additional preprocessing to prepare
the system for the reboot command. Primarily, shutdown
executes /sbin/rc to shutdown subsystems, unmount filesystems, and
other tasks to bring the system to run level 0. This process
ensures that the system is as quiet as possible before running the
reboot command.
The reboot command will then kill all remaining non-system
processes, sync the buffer cache, and then calls the reboot
system call.
Note that issuing a reboot instead of a shutdown does not attempt
to stop any of the subsystems or unmount the file systems. While
reboot does attempt to kill non-system processes, other system
deamons may be active on the system. For example, the vxfsd
daemon may be attempting to flush the inode cache.
Any remaining activity on the system - when the reboot system
call is made - can cause the system to hang during the reboot if
the activity locks any resource that the reboot system call
needs to complete its processing, especially when reboot is trying
to flush the buffer cache.
Therefore, shutdown should be used instead of reboot to
provide a more comprehensive shutdown and limit the possibility of
system hangs during a reboot.
Regards
Vinod K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2005 01:34 AM
тАО06-27-2005 01:34 AM
Re: What's different with reboot and "shutdown -r 0"
man 1m reboot
DESCRIPTION
The reboot command terminates all currently executing processes except
those essential to the system, then reboots the system, or halts, or
makes the partition ready for reconfig. When invoked without
arguments, reboot syncs all disks before rebooting the system.
and the Warning:
WARNINGS
reboot does not invoke the shutdown scripts associated with subsystems
to bring them down in a cautious manner. See shutdown(1M).
So, if Oracle was running - and started via startup scripts in /sbin/init.d - then a reboot would "crash" it - IE - Oracle would not be shut down cleanly...
Rgds...Geoff