Dec
09
How to Check Solaris Kernel bit (32 bit/64 bit)
To check if Solaris kernel is running in 32 bit mode or 64 bit from command line run the following:
# /usr/bin/isainfo –kv
64-bit sparcv9 kernel modules
The output "64 bit sparcv9" indicates that Solaris kernel is running in 64 bit mode. Here is the output of Solaris kernel running in 32 bit:
# /usr/bin/isainfo –kv
32-bit sparcv9 kernel modules
How to check Solaris kernel on x86 (Intel) platform :
# uname –m
i86pc
# /usr/bin/isainfo -kv
32-bit i386 kernel modules
In the example above Solaris Kernel is running in 32 bit on intel platform, printed as "32-bit" in the output.
How to check if Solaris kernel is configured to boot in 32 bit or 64:
The system is configured to boot the 64-bit kernel if the output from the eeprom command is either:
# /usr/sbin/eeprom | grep boot-file
boot-file: data not available
or
boot-file=kernel/sparcv9/unix
else if Solaris system is configured to boot using 32-bit kernel, the output from the eeprom command comes back as:
kernel/unix
Tags: 32bit, 64 bit, check, kernel, solaris
Sep
22
Checking the UNIX Kernel
You can check the UNIX kernel with the following UNIX commands:
sysconfig -q ipc
sysconfig -q proc
sysconfig -q vm
Compare the output of these commands with the values in the list below.
Corrections of the kernel parameters are published in the installation notes.
These notes contain the most recent information regarding the installation.
We recommend that all Compaq Tru64 UNIX kernel modifications be performed by your system administrator.
Changing the UNIX Kernel
To change the system configuration defined in /etc/sysconfigtab:
1. Create a file named sapr3.stanza in any directory <path> (for example,
/etc/sapr3.stanza). It must contain the following lines for the subsystem entries ipc
and proc:
ipc:
sem-mni = 512
sem-msl = 512
sem-opm = 512
sem-ume = 512
shm-max = 2139095040
shm-mni = 512
shm-seg = 512
proc:
maxusers = 512
max-per-proc-address-space = 8589934592
max-per-proc-data-size = 8589934592
max-per-proc-stack-size = 268435456
max-proc-per-user = 512
per-proc-address-space = 8589934592
per-proc-data-size = 8589934592
per-proc-stack-size = 268435456
2. Insert the following lines for the subsystem entry vm into the file sapr3.stanza.
vm:
ubc-minpercent = 3
vm-ubcseqstartpercent = 3
ubc-borrowpercent = 3
ubc-maxpercent = 7
vm-maxvas = 17179869184
vm-vpagemax = 1048576
3. Use the following commands to newly add the three subsystem entries to
/etc/sysconfigtab:
sysconfigdb -a -f <path>/sapr3.stanza ipc
sysconfigdb -a -f <path>/sapr3.stanza proc
sysconfigdb -a -f <path>/sapr3.stanza vm
or if the subsystem entries are already present in /etc/sysconfigtab use:
sysconfigdb -u -f <path>/sapr3.stanza
to update the complete subsystem entries with your new settings in sapr3.stanza.
4. Reboot the system after changing the kernel parameters. Check the kernel parameter
settings after rebooting the system.
Tags: checking, compaq, kernel, modifying, tru64, unix
Sep
17
Manual Configuration of the Kernel
1. Change the kernel parameters according to the table Recommended Kernel Parameters
for HP-UX in the file
/stand/system
2. Generate a new kernel after making the changes using the following command:
mk_kernel -o /stand/vmunix -s /stand/system
3. Reboot your system.
Configuration of the Kernel Using SAM
/usr/sbin/sam
Kernel Configuration à Configurable Parameters
- Choose the parameter you want to modify and select:
Actions à Modify Configurable Parameter
- Modify all kernel parameters according to the table Recommended Kernel Parameters for HP-UX.
- Select Process New Kernel from the Actions menu.
Tags: change, checking, hp-ux, kernel, modifying, unix
Jul
10
Action |
Command Line |
Create a disk group |
vxdg init diskgroup diskname=device |
Add a disk to disk group |
vxdg -g diskgroup adddisk
diskname=device |
Remove a disk from disk group |
vxdg –g diskgroup rmdisk diskname |
Deport, import or destroy a disk group |
vxdg {deport|import|destroy} diskgroup |
List disk groups |
vxdg list [diskgroup] |
Show free/spare space pool |
vxdg –g diskgroup {free|spare} |
Upgrade disk group version |
vxdg [-T version] upgrade diskgroup |
Rewrite disk headers, configuration copies, and kernel log copies in a disk group. |
vxdg flush diskgroup targetdg object...
or
vxdctl enable (for all disk groups) |
Move an object between disk groups |
vxdg move sourcedg targetdg object... |
Split objects between disk groups |
vxdg split sourcedg targetdg object...
|
Join disk groups
|
vxdg join sourcedg targetdg |
List objects affected by a disk group move operation |
vxdg listmove sourcedg targetdg object...
|
Display bootdg
Display defaultdg
Set defaultdg |
vxdg bootdg
vxdg defaultdg
vxdctl defaultdg diskgroup |
Manually back up the disk group configuration
Perform precommit analysis of a restore
Restore the disk group configuration
|
vxconfigbackup diskgroup
vxconfigrestore -p diskgroup
vxconfigrestore -c [-l directory] diskgroup
|
Tags: add, backup, configration, configuration, copies, create, deport, destroy, disk, disk group, display, free, group, headers, import, join, kernel, list, log copies.move, objects, perform, pool, precommit, remove, restore, rewrite, show, space, spare, split, upgrade, veritas, version
Recent comments