Operating System - HP-UX
1847479 Members
3114 Online
110265 Solutions
New Discussion

Re: regarding system file

 
Tvs
Regular Advisor

regarding system file

iam new to hp-ux . pls help me to find what is the function of /stand/system file. if it got deleted whether the system will boot..? is it using for setting kernel parameters ( like /etc/system in solaris) .

on the time of booting , when the system checking the /stand/system file ..? and if it is required to boot the system properly, is it possible to point to a null file ( solaris it is possible to boot the system with a null file instead of /etc/system file)
4 REPLIES 4
Borislav Perkov
Respected Contributor

Re: regarding system file

Hi,
/stand/system is default HP-UX system description file and it is not the same as /etc/sytem in Solaris, which is system specification file. For that reason you can't make kernel reconfiguration like in Solaris.
/stand/system file holds the system-specific kernel tunable parameters. Under HP-UX 11i, the changes of kernel parameters are stored in "Kernel Registry Service". The KRS maintains data files under /stand/krs, so if the kernel is rebuild from the system file, any changes stored in KRS will be lost. KRS files are binary files and they can't be printed directly ore dumped using string.
Regards,
Borislav
melvyn burnard
Honored Contributor

Re: regarding system file

The /stand/system file is a text file that allows you to configure the kernel by adding/removing drivers, modifying parameters for tuning etc.
If you lose this file, the system still boots and works ok. However, when you come to look at modifying the kernel you need this.
If it has been deleted/corrupted, you can either recover from a backup, or recreate it using /usr/lbin/sysadm/system_prep.

For example

/usr/lbin/sysadm/system_prep -v -k /stand/vmunix -s /stand/mysystemfile

This reads in from the kernel file /stand/vmunix and creates a text system file named /stand/mysystemfile
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
morganelan
Trusted Contributor

Re: regarding system file

I think from mk_kernel command (load a kernel configuration from a system file), this command is used as follow:
#/usr/sbin/mk_kernel [-o path_name] [-s system_file] [-v]

-o path_name Specify the target kernel path.
-s system_file Specify the HP-UX system description file. If this option is not specified, the system file /stand/system is used.
-v Verbose mode. (Has no effect; retained for backward compatibility.)

So i think we can use our own system description file other that /stand/system if we have the other configuration file.
Kamal Mirdad
Tvs
Regular Advisor

Re: regarding system file

thanks for your valuable comments