Operating System - HP-UX
1849383 Members
6129 Online
104044 Solutions
New Discussion

/stand/build not found when building kernel

 
SOLVED
Go to solution
Phillip Thayer
Esteemed Contributor

/stand/build not found when building kernel

Every time I try to rebuild the kernel the first thing I do is 'cd /stand/build' but it never finds this folder. So I create the folder and try to rebuild the kernel but it never seems to work quite right. Should the /stand/build folder already exist when I go to rebuild the kernel? If so what is it supposed to have in it?

Phil
Once it's in production it's all bugs after that.
5 REPLIES 5
totoperdu
Frequent Advisor
Solution

Re: /stand/build not found when building kernel

Hello,

what's your hpux version?

what's your way for building new kernel? (sam or command line)?

for command line building, here is an example:

Sometimes the kernel needs to be built manually, using the command line.
1. cd /stand/build
2. Have HPUX create a new system file from the active kernel.

/usr/lbin/sysadm/system_prep -s /stand/build/system
NOTE: The command system_prep captures values directly from the kernel.
Therefore, for HP-UX 11i systems using the newly introduced dynamic tunable parameters, create a kernel template by copying the /stand/system to /stand/build/system. By default, the command, kmtune, updates the /stand/system file for any dynamic tunable parameter changes. (See the kmtune(1m) and 11.11
Release Notes manpage for more information.)

3. Edit the template system file for the recommended values with
vi /stand/build/system or kmtune(1m).

Example setting nfile tunable to 3000:
kmtune -s nfile=3000 -S /stand/build/system

4. Create the proposed kernel.
/usr/sbin/mk_kernel -s /stand/build/system

5. Archive the old system and vmunix files so if needed, the system can be booted from the old kernel.
mv /stand/system /stand/system.prev

6. Place the newly created system and kernel files for system boot strap.
mv /stand/build/system /stand/system
kmupdate /stand/build/vmunix_test

NOTE: kmupdate renames /stand/vmunix to /stand/vmunix.prev and moves the new
kernel to /stand/vmunix.

7. Boot the system to use the new kernel.
cd /
shutdown -r

hope this helps you.

--
Cheers,
Cédrick Gaillard
Bill Hassell
Honored Contributor

Re: /stand/build not found when building kernel

/stand/build is standard on HP-UX 11.11 and earlier, so someone has removed this directory and it's contents. For 11v2, the build directory does not exist and the directories and files are different, so using 11v1 or 11.00 instructions for building the kernel won't be completely accurate.


Bill Hassell, sysadmin
Phillip Thayer
Esteemed Contributor

Re: /stand/build not found when building kernel

I'm using HP-UX 11v2. I think I am using the instructions for pre 11v2. How do I rebuild the kernel for HP-UX 11v2?

Phil
Once it's in production it's all bugs after that.
totoperdu
Frequent Advisor

Re: /stand/build not found when building kernel

you can follow this link:
http://docs.hp.com/en/B2355-90950/ch03s11.html

and if you want to have more knowledge, you can see "Managing kernel configurations":
http://h71028.www7.hp.com/ERC/downloads/c00563213.pdf

--
Regards,
Cédrick Gaillard
Phillip Thayer
Esteemed Contributor

Re: /stand/build not found when building kernel

Thanks for all the help on this one. I wouldn't have been able to do it without the help.

Phil
Once it's in production it's all bugs after that.