- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Kernel changes with off-hour scheduled reboot
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
08-31-2001 05:43 AM
08-31-2001 05:43 AM
I received the message that I must execute /usr/sbin/kmupdate and then reboot my system for the changes to take effect. I want to schedule an automatic reboot about 7pm tonight. What would be the best method to automate the kernel parameter changes and the reboot tonight at 7pm, respectively?
Thank you,
..Joe
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2001 05:49 AM
08-31-2001 05:49 AM
Re: Kernel changes with off-hour scheduled reboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2001 05:50 AM
08-31-2001 05:50 AM
Solution1.) set new kernel parameters
kmtune -s params=values
2.) create new kernel
mk_kernel
3.) schedule kernel update
kmupdate
4.) reboot at desired time
reboot -t time
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2001 06:16 AM
08-31-2001 06:16 AM
Re: Kernel changes with off-hour scheduled reboot
last point.
You can schedule the shutdown with at command.
Do a shutdown -r y instead of reboot. kmupdate command will create a flag file called .update_ux in /stand. Based on this, kmbuild script in /sbin/init.d will move the kernel in place during the shutdown and clear .update_ux file. Reboot will make this script to run during the startup and causes an additional reboot of the system.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2001 06:27 AM
08-31-2001 06:27 AM
Re: Kernel changes with off-hour scheduled reboot
..Joe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2001 06:34 AM
08-31-2001 06:34 AM
Re: Kernel changes with off-hour scheduled reboot
For ex
echo "/etc/shutdown -r y" |at now + 210 minutes
This will reboot the box after 3.5 hours from now.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2001 07:14 AM
08-31-2001 07:14 AM
Re: Kernel changes with off-hour scheduled reboot
I know the solution offered will work for you now and since it is a L-class machine the reboots should be fast as well but if you were doing the same on a K-class, then the amount of downtime you need would easily double because when you run kmupdate, it creats a file called .update_ux and when the machine reboots one of the startup file (kmbuild) is looking for this file and if it finds it then moves the kernel along with the system file and dlkm directory to the correct location and then reboots the machine.
Like i said, for a production machine if time is a concern then it might be a better idea to just run kmupdate and then /sbin/init.d/kmbuild (if your run this in multi-user mode, it just moves the files for you and doesn't reboot but when run during system start, reboots the machine again) and then reboot just once which reduces your downtime.
I would like to hear what others think of this approach.
-Regards
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2001 07:39 AM
08-31-2001 07:39 AM
Re: Kernel changes with off-hour scheduled reboot
Here's my procedure (and 2 cents worth) for building a kernel with SAM and rebooting later.
Use SAM to modify kernel parameters and build new kernel
After all mods are made use
"Actions"
"Process New Kernel"
"Do Not Move Kernel Into Place; Do Not Shutdown / Reboot Now"
note the message concerning location of the new kernel and system file, and running kmupdate
exit out of SAM
Tell the system you've built a new kernel (/stand/build/vmunix_test) and want to use it at the next boot
/usr/sbin/kmupdate
Move the new kernel parameters file (/stand/build/system.SAM) into place
cd /stand
cp -p /stand/system /stand/system.prev
cp -p /stand/build/system.SAM /stand/system
Everything is now set to utilize the new kernel at the next reboot.
Do not make other kernel modifications until after booting the new kernel. You need to test the new kernel and the only true test is to boot and run off it.
Reboot at your convenience (but I wouldn't wait an extended period).
To schedule the reboot:
echo "/usr/sbin/shutdown -r -y 300 >>some_logfile 2>&1" | at 1900
Of course, I hope you check that the system came up okay before your users try it!
Darrell