VA
# mstm <>
# armdsp i < VA >
# cvui < VA >
< /opt/sanmgr/hostagent/sbin ()
/HA_trigger stop start
/dial_trigger stop start
stop starl, VA>
# armmgr s shut / start <VA >
# cd /opt/sanmgr/commandview/server/data
# mv DeviceDBfile DeviceDBfile.old
# cd /opt/sanmgr/hostagent/sbin
# ./HA_trigger stop
# ./dial_trigger stop
# ./HA_trigger start
# ./dial_trigger start
# armdiscover
# armdiscover <>
# amdsp -a fc < FC60 ,disk Optimal, Replaced
>
# amdsp -d fc|grep "Disk State" < FC60 >
# pa pri 1/0/0/2/0.6.0 <>
# pa alt 1/0/0/2/0.6.0 <>
# lvlnboot v <>
# setboot s on/off <>
# setboot b on/off
# mediainit /dev/rdsk/cxtydz <>
#
#
#
#
#
#
#
#
#
#
#
#
#
swapinfo <>
dmesg < MEMORY>
top < CPU>
swlist <>
vgdisplay v < FreePE>
grep i error syslog.log < syslong.log >
egrep i war|err|fail|scsi|lan /dev/adm/syslog/syslog.log
ioscan kfnCtape <>
lanscan <>
ioscan kfnCfc <>
ioscan fnH0/0/1/0 < 0/0/1/0 >
netstat in
ifconfig lan*
# info_col.11 <>
# info_col.1026 < 10.26 >
# dd if=/dev/rdsk/cxtydo of=/dev/rdsk/cxtydo bs=1024k <
copyif of >
# tsm
# sam
# peripheral devices ? Tape drives < Actions Add>
# bdf v <>
# fuser ck /cdrom < cdrom >
# ioscan
# insf e <>
# insf evCdisk <>
# vgscan a </etc/lvmtab
lvmtab, lvmtab>
MODEM
# ctrl_b < GSP MODEM >
# ca < MODEM>
# er < MODEM>
# GSP >XD
>R <Reset GSP>
# ctrl_b
# GSP>lc < LAN console IP>
Ignite (B5725AA):Make_recovery
# vi /opt/ignite/bin/make_medialif 502 shift_Enter
lifinit $ipl_options v72000000 d24
lifinit $ipl_options v102000000 d24
VA
Console VA &Setup 15
# vfpdsp -? <>
# vfpdsp f
# vfpdsp L
# vfprecover < VA >
# vfprecover s
Mirror
pvcreate f B /dev/rdsk/c2t2d0
mkboot /dev/rdsk/c2t2d0
mkboot a hpux lq(;0) /stand/vmunix /dev/rdsk/c1t2d0
mkboot a hpux lq(;0) /stand/vmunix /dev/rdsk/c2t2d0
vgextend /dev/vg00 /dev/dsk/c2t2d0
lvextend m 1 /dev/vg00/lvol1 /dev/dsk/c2t2d0
lvextend m 1 /dev/vg00/lvol2 /dev/dsk/c2t2d0
lvextend m 1 /dev/vg00/lvol3 /dev/dsk/c2t2d0
lvextend m 1 /dev/vg00/lvol4 /dev/dsk/c2t2d0
lvextend m 1 /dev/vg00/lvol5 /dev/dsk/c2t2d0
lvextend m 1 /dev/vg00/lvol6 /dev/dsk/c2t2d0
lvextend m 1 /dev/vg00/lvol7 /dev/dsk/c2t2d0
lvextend m 1 /dev/vg00/lvol8 /dev/dsk/c2t2d0
lvlnboot r /dev/vg00/lvol3
lvlnboot s /dev/vg00/lvol2
lvlnboot d /dev/vg00/lvol2
lvlnboot b /dev/vg00/lvol1
lvlnboot R
setboot a 0/0/2/0.2.0 c2t2d0
boot,root,swap,dump
lvlnboot v
#QZyc2:/>lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t1d0 (0/1/1/0.1.0) -- Boot Disk
/dev/dsk/c3t0d0 (0/1/1/1.0.0) -- Boot Disk
Boot: lvol1
on:
/dev/dsk/c2t1d0
/dev/dsk/c3t0d0
Root: lvol3
on:
/dev/dsk/c2t1d0
/dev/dsk/c3t0d0
Swap: lvol2
on:
/dev/dsk/c2t1d0
/dev/dsk/c3t0d0
Dump: lvol2
on:
/dev/dsk/c2t1d0, 0
#shutdown ry 0
(
10 bo (enter), IPL
yes, hpux is
# vgchange a y /dev/vg00 HP-UX
# lvchange M n c n /dev/vg00/lvol2 < mirror >
# strings /etc/lvmtab < Mirror >
# lvlnboot v < Mirror >
# lvdisplay v /dev/vg00/lvol1
:
# make_tape_recovery Av ()
# shutdown ry 0
Replace the bad disk
Bo?y?ISL?hpux ls
# vgchange a y /dev/vg00
# mv /etc/lvmtab /etc/lvmtab.bak
# pvcreate f /dev/rdsk/cxtydz
# mv /etc/lvmtab.bak /etc/lvmtab
# mkboot /dev/rdsk/cxytdz
# mkboot a hpux lq(;0) /stand/vmunix /dev/rdsk/cxtydz
# vgcfgrestore n /dev/vg00 /dev/rdsk/cxtydz
# vgsync /dev/vg00
# lvlnboot r /dev/vg00/lvol1
# lvlnboot s /dev/vg00/lvol2
# lvlnboot v
# shutdown ry 0
:
# lvreduce k m 0
# lvremove
# vgreduce f vg00
# vgcfgbackup /dev/vgxx < vgxx /etc/lvmconf
>
vg0x
# vgcfgrestore n /dev/vg0x /dev/rdsk/cxtydz
# vgchange a y /dev/vg0x
AUTO RAID ()
#arraydsp i < AutoRAID >
#arraydsp a <>
FC60
# amutil d 2:1 fc <>
# amutil D 4:0 fc
# amutil syswipe fc <>
FC60
# amdsp i
# ammgr D <>
# ammgr c AA < FC60 >
AT&F
AT&D3&R0&S1%C0
ATS0=1S23=58
AT&W0&Y0
Console
Ctrl_scrlk look < Ctrl_Enter >
# vi /etc/hosts host . ()
# vi .profile TERM=hp
# vi .profile export PS1=hostname:$PWD #
()
11.11i copy /usr/newconfig/etc/inittab
/etc/ ,
#cd /usr
#cd /newconfig
#cd /etc
#cp inittab /etc/
make_recovery /opt
# mt t /dev/rmt/0mn fsf 1
# tar xvf /dev/rmt/0m opt
# strings /etc/lvmtab
# vgreduce /dev/vg00 /dev/dsk/cxtydz
# chmod 777 tmp
(vg) < vg>
# pvcreate /dev/rdsk/cxtydz
# vgextend vg0x /dev/dsk/cxtydz
# vgdisplay v vg0x <>
1. # ioscan -fn
I/O
2. # ps -ef
3. # netstat -rn
4. # lanscan
5. # bdf
6. # mount
7. # uname -a
ID OS
8. # hostname
9. # pvdisplay -v /dev/dsk/ct*d*
ccontroller
ttarget target
1. set_parms
# set_parms hostname
# set_parms ip_address
2. lanscan
Hardware Station Crd Hardware Net-Interface
Path Address In# state nameunit state
8/20/5/1 0x0800097843FB 0 up lan0 up
3.
# ifconfig lan0
4.
# ifconfig lan0 up
5.
lanscan (up)
ping (ip )
ping lanscan station
address linkloop station_address
subnetmask
6.
vi /etc/rc.config.d / netconf
:
ROUTE_DESTINATION [0]=default
ROUTE_GATEWAY [0]=20.08.28.98
ROUTE_COUNT [0]=1
:
/sbin/init.d/net
/usr/sbin/route add default 20.08.28.98 1
netstat -rn
set_parms addl_netwrk
HP-UX
HPUX
Physical Volume PV PV
Logical Volume Group VG VG PV
Logical Volume LV
VG LV
File System MOUNT
LV TRUNK
HPUX
1.
# pvcreate -f /dev/rdsk/cCdDtT
2.
# mkdir /dev/vg0X X0f
# mknod /dev/vg0X/group c 64 0x0X0000
# vgcreate vg0X /dev/dsk/cCdDtT
3.
# lvcreate -L size vg0X size
4. LV
# newfs -F file_system_type /dev/vg0X/rlvolY
file_system_type hfs vxfs
5. Mount
# mkdir /directory
# mount /dev/vg0X/lvolY /directory
6.
1) vg01 200M
datamount /sample
A
# lvcreate -L 200 -n data /dev/vg01
B data
# newfs -F hfs /dev/vg01/rdata
vxfs
# newfs -F vxfs /dev/vg01/rdata
C/sample data mount /sample.
# mkdir sample
# mount /dev/vg01/data /sample
D bdf /dev/vg01/data mount /sample
2) raw data volume
A
# lvcreate -L 200 -n data /dev/vg01
B/sample data mount /sample.
# mkdir sample
# shutdown -y 0
mount
# mount -a
bdf mount mount
# umount /sample
2) /dev/vg01/data
# lvremove /dev/vg01/data
8.
1)
2)
# shutdown -y 0
3) mount
# mount -a
4) bdf mount mount
#umount umount /usr 500M ,
# umount /usr
5)
# lvextend -L 500 /dev/vg00/lvol4
/usr /dev/vg00/lvol4
6)
# extendfs /dev/vg00/lvol4
vxfs
# extendfs -F vxfs /dev/vg00/lvol4
7)
# mount /dev/vg00/lvol4 /usr
mount /usr
/usr
8)
# init 3
9. unix
10. UNIX
11. UNIX
HFSHigh-performance File System
VXFS: HP-UX Journaled File Ssytem
( VxFS is an extent-based journaling file system that offers
fast file
system recovery and online features such as online backup,
online
resizing, and online reorganization. It supports all existing
file
system interfaces except HP Access Control Lists (ACL) and B1
security
features. VxFS cannot be a root or bootable file system in
10.01. )
CDFS: CD-ROM File System
NFS: Network File System
1) HPUX
/
/usr , /sbin
/opt Application
/etc mount
/var mount
/stand Kernel
/tmp
/dev
HP-UX
1. tail head
tail head
# tail filename
# tail -f filename tail
#head filename
2. date cal
cal
# cal 2000
# cal 1 2000
3. find
find
# find / -print | wc -l
# find / -user $LOGNAME -print
# find / -size 100 -print 100 blocks
# find / -size -100 -print 100 blocks
4. stty
# stty -a
# stty -ixon ixon off
#stty ixon ixon on
# stty sane
5. tset
tset -s -Q -m :?hp
6. cron
cron(chronography)
7. /etc/hosts
8. /etc/passwd
ID IDshell
9. /etc/group
ID
10. /etc/profile
home .profile
/etc/profile .profile
11. /etc/inittab
/etc/init deamon /etc/init
init
/etc/inittab(inittable)
init
12. /etc/fstab
mount
13. /etc/lvmtab
# strings /etc/lvmtab VG
14. /etc/rc.config.d/netconf
IP
15. /stand/system
1 VA /cdrom/hpux/ <
>
2 MC B3935DA < 3 >
3 Ignite B5725AA < 2 >
4. Megpatch <>
5. MirrorDisk B2491BA