Professional Documents
Culture Documents
Boot process:
1) PDC (processor dependent code) gets executed
a) Checks CPU
b) Checks stable storage for boot path
c) Loads ISL utilities from leaf area of boot disk
d) Here you can halt boot using ESC key and can run PO, SEA commands.
2) ISL (Initial system loader) gets loaded
a) Read AUTO file default kernel
b) Load and runs HPUX from LIF area
c) Here you can halt boot process and boot system into single user mode. U can provide diff
options to SSL i.e. kernal vmunix. Like hpux –is, hpux –lq, hpux –lm
3) HPUX loads (Secondary system loader)
a) Uses options and path names from ISL to load kernel
b) And by default loads vmunix
4) After kernel vmunix gets loaded –
a) Swapper deamon starts with PID 0
b) Kernel runs /sbin/pre_init_rc
c) Kernel calls /sbin/init
d) /sbin/init reads /etc/inittab and calls –
i) /sbin/ioinit – to scan hardware and build kernel io tree
ii) /sbin/bcheckrc – to check FS listed in /etc/fstab
iii) /sbin/rc – to start additional services like lp, cron, cde
iv) /usr/sbin/getty – to start n show login prompt to user.
UID range:
1 to 60,000, 0 is reserved for root. And 1 to 100 is for system accounts.
Above 60,000 also u can create user but he wont be able to access any of system resources.
Hardware addressing:
c t d – controller target device numbers
Major no – Kernal device class driver
Minor no – Physical location, access options etc.
Max FS size:
Range default
LVs per VG 1 to 255 255
PVs per VG 1 to 255 16
PEs per VG 1 to 66,535 1016
As max PE size is 64MB and 66,535 Pex max per VG, one can create max of 64x66353=4TB of file system.
Groups:
Groups are primary and secondary. At a time single user can be member of one primary and 16
secondary groups i.e. total of 17 groups only
80h error:
test3:root-/>scsimgr -v -f replace_wwid -C lunpath -I 21
Binding of LUN path 4/0/5/1/0/4/0.0x5006048452aa4347.0x4034000000000000 with new LUN
validated successfully
Adding SWAP:
First check how much space left in vg00 which can be used as secondary swap
check free PE * PE size
swapinfo -tam
lvcreate -L sizeMB -C y -r n /dev/vg00
vi /etc/fstab
/dev/vg00/lvolxx ... swap pri=1 0 1
swapon -p 1 /dev/vgoo/lvolxx
add -f if above command fails.
swapinfo -tam
LAN commands:
# lanscan -q
It should show :
2
3
900
901 01
902
903
904
Please, note the PPA sequence under Team - 900 / 901.
Open command prompt and ping to the IP continuously.
# lanadmin -r 0
Check whether more than 3-4 RTO's you are receiving.
Booting nPAR:
how to boot in NPAR in vpar mode.
halt at EFI then goto EFI prompt and
hpux /stand/vpmon
Boot path of vpmon:
vparstatus -m
0.0.4.1.0.1.0
testsvr:root-/>vparstatus -m
Console path: No path as console is virtual
Monitor boot disk path: 0.0.4.1.0.1.0
Monitor boot filename: /stand/vpmon
Database filename: /stand/vpdb
Memory ranges used: 0x0/349224960 monitor
0x14d0c000/237568 firmware
0x14d46000/581632 monitor
0x14dd4000/688128 firmware
0x14e7c000/1228800 monitor
0x14fa8000/50692096 firmware
0x18000000/134213632 monitor
0x3ffec000/81920 firmware
0x707fc000000/67108864 firmware
0x787fc000000/67108864 firmware
0x807fc000000/67108864 firmware
0x887fc000000/67108864 firmware
Change MP IP:
connect to console
cm -- to goto command menu
cl to view
ce to edit
xd - reset
Cluster commands:
#cmviewcl -v
#cmhaltpkg -v misbicl
#cmhaltnode -v -n misdbn1 -n misdbn2
#cmcheckconf -v -C /etc/cmcluster/misbicl.cfg
#cmapplyconf -v -C /etc/cmcluster/misbicl.cfg
#cmcheckconf -C /etc/cmcluster/misbicl.cfg -P /etc/cmcluster/pkg/misbi/misdbpkg.conf
#cmapplyconf -C /etc/cmcluster/misbicl.cfg -P /etc/cmcluster/pkg/misbi/misdbpkg.conf
#cmruncl -v
#cmrunpkg -n misdbn1 -v misdb
#cmviewcl -v
#cmhaltcl -- halt whole cluster
To enable AUTO_RUN for pakage
cmmodpkg -e pkg_name
cmmodpkg -e -n pkg_name <<to disable
TOC of vpar:
When CLI appears to hung and server wond accept ssh connection.
sh: The fork function failed. Too many processes already exist.
Reset the vpar with below TOC comamnd. It will glow attnetion LED on SD and send aletrts to HP as well
vparreset -p <vpar_name> -t
Start OVPA
/opt/perf/bin/midaemon -bufsets 16 -skipbuf 8 -smdvss 512M
/opt/perf/bin/ovpa start all
/opt/OV/bin/ovc -start
/opt/perf/bin/perfstat -p
In order to permanently use the startup parameters for midaemon, it's necessary to edit the
"/etc/rc.config.d/ovpa " file, please add the following two lines, right before the line "MWA_START=1 ":
Also I noticed that scopeux it's complaining about corrupted logfiles, under this scenario it would be
better to start with a new set of log-files. After modifying the "/etc/rc.config.d/ovpa " file, please do the
following:
Stop OVPA
/opt/perf/bin/ovpa stop all
/opt/perf/bin/midaemon -T
/opt/perf/bin/ttd -kill
rm /var/opt/perf/datafiles/RUN
Start OVPA
/opt/perf/bin/ovpa start all
And then you can start glance. We can check if midaemon is running with the startup parameter by
using the command "ps -ef | grep midaemon", you should see an output similar to the following:
hpvm tools:
swinstall -s /opt/hpvm/guest-images/hpux/11iv3/hpvm_guest_depot.11iv3.sd
# ll
total 18640
-rw-r--r-- 1 bin bin 9543680 Jan 11 2011 hpvm_guest_depot.11iv3.sd
swisntall this depot
IT REQUIRES REBOOT !!
hpvm status:
root-/>hpvmstatus -s
[HPVM Server System Resources]
hyperthreading:
#setboot -m on
and then reboot. This enables HT at HW level
#kctune lcpu_attr=1
This enabled HT in OS.
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.client start
Export FS from ignite server
/ignite_image/ and /var/opt/ignite/recovery/archives
mount test2:/var/opt/ignite/recovery/archives/qaapp /Test -- to test nfs
host=`hostname`
/opt/ignite/bin/make_net_recovery -s ignitesvr -a ignitesvr:/primary_copy/testsrv -x inc_entire=vg00 >>
/tmp/ignite_status
subject=`tail -n 10 /tmp/ignite_status |grep -i make_net_recovery`
/usr/bin/mailx -s "$host $subject" abc@xyz.com < /tmp/ignite_status
File recovery from ignite:
To recover a single file from your make_net_recovery archive do the following on the system where the
file is to be recovered (I'll restore stand/bootconf in this example)
mount igniteserver:/var/opt/ignite/recovery/archives/$(uname -n) /mnt
cd /
gzip -dc /mnt/2007-05-23,05:00 | tar xvf - stand/bootconf
--------------------------+
Cabinet | 0 | 1 |
--------+--------+--------+
Slot |01234567|01234567|
--------+--------+--------+
Cell |XXXXXXXX|XXXX....|
IO Cab |0.0.0.0.|1.1.....|
IO Bay |1.0.1.0.|1.0.....|
IO Chas |3.1.1.3.|3.1.....|
[SD] MP:CM> cp
-------------------------------+
Cabinet | 0 | 1 |
-------------+--------+--------+
Slot |01234567|01234567|
-------------+--------+--------+
Partition 0 |XXXX....|........|
Partition 1 |........|XXXX....|
Partition 2 |....XXXX|........|
#hpvmdevinfo -P <vmname>
xd -An -j8200 -N16 -tx /dev/disk/disk74
Get the PVID from host as well and match them with PVID of guest disks.. If it matches then tis same
DISK
Mirroring in v3:
echo "3
EFI 400MB
HPUX 100%
HPSP 500MB">/tmp/partitionfile
echo yes|idisk -wf /tmp/partitionfile /dev/rdisk/disk9
insf -e -C disk
mkboot -e -l /dev/rdisk/disk9
efi_ls -d /dev/rdisk/disk9_p1
lifls -l /dev/rdisk/disk9_p2
mkboot -a "boot vmunix" /dev/rdisk/disk9
efi_cp -d /dev/rdisk/disk9_p1 -u /EFI/HPUX/AUTO /tmp/x; cat /tmp/x
pvcreate -B -f /dev/rdisk/disk9_p2
vgextend vg00 /dev/disk/disk9_p2
for i in 1 2 3 4 5 6 7 8 9 10
do
lvextend -m 1 /dev/vg00/lvol$i /dev/disk/disk9_p2
done
lvlnboot -r /dev/vg00/lvol3
lvlnboot -b /dev/vg00/lvol1
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
lvlnboot -v
setboot -a 0/2/1/0.0.0.0.0
Mount ISO:
nohup pfs_mountd &
nohup pfsd &
pfs_mount -o xlat=UNIX pathToIso mountPoint
mkdir /isoimg
lvcreate -n ISOLV -L 3096 /dev/vg00
dd if=isoimage of=/dev/vg00/rISOLV bs=8192
mount /dev/vg00/ISOLV /isoimg
May 3 16:46:05 destiantion vmunix: Evpd inquiry page 83h/80h failed or the current page 83h/80h
data do not match the previous known page 83h/80h data on LUN id 0x0 probed beneath the target
path (class = tgtpath, instance = 23) The lun path is (class = lunpath, instance 69).Run 'scsimgr
replace_wwid' command to validate the change
cd /var/opt/perf/datafiles
nowis=`date +%d%b%y-%H:%M`
mkdir /var/opt/perf/datafiles.old.`echo $nowis`
cp log* /var/opt/perf/datafiles.old.`echo $nowis`
Sharing in nfs:
vi /etc/dfs/dfstab
share -F nfs -o anon=2 /dvd
vi /etc/rc.config.d/nfsconf
NFS_CLIENT=0
NFS_SERVER=1
AUTOFS=0
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.server stop
/sbin/init.d/nfs.core stop
/sbin/init.d/nfs.core start
/sbin/init.d/nfs.server start
Booting npar:
goto cm command menu
pe power cycle
p select partition
4 select partition number
select on
check vfp for booting status..
then goto console of that npar
npar info:
vparstatus -N 1:1 -A
to list all available resources on npar
PARISC install:
Installing npar
insert dvd or ignite tape, goto console
co:
Menu: Enter command or menu > SEA
Searching for potential boot device(s) on the core cell
This may take several minutes.
To discontinue search, press any key (termination may not be immediate).
IODC
Path# Device Path (dec) Device Type Rev
----- ----------------- ----------- ----
0/0/6/1/0/4/0.0 Fibre Channel Protocol 14
P0 0/0/9/1/0.5 Sequential access media 4
0/0/10/1/0.0 Fibre Channel Protocol 10
P1 0/0/11/1/0.0 Random access media 4
0/0/12/1/0.0 Fibre Channel Protocol 10
0/0/14/1/0/4/0.0 Fibre Channel Protocol 14
NTP config:
echo "x.x.x.x ntpserver" >> /etc/hosts
vi /etc/rc.config.d/netdaemons
export NTPDATE_SERVER="ntpserver"
export XNTPD=1
export XNTPD_ARGS=
Printer commands:
Check the status of printer:
#lpstat myprinter
myprinter-3982 appldb priority 0 Apr 14 12:16
OFGBDa09990.t 578 bytes
Sharing dvd:
on host
#swreg -l depot /mydvd
on guest
#swinstall -s <host IP>:/mydvd
SMTP config:
config filez in /etc/mail/sendmail.cf
echo test | sendmail -v abc@xyz.com
DMxyz.com
Dj<hostname>.com
Dsmailserver_name.xyz.com
#C{E}root <<hash this entry
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
updateux utility:
root-/>swlist -s /cdrom | grep -i oe
FIFOENH B.11.31.02 Fifo Performance Enhancement
HPUX11i-BOE B.11.31.1203 HP-UX Base Operating Environment
HPUX11i-VSE-OE B.11.31.1203 HP-UX Virtual Server Operating Environment
UNIX95:
UNIX95=1 ps -ef -o vsz= -o pid= -o comm= | sort -rnk1 | awk '{ print $1/1024" MB "$2" "$3; }' | grep -i
scx
VM hang issues:
Remove dynamic memory.
if it hungs.. due to memory crunch
#hpvmmodify -P name -x ram_dyn_type=none
Check below parameter (mostly dynamic memory module will be disappear from hpvmstatus)
[Dynamic Memory Information]
Type : driver
Minimum memory : 512 MB
Target memory : 2106 MB
Memory entitlement : Not specified
Maximum memory : 2048 MB <--------------
Current memory : 2106 MB
Comfortable minimum : 8186 MB
Total memory : 8186 MB
Free memory : 0 MB
Available memory : 9 MB
VxFS upgrade:
root-/>vxupgrade -n 6 /portalapp
vxfs vxupgrade: V-3-22591: /dev/vg01/rlvol1: current version is 4; can only upgrade to version 5.
root-/>vxupgrade -n 5 /portalapp
oot-/>vxupgrade -n 6 /portalapp
root-/>fstyp -v /dev/vg01/rlvol1
vxfs
version: 6
f_bsize: 8192
f_frsize: 8192
f_blocks: 17891328
f_bfree: 3018517
f_bavail: 2994935