Operating System - HP-UX
1833953 Members
1917 Online
110063 Solutions
New Discussion

Re: How to combine multiple changes into (1) reboot ?

 
Jerry_109
Super Advisor

How to combine multiple changes into (1) reboot ?

HP-UX B.11.11 U 9000/800/rp4440 :

Hello All,

I'm trying to find out if it's possible to combine multiple changes that effect the kernel into (1) reboot ? example :

Need to make the following changes

(2) static parms that need to be modified
- st_san_safe
- st_ats_enabled

(1) FCD driver needs to upfraded
- FibrChanl-01

depot has been created for FCD :

# swlist -d @ /swdepot/general/HP/FCD
# Initializing...
# Contacting target "hohp120"...
#
# Target: hohp120:/swdepot/general/HP/FCD
#

#
# Bundle(s):
#

FibrChanl-00 B.11.11.12 PCI/HSC FibreChannel;Supptd HW=A6684A,A6685A,A5158A,A6795A
FibrChanl-01 B.11.11.12 FibreChannel;HW=A6826A,A9782A,A9784A,AB378A/B,AB379A/B,AB465A,AD193A,AD194A

############################

4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: How to combine multiple changes into (1) reboot ?

Shalom,

use swcopy to create a single depot from many depots.

http://hpux-tips.blogspot.com/2005/01/create-hp-ux-depot.html

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jerry_109
Super Advisor

Re: How to combine multiple changes into (1) reboot ?

Thanks Shalom,

That's good info for multiple depots, but what about the :

(2) static parms that need to be modified
- st_san_safe
- st_ats_enabled

How do you get those into a depot ?
Steven E. Protter
Exalted Contributor

Re: How to combine multiple changes into (1) reboot ?

Static kernel parameters in a depot.

Write a kmtune script to change them, move all the files where they need to be, make that into a depot and include it in the depot build directory.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jerry_109
Super Advisor

Re: How to combine multiple changes into (1) reboot ?

Thanks Steven,

So, if I had a script called "tune" which executed the following :
#cat tune

####################
cd /stand
/usr/lbin/sysadm/system_prep -s ./system
kmtune -s st_san_safe=1 -S ./system
kmtune -s st_ats_enabled=0 -S ./system
/usr/sbin/mk_kernel
cd build
/usr/sbin/kmupdate
#####################

How do you copy or make "tune" a depot ?