1831294 Members
2895 Online
110022 Solutions
New Discussion

Kernel re-gen question

 
SOLVED
Go to solution
BFA6
Respected Contributor

Kernel re-gen question

Hello,

I've just created a new kernel through SAM, but taken the option not to move the new kernel into place, as I cannot shutdown the system yet.
Can I just move /stand/build/vmunix_test to /stand/vmunix and move /stand/build/system.SAM to /stand/system and reboot the box. (Making copies of previous kernel & system files first)
This is 11.00

Thanks in advance,

Hilary
11 REPLIES 11
Kevin Wright
Honored Contributor

Re: Kernel re-gen question

Sounds good.
Sanjay_6
Honored Contributor

Re: Kernel re-gen question

Hi Hilary,

yes you can do that when you ready to reboot the system with your new kernel. Take a backup copy of your previous kernel and the system file.

Hope this helps.

Regds
Peter Kloetgen
Esteemed Contributor

Re: Kernel re-gen question

Hi Hilary,

if you create a new kernel with sam, he also creates a copy of the old kernel, which is named vmunix.prev. So in my opinion you don't need to make a copy of the old kernel yourself. Confirm this, have a look for the copy in /stand. The other steps you described should do the job for you.

Allways stay on the bright side of life!

Peter
I'm learning here as well as helping
Sandip Ghosh
Honored Contributor

Re: Kernel re-gen question

For doing this only there is a command called kmupdate. It will treplace the kernel at your next reboot.

Sandip
Good Luck!!!
Sanjay_6
Honored Contributor

Re: Kernel re-gen question

Hi Hilary,

you can try this too,

mv /stand/system system.prev
mv /stand/build/system /stand/system
kmupdate
shutdown -r 0

kmupdate will move the necessary kernel files in place.

hope this helps.

Regds
Darrell Allen
Honored Contributor
Solution

Re: Kernel re-gen question

Hi Hilary,

Here's my procedure for what you're doing on 11.0:

Build the new kernel in Sam without moving it into place nor rebooting

/usr/sbin/kmupdate

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).

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
BFA6
Respected Contributor

Re: Kernel re-gen question

Hi,

What does kmupdate do, that manually copying the files doesn't.
I have only altered the value of dbc_max_pct.

Regards,

Hilary
Darrell Allen
Honored Contributor

Re: Kernel re-gen question

kmupdate also updates /stand/dlkm, the default kernel function set directory. man kmupdate gives more info.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Darrell Allen
Honored Contributor
Sanjay_6
Honored Contributor

Re: Kernel re-gen question

Hi Hilary,

You can do a "man kmupdate" to know more about what kmupdate does.

Hope this helps.

Regds
BFA6
Respected Contributor

Re: Kernel re-gen question

Hi,

Thanks for all the replies.
This is the first 11.00 box where I'm moving the kernel into place later, hence all the questions. Normally I re-gen then reboot straightaway.
The shutdown is going to take place at the weekend.

Hilary