- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rebuild kernel increase semmns
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
04-30-2002 04:48 AM
04-30-2002 04:48 AM
rebuild kernel increase semmns
My OS is HP-UX11.00 and after an install of Oracle9i, I had to increase the maximum numbers of semaphores semmns from 400 to 1000. After the modification of the parameter via SAM, the kernels was rebuild and the system rebooted.
However if I look in SAM, the value of semmns still is 400. The value in /stand/system is 1000. Further on, the time stamp of /stand/vmunix is too old (older than the modification of the kernel). The time stamp of /stand/build/vmunix_test corresponds with the modification of semmns.
So it seems that /stand/build/vmunix_test wasn't copied towards /stand/vmunix.
Does anybody knows why the increase of the kernel parameter failed? Do I have to increase semmns again via sam again? I don't find anything strange in syslog.log or OLDsyslog.log.
Thanks,
Kurt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2002 04:55 AM
04-30-2002 04:55 AM
Re: rebuild kernel increase semmns
if the date on the new vmunix_test is todays the kernel build was probably ok try backing up the original and copying the test version over and rebooting.
you can also look through the sam log to see what happened during the build.
just remembered sam asks you if you want to copy the new build into place are you sure you said yes ?
cheers
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2002 05:04 AM
04-30-2002 05:04 AM
Re: rebuild kernel increase semmns
ashish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2002 05:06 AM
04-30-2002 05:06 AM
Re: rebuild kernel increase semmns
I'll try it again, but it can't be done for the moment (production server).
Thanks,
Kurt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2002 05:08 AM
04-30-2002 05:08 AM
Re: rebuild kernel increase semmns
I think you might be wise to do it manually here are the steps if you wish to do so.
cd /stand/build
usr/lbin/sysadm/system-prep -s system
edit system file and make desired changes
mk_kernel -s system
mv /stand/system /stand/system.prev
mv /stand/vmunix /stand/vmunix.prev
mv /stand/build/vmunix_test /stand/vmunix
cd /
etc/shutdown -ry now
cheers
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2002 05:16 AM
04-30-2002 05:16 AM
Re: rebuild kernel increase semmns
$.02
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 03:22 AM
05-07-2002 03:22 AM
Re: rebuild kernel increase semmns
I've first rebuild the kernel with SAM and I'm sure that 'Move kernel into place' was specified. After a reboot, the old kernel values were still active.
So I've rebuild the kernel manually following your procedure:
cd /stand/build
usr/lbin/sysadm/system-prep -s system
edit system file and make desired changes
mk_kernel -s system
mv /stand/system /stand/system.prev
mv /stand/vmunix /stand/vmunix.prev
mv /stand/build/vmunix_test /stand/vmunix
cd /
shutdown -r -y 0
The system boots from the new kernel, but when I go now into SAM and choose kernel configuration-Configurable parameters, I get now:
Internal Error: cannot find driver/module """" in the internal configuration data structure
What means this? How can I verify the kernel parameters form command line?
Kurt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 03:34 AM
05-07-2002 03:34 AM
Re: rebuild kernel increase semmns
use kmtune
#kmtune | grep semmns
also you can use sysdef
#sysdef | grep semmns
I refer kmupdate command may solve your problem. #man kmupdate
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 03:37 AM
05-07-2002 03:37 AM
Re: rebuild kernel increase semmns
/usr/lbin/sysadm/get_sysfile /stand/vmunix
and the parameters were updated as I've changed them into /stand/build.system
Kurt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 03:50 AM
05-07-2002 03:50 AM
Re: rebuild kernel increase semmns
this is the recommended procedure for kernel
rebuilding.
# cd /stand/build # /usr/lbin/sysadm/system_prep -v -k
# /usr/sbin/mk_kernel -v -s system
# mv /stand/build/system /stand/system
# cd /
For 10.X,
#mv /stand/build/vmunix /stand/vmunix
For 11.X,
#kmupdate /stand/build/vmunix_test
# shutdown -r -y 0
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 04:03 AM
05-07-2002 04:03 AM
Re: rebuild kernel increase semmns
with reference to HP :
With the new Dynamically Loadable Kernel Modules (DLKM) in HP-UX 11.x, both static and dynamic modules are possible. Static modules are handled in the old manner.
that is, linked into the static kernel file still typically named /stand/vmunix). Dynamic modules are separate object files that are not linked into the kernel and thus can be included or excluded without re-linking (re-building the kernel, thus no reboot is required (actually, under DLKM you have to shutdown and reboot, not use the reboot command, but that is different issue).
Under the old static kernel, after a kernel build you would just move the vmunix_test file from /stand/build to /stand as vmunix. At this point, it's worth noting, that in HP-UX 11, there are possibly many files that need to be moved after a kernel build. These include: symtab, the symbol table file, vmunix the kernel and possibly several loadable module files, as well as some static files.
Because of this, there is a new command to move all required files from a newly built kernel to the proper locations (/stand and /stand/dlkm). This command is named kmupdate and requires a shutdown afterwards to complete the file moves, and renames.
The /stand/dlkm directory contains the kernel function set files such as dynamic modules, module registry file and a symbol file. During a kernel rebuild, the new set will be created under /stand/dlkm.vmunix_test. So simply moving
the kernel to /stand directory will not help.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 04:17 AM
05-07-2002 04:17 AM
Re: rebuild kernel increase semmns
So I have forgotten to:
1. mv /stand/build/system /stand/system before the system reboot
2. I've used 'mv /stand/build/vmunix_test /stand/vmunix' instead of 'kmupdate /stand/build/vmunix_test'
Do I have to rebuild the kernel again and then perform the 2 steps 1 and 2 before the reboot or can I get it right manually?
Kurt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2002 04:22 AM
05-07-2002 04:22 AM
Re: rebuild kernel increase semmns
At this stage , i would recommend to use that
steps , because any manual exercises can cause
kernel data structure corruption.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2002 04:51 AM
06-07-2002 04:51 AM
Re: rebuild kernel increase semmns
kminit
kmbuild
had a size of zero bytes.
Replacing the scripts with their original contents solved (of course) the problem.
Kurt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2002 10:47 AM
06-07-2002 10:47 AM
Re: rebuild kernel increase semmns
And U.SivaKumar got it right -
you must do a kmupdate -
then reboot after the mk_kernel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2002 10:59 AM
06-07-2002 10:59 AM
Re: rebuild kernel increase semmns
Did you rebuild the kernel manually. These are the steps in building up a new kernel,
# cd /stand/build
# /usr/lbin/sysadm/system_prep -v -s system
# kmtune -S /stand/build/system -s parm_name=value
or
kmtune -S /stand/build/system -s parm_name+value
# /usr/sbin/mk_kernel -s ./system
# mv /stand/system /stand/system.prev
#new for dynamically linked modules at 11.0
# mv /stand/build/system /stand/system
# kmupdate # kmupdate automates moves the kernel files into the proper directory
# shutdown -ry 0
Hope this helps.
Regds