Re: Possible to transfer tuneable parameters? (62 Views)
Reply
Esteemed Contributor
Coolmar
Posts: 1,074
Registered: ‎12-21-2004
Message 1 of 9 (62 Views)
Accepted Solution

Possible to transfer tuneable parameters?

Hi,

I am building a new system which is very similar to another system. Anyway, there are bunch of tuneable kernel params that have to be changed. I need the same values that we have on another HP-UX 11.23 system. Is it possible to export them from one system and import them to the other somehow?

Thanks,
S.
Please use plain text.
Honored Contributor
Don Morris_1
Posts: 797
Registered: ‎05-08-2001
Message 2 of 9 (62 Views)

Re: Possible to transfer tuneable parameters?

man kconfig

[This is in the 1M section].

Specifically, it sounds to me like you need to do a "kconfig -e my_tunable_config" on the old system, copy the resulting my_tunable_config file and then do a "kconfig -i my_tunable_config" on the new system.

I'd caution to be careful of drivers/kernel modules installed on the old system which aren't on the new one [kconfig is more than just tunables, though I would expect careful pruning of the resulting file would suffice to get it down to tunables only]... you should likely use the "-V" (version checking flag) if you want to use the file as-is to make sure there aren't conflicts.
Please use plain text.
Honored Contributor
Court Campbell
Posts: 1,605
Registered: ‎08-12-2004
Message 3 of 9 (62 Views)

Re: Possible to transfer tuneable parameters?

On the source node run the following:

#cd /stand/build
#/usr/lbin/sysadm/system_prep -s system

this will build a config file from the running kernel. Copy that file to the /stand/build dir on the other node. On the other node do the following:

#cd /stand/build
#mk_kernel -s ./system
#kmupdate
#shutdown -ry 0

that should be it.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Please use plain text.
Honored Contributor
Court Campbell
Posts: 1,605
Registered: ‎08-12-2004
Message 4 of 9 (62 Views)

Re: Possible to transfer tuneable parameters?

Actually that may not work. I keep forgetting that 11.23 is different. I am still stuck on 11.11. Placing gun next to head as I type.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Please use plain text.
Esteemed Contributor
Coolmar
Posts: 1,074
Registered: ‎12-21-2004
Message 5 of 9 (62 Views)

Re: Possible to transfer tuneable parameters?

Hey Don...that is exactly what I was looking for but I was looking at kmtune and didn't see anything. My question is that I want to trim down the export file to be imported on the new system to just the tuneable params, so when I import it...will it leave everything alone that is already there (modules, etc) and only modify those tuneable parameters that are in the import file?

Thanks again.
Please use plain text.
Esteemed Contributor
Coolmar
Posts: 1,074
Registered: ‎12-21-2004
Message 6 of 9 (62 Views)

Re: Possible to transfer tuneable parameters?

Also, after I import the new params (kconfig -i /tmp/file) do I have to rebuild the kernel or just reboot?
Please use plain text.
Esteemed Contributor
Coolmar
Posts: 1,074
Registered: ‎12-21-2004
Message 7 of 9 (62 Views)

Re: Possible to transfer tuneable parameters?

I tried to import and got the following (both systems are HP-UX 11.23):

ld: Unsatisfied protected symbol "pstat_socket" in file "/usr/conf/lib/libpstat.a[pstat.o]"
ld: Unsatisfied protected symbol "clonedev" in file "/usr/conf/lib/libpstat.a[global_pstat.o]"
ld: Unsatisfied protected symbol "get_pst_stream_size" in file "/usr/conf/lib/libpstat.a[global_pstat.o]"
ld: Unsatisfied protected symbol "get_pst_socket_size" in file "/usr/conf/lib/libpstat.a[global_pstat.o]"
ld: Unsatisfied protected symbol "sth_get_sth" in file "/usr/conf/lib/libpstat.a[filedetails_pstat.o]"
ld: Unsatisfied protected symbol "idle_biod" in file "/usr/conf/lib/libpstat.a[tunables_pstat.o]"
ld: Unsatisfied protected symbol "async_daemon_count" in file "/usr/conf/lib/libpstat.a[tunables_pstat.o]"
ld: Unsatisfied protected symbol "fdetach" in file "/usr/conf/lib/libscall.a[init_sent.o]"
ld: Unsatisfied protected symbol "lv_real_mode_config" in file "/usr/conf/lib/libsvc-pdk.a[rm_common.o]"
54 errors.
ERROR: The kernel build did not succeed: ld: exit 1
The arguments that were supplied to the linker are the linker
are stored in file /stand/failure_ldargs.
Please use plain text.
Frequent Advisor
PC_7
Posts: 31
Registered: ‎12-05-1999
Message 8 of 9 (62 Views)

Re: Possible to transfer tuneable parameters?

You may want to ensure that patch PHCO_34195 is installed.
Please use plain text.
Esteemed Contributor
Coolmar
Posts: 1,074
Registered: ‎12-21-2004
Message 9 of 9 (62 Views)

Re: Possible to transfer tuneable parameters?

I will start a new thread with my error.
Thanks all,
S
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation