Operating System - HP-UX
1838240 Members
3369 Online
110125 Solutions
New Discussion

Setting maxdsize with ignite-ux

 
SOLVED
Go to solution
Jackie Wright
Occasional Contributor

Setting maxdsize with ignite-ux

I'd like to automatically set the maxdsize to 1.5 times the physical memory of the host machine. Is there a way to do that via ignite-ux scripts? For instance, is there a parameter or config file I can use with bootsys to set the maxdisize on host machine when I ignite it?
The key to understanding is listening with the eyes and the heart.
2 REPLIES 2
harry d brown jr
Honored Contributor

Re: Setting maxdsize with ignite-ux

Yes,

read this:

http://www.software.hp.com/products/IUX/docs/sysadm.html#Chapter-4

live free or die

harry
Live Free or Die
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Setting maxdsize with ignite-ux

If you just want to hardcode the maxdsiz value, it's easy. Create your own config file (it's better to create under the same directory where your depot config files are there) say kernel.cfg like this

sw_source "Kernel Changes" {
source_format = cmd
}
sw_sel "Others" {
sw_category = "Kernels"
sw_source = "Kernel Changes"
mod_kernel += "maxdsiz xxxxxxxx"
mod_kernel += "npty 1024"
}

Then add this entry to your /var/opt/ignite/INDEX file to the section
where you have your Golden Image/Depot information is kept.

For ex.,


cfg "HP-UX B.11.00 Default N-class" {
description "N-Class OS"
/opt/ignite/data/Rel_B.11.00/config"
"/opt/ignite/data/Rel_B.11.00/hw_patches_cfg" "/var/opt/ignite/data/Rel_B.11.00/Nclass.cfg"
"/var/opt/ignite/data/Rel_B.11.00/kernel.cfg"
"/var/opt/ignite/config.local"
}

To achive what you wanted, you probably have to write a postinstall script to check the memory of the system, then calculate the maxdsiz and then modify system file with kmtune -s, then build the kernel. You can reference this script again from the INDEX file.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try