- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cloning kernel configurable parameters
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
08-23-2006 11:42 AM
08-23-2006 11:42 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2006 01:33 PM
08-23-2006 01:33 PM
Re: Cloning kernel configurable parameters
Have a full backup of all your info before to attempting this.
If you want to duplicate your Kernel from one system to another try these steps:
1. Copy /stand/vmunix from one system to a directory on the other server
2. Run SAM -> Kernel Config -> Configurable Parameters
3. Go to Actions -> Templates -> Load a template file
4. Specify /[directory]/vmunix
5. Go to Actions -> Templates -> Apply Template Values
6. Check both "Driver and Subsystem Values" and "Configurable
Parameter Values"
7. Go to Actions -> Process New Kernel
On Step 6 you can try both or just "Configurable Parameter Values"
Reboot the server if needed.
Make sure you have the latest cumulative SAM Patch installed.
LN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2006 02:39 PM
08-23-2006 02:39 PM
Re: Cloning kernel configurable parameters
HP-UX OS version is the same, isn't it?
I think you can do that like this
1. copy the original system's /stand/system file to those servers you intend to match the kernel parameter.
2. mk_kernel -s "the copied file"
that's my idea!!
Regards
nanan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2006 02:41 PM
08-23-2006 02:41 PM
Re: Cloning kernel configurable parameters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2006 01:16 AM
08-24-2006 01:16 AM
Re: Cloning kernel configurable parameters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2006 01:21 AM
08-24-2006 01:21 AM
Re: Cloning kernel configurable parameters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2006 01:30 AM
08-24-2006 01:30 AM
Re: Cloning kernel configurable parameters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2006 02:00 AM
08-24-2006 02:00 AM
Re: Cloning kernel configurable parameters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2006 12:55 AM
08-25-2006 12:55 AM
Re: Cloning kernel configurable parameters
On the first machine export the kernel configuration by
kconfig -e /tmp/myfile
Transfer the exported file to the new machine and import the konfiguration with
kconfig -i /tmp/myfile
shutdown -yr 0
And when the machine is rebooted the second machine should be similiar to the first one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2006 01:40 AM
08-25-2006 01:40 AM
SolutionHere's what I do when I have to run this. Note: it's easier on 11.23, but you specified 11.11, so here goes:
1. Follow the directions on http://www.olearycomputers.com/ll/hpkernel.html to create a new /stand/build/system file.
2. Copy the /stand/system from your source system to a temporary directory:
mkdir -p /root/working/kernel
cd $_
scp ${host}:/stand/system .
3. ID kernel differences:
sed -n -e '/^Tunable/,$p' ./system | awk 'NF ==2 {print $1,$2)}' | \
while read p v
do
c=$(kmtune -q ${p} | tail -1 | awk '{print $2}')
[[ "${c}" != "${v}" ]] && printf "%-30s %-15s %s\n" ${p} ${c} ${v}
done | tee kern_parms
4. Edit the kern_parms; remove any kernel parameters you don't want updated.
5. Update the /stand/build/system file:
awk '{print $1,$3}' kern_parms | while read p v
do
kmtune -s ${p}=${v} -S /stand/build/system
done
6. Follow remaining instructions in the url link above to generate the kernel. In short:
mk_kernel -s /stand/build/system
cp /stand/system /stand/system.prev
cp /stand/vmunix /stand/vmunix.prev
km_update
reboot
HTH;
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2006 03:11 AM
08-25-2006 03:11 AM
Re: Cloning kernel configurable parameters
I like your script!
I had a couple of problems when testing it out on 11.11, however.
1) don't need ^ in ^Tunable
2) missing "(" in the first awk print function
( or, an extranous ")" ;>)
3) when you compare using the "Current" value, you lose macros and thus get false non-matches. I would suggest using "Planned" ( $4 instead of $2)
Now, this was on 11.11
and my 11.23 system has gone missing so I cannot check it there.
bv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2006 07:36 AM
08-25-2006 07:36 AM
Re: Cloning kernel configurable parameters
Thanks.
The ^Tunable is to ensure I get the tunable from "tunable parameters" Generally not needed, I agree, but I tend to like to hammer those down.
The awk was definitely an error; typing those into a browser window is very different than typing them into a command line. That particular awk shouldn't have the paren before the closing brace.
There's definitely arguments pro/con for using the current vs the planned. I usually go for the current in case someone else has tweaked the kernel for the next reboot - at least I'm using parameters from a known good, bootable kernel.
Thanks for the feedback.
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2006 07:59 AM
08-25-2006 07:59 AM
Re: Cloning kernel configurable parameters
On my 11.00 and 11.11 systems, the actual string in "system" is
"* Tunable ...."
so ^Tunable did not match it.
Keeping case, but removing first-char restriction probably makes it match on any HPUX version.
bv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2006 08:20 AM
08-25-2006 08:20 AM
Re: Cloning kernel configurable parameters
>> My point on ^Tunable was the carat itself, meaning that "Tunable" was first char on the line.
>> On my 11.00 and 11.11 systems, the actual string in "system" is
>> "* Tunable ...."
You are absolutely correct. I really ought not try to write these things from memory in a browser window. Humble apologies.
At least the logic's sound :)
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2006 09:35 AM
08-25-2006 09:35 AM
Re: Cloning kernel configurable parameters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2006 10:11 AM
08-25-2006 10:11 AM
Re: Cloning kernel configurable parameters
1) it should be
mk_kernel -s system
2) and this only creates build/vmunix_test.
You still need the 'kmupdate' command prior to reboot.
bv