1848497 Members
7192 Online
104029 Solutions
New Discussion

build new kernel

 
SOLVED
Go to solution
James Ellis_1
Super Advisor

build new kernel

I wanted to build a new kernel. But when I ran the commands

cd /stand/build

/usr/lbin/sysadm/system_prep -s /system

/usr/sbin/mk_kernel -s ./system

I got a message that it did not complete because /stand/build was full. So I checked why, and saw many object files (files that ended in .o). I decided to remove them because this came from the current failed build. But I accidentally removed the whole /stand/build directory (Not the /stand itself, but /build).

Now, I want to go back and rebuild a new kernel after clearing up some space. But there is no /build under the /stand directory.

How do I remedy this error? Do I restore from a backup? Pls advice. Basically, I deleted the /build directory under /stand and did not realize that I should have just deleted the files under /build. What should be done to restore back to current state before the /build was lost?

I know...me stupid. Thanks for your help.

Jim
"In the middle of difficulty lies opportunity" -Einstein
9 REPLIES 9
Kevin Wright
Honored Contributor

Re: build new kernel

I think you better get your backup tapes out.
harry d brown jr
Honored Contributor

Re: build new kernel

Restore from your backup (safest). Then look for multiple vmunix's, but be careful and don't delete vmunix, but the others are fair game.

live free or die
harry
Live Free or Die
G. Vrijhoeven
Honored Contributor
Solution

Re: build new kernel

Hi,

It looks like you are running out of disk space in /stand. It is not possible to extend the /stand file system without re-installing.

start with making a make_recovery tape just in case!
Copy stand.prev, to an other file system,
and try rebuilding, and rebooting,

Hope this will help,


Gideon
A. Clay Stephenson
Acclaimed Contributor

Re: build new kernel

Hi:

First give yourself a dope slap. Next restore /stand/build from backup. I would also make sure that your have a vmunix and vmunix.prev. Without knowing for sure where you were in the process I would keep both copies. I would then try to reboot before attempting a new kernel build.
If it ain't broke, I can fix that.
Roger Baptiste
Honored Contributor

Re: build new kernel



I don't think removing build
directory is fatal. Just recreate it:
mkdir /stand/build
chmod 755 /stand/build
bdf /stand
-> make sure there is enough space. If not, move out
OLD kernel file i.e
/stand/vmunix.prev (move it out temporarily, do NOT delete it).
then, use SAM to do the kernel build.

What is the size of /stand??

HTH
raj
Take it easy.
James Ellis_1
Super Advisor

Re: build new kernel

RajMan,

My /stand is 87.7 meg. What is the normal size for /stand?

The fact that /stand got full and has happened twice, got me wondering if I should increase the space. Or just keep the /stand regularly cleaned out (without goofing off and deleting important files). How do you regularly keep /stand down to a minimum?

Thanks bunches! -Jim
"In the middle of difficulty lies opportunity" -Einstein
Roger Baptiste
Honored Contributor

Re: build new kernel

 
Take it easy.
fg_1
Trusted Contributor

Re: build new kernel

James

1) Get out your last backup tape.
2) mkdir /stand/build
3) chmod 755 on the directory.
4) copy the data back to the directory.
5) Once your data is back, then do a make_recovery -A -C -v.
6) Now reboot your machine and boot off of the ignite tape, this will enter you into the ignite-ux server screen.
7) next rebuild your /stand directory to at least 120MB in size. This number is arguable amongst admins but most 11.00 platform systems have this as the base install number from the factory.
8) Once you have rebuilt and rebooted, then go ahead and try to apply your kernel changes.
Deshpande Prashant
Honored Contributor

Re: build new kernel

Hi James
Check the size of your unix kernel file. Minimum 4 to 5 times of that size will be safe, assuming you have only one backup kernel in /stand.
On my system kernel is around 22MB and stand is 100MB.

Thanks.
Prashant.
Take it as it comes.