- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: I may have a Kernel Problem
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
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
08-07-2007 03:45 AM
08-07-2007 03:45 AM
I may have a Kernel Problem
Back in the days of HP-UX 10, you could copy /stand/vmunix to /stand/vmunix.bak and everything would be ok. I have just copied a vmunix file on a HP-UX 11.11 system and I've been advised that I may have corrupted my running Kernel because I used cp and not mv ???
Question:
1. Have I corrupted the Kernel and will the machine fail to boot next time its rebooted? As the Kernel has not been modified yet, why could it be corrupted? Is it being written too while the system is running? Theres no indication that the vmunix file has been written to???
2. If my cp command has corrupted vmunix how do I fix it.
This was in preparation to using SAM to change the maxvgs from 10 to 32, but like I say I have not changed the Kernel yet, I've just copied the /stand/vmunix file to /stand/vmunix.bak.
Please advise, as I'm reluctant to reboot until someone explains why it MAY be corrupted by using cp.
Regards
Nigel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2007 03:58 AM
08-07-2007 03:58 AM
Re: I may have a Kernel Problem
The premise that using cp and not mv can corrupt the kernel is false. I've used cp and mv interchangeably when deploying new kernels manually.
It is best to use the same commands that sam does. I would suggest you do a kernel change in sam on a good kernel and check the sam command log.
If your kernel is corrupt, it is from some other cause. There could be a problem with the /stand filesystem.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2007 04:16 AM
08-07-2007 04:16 AM
Re: I may have a Kernel Problem
Like I say, there's no indication of corruption as I've not made any changes yet. I'm planning on changing maxvgs over the weekend. So the fact that you have made copies of /stand/vmunix in the past using cp on a running system is very good to hear.
How would you change maxvgs on HP 11.11 server to 32 (sam) ?
I used to do the following on HP-Ux 10:
1. system_prep a new system file in /stand/build
2. edit /stand/build/system with whatever .....
3. mk_kernel -s ./system
4. mv /stand/vmunix /stand/vmunix.old
mv /stand/system /stand/system.old
5. cp /stand/build/system /stand
cp /stand/build/vmunix_test /stand/vmunix
6. shutdown -r 0
Cross fingers.
I've been advised the above method is no longer supported in HP-UX 11.11 ????
Is this true? and should I just use SAM?
Regards
Nigel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2007 04:19 AM
08-07-2007 04:19 AM
Re: I may have a Kernel Problem
Now, you don't want to run the system very long with a renamed kernel (ie the current "vmunix" is not the "vmunix" that the box booted) because applications that read the kernel's symbol table and use it to access /dev/kmem are going to get erroneous results but this would be true no matter what mechanism were used to rename/move/copy the kernel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2007 04:23 AM
08-07-2007 04:23 AM
Re: I may have a Kernel Problem
Hope so.
Nigel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2007 04:53 AM
08-07-2007 04:53 AM
Re: I may have a Kernel Problem
1. cd /stand/build
2./usr/lbin/sysadm/system_prep -v -s system
3. vi system==>to modify the parameter
4. cp -p /stand/system /stand/system.work
5. cp /stand/build/system /stand/system
6. /usr/sbin/mk_kernel -s /stand/build/system==>has to done under /stand/build
7. /usr/sbin/kmupdate
8. /usr/sbin/shutdown -ry 0
confidence you build from here. Each version of HP-UX OS has its own way to be treated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2007 05:28 AM
08-07-2007 05:28 AM
Re: I may have a Kernel Problem
When I run the system_prep command and edit the new system file under /stand/build/system, I notice there's no maxvsgs parameter???
Do i have to create it myself??
Regards
Nigel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2007 05:44 AM
08-07-2007 05:44 AM
Re: I may have a Kernel Problem
kumtune
This will display all kernel values possible that can be altered by a user. If its not there you can't set it.
You don't have to do anything special.
Just as a precaution, I use Ignite to do a make_tape_recovery backup of a system before doing this work. Then I do it.
I think its time to try.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2007 05:46 AM
08-07-2007 05:46 AM
Re: I may have a Kernel Problem
maxvgs 32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2007 05:48 AM
08-07-2007 05:48 AM
Re: I may have a Kernel Problem
maxvgs 32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2007 05:56 AM
08-07-2007 05:56 AM
Re: I may have a Kernel Problem
sam->Kernel Configuration->Configurable Parameters, go file->print; select file (not printer), give /tmp/kernel.lst(something like that), then OK. you can view /tmp/kernel.lst to check maxvgs which must be 10 in your case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2007 02:55 PM
08-07-2007 02:55 PM
Re: I may have a Kernel Problem
to troubleshoot, you can verify using mk_kernel to verify the integrity of the kernel compilation, this will not have any system impact.
The proper steps of manual kernel regeneration in 11.11
please refer to:-
http://docs.hp.com/en/5185-6559/ch01s01.html#cjacdbcg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2007 10:19 PM
08-07-2007 10:19 PM
Re: I may have a Kernel Problem
Once I change the maxvgs setting to 32 will a new Kernel be built and then reboot. Or will it rebuild the Kernel and then ASK if I want to reboot?
I would like to make the change before the weekend so when the Server is rebooted over the weekend, it comes up with the new MAXVGS setting.
Its been so long since I used SAM, having trouble remmebering.lol
BTW, don't tell anyone Im using SAM. I have a reputation you know.lol
R.
Nigel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2007 11:46 PM
08-07-2007 11:46 PM
Re: I may have a Kernel Problem
maxvgs is a static parameter and system needs to be restarted to bring the changes into effect. If you change it using SAM, you need to select-->Actions, "Process New Kernel." It will ask for your confirmation that system will be rebooted, once you press ok, it will show /stand will be overwritten{ok}. Click and final(i hope) it gives u, Move the kernel and restart the system.
But .... Please take appropriate backups.
1. Always Ignite.
2. /stand/vmunix (i hope this was original thread how to take, with cp or mv.... ;) )
your best bet then is vmunix.prev or your saved kernel.
Cheers!
Anshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2007 12:17 AM
08-08-2007 12:17 AM
Re: I may have a Kernel Problem
You were advised incorrectly. As Clay mentioned, if the currently running kernel does not match /stand/vmunix, a few commands may have difficultie, specifically ipcs which needs to coordinate kernel memory with information from the vmunix file. That may have been what your advisor meant but it has nothing to do with mv or cp.
> I notice there's no maxvsgs parameter???
The system file is the CHANGE file for kernel parameters. If a parameter is not listed, then it takes on the default value. Add the parameters you wish to change. Note that SAM does all these steps automatically so if you support several versions of HP-UX (ie, 10.xx through 11.31) it is advisable to use SAM to make the changes (drivers, kernel parameters, etc) so you won't have to remember all the differences. In this case, SAM is the best choice -- you want to get the steps right.
When using SAM to make the changes, it will first build the kernel, then it stops to ask you if you want to save the current kernel, and move the new one into place or forget the all the changes. If you say OK to move then SAM will move the new kernel into place and ask if you want to reboot now or later. I don't remember whether you have to leave SAM running until you finally reboot.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2007 01:02 AM
08-08-2007 01:02 AM
Re: I may have a Kernel Problem
Thanks again,
Nigel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2007 05:46 PM
08-08-2007 05:46 PM
Re: I may have a Kernel Problem
If you really think this thread was helpfull, please assign the points.