1830207 Members
3262 Online
109999 Solutions
New Discussion

Kernel backup

 
Feljav
Frequent Advisor

Kernel backup

How can I make a kernel backup in HP-UX 11.11?

Can I copy /stand/vmunix to any directory and use that copy to boot the kernel?
When I boot from an alternate kernel, does this copy automatically become in the current kernel or do I have to change it manually? If so, how do I change it?
4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: Kernel backup

The backup kernel MUST reside in /stand. /stand is the ONLY file system that is accessible when the machine starts booting. If you have a backup in any other file system it will be useless as you will not be able to access it.
A. Clay Stephenson
Acclaimed Contributor

Re: Kernel backup

Note that normally the current kernel is saved as /stand/vmunix.prev before the new kernel is moved to /stand/vmunix so you should have a backup copy. Wise admins always uintentionally oversize /stand so that another known good copy such as /stand/vmunix.safe can be kept.
If it ain't broke, I can fix that.
Feljav
Frequent Advisor

Re: Kernel backup

But, When I boot from an alternate kernel, does this copy automatically become in the current kernel or do I have to change it manually? If so, how do I change it?
Patrick Wallek
Honored Contributor

Re: Kernel backup

If you boot from /stand/vmunix.prev, it stays as vmunix.prev. It does not move to /stand/vmunix.

You would have to copy it manually. The steps would be pretty much the same as if you were compiling a kernel manually, though in reverse.

Your better option, if you have to use a vmunix.pref is to copy that to vmunix.good, so you always have a known good kernel (as Clay said above) and then try to figure out why /stand/vmunix didn't work. The normal process of building a kernel creates a vmunix.prev, so you don't want to unintentionally overwrite a good kernel with a bad one. You'd really be in trouble then.