** Credit Web
1./var/opt/resmon/log/event.log
2./var/adm/syslog/syslog.log
3./var/adm/syslog/OLDsyslog.log
4./var/tombstones/ts99
5.echo "map selall info;wait infolog" | cstm > /tmp/cstm.txt ----->send/tmp/cstm.txt
6./etc/shutdownlog
7.access MP with control B: MP>SL –> e (11iV1)
| Power by < Khronos consulting co., ltd. > |
Showing posts with label Unix OS HP-UX Management. Show all posts
Showing posts with label Unix OS HP-UX Management. Show all posts
HP-UX UnMirror Case Physical Disk Device missing LVM Mirror
lvreduce –k –m 0 /dev/vg00/lvol1
lvreduce –k –m 0 /dev/vg00/lvol2
:
- Check all LV not show Stale
lvdisplay –v /dev/vg00/lvol1
- Remove physical disk from VG (No specify Physical disk)
vgreduce –f vg00
- Save and Remove /etc/lvmtab
mv /etc/lvmtab /etc/lvmtab.bak
- Scan VG for create new /etc/lvmtab
vgscan –v
- Backup VG config
vgcfgbackup –f /etc/lvmconf/vg00.conf vg00
- Check Boot Path
lvlnboot –v
incase wrong use lvlnboot command
lvlnboot -r /dev/vg00/lvol3 /dev/vg00
lvlnboot -b /dev/vg00/lvol1 /dev/vg00
lvlnboot -s /dev/vg00/lvol2 /dev/vg00
lvlnboot -d /dev/vg00/lvol2 /dev/vg00
- Check VG
vgdisplay –v vg00
- Test Reboot for normal operation
shutdown –ry 0
HP-UX share NFS (exportfs/showmount/share dfs)
** Myself
exportfs
exportfs –i /dir
Mountnfs
showmount –e <hostname>
mount –F nfs <hostname>:/dir /dir
For hp-ux for user access eq root
/etc/dfs/dfstab
/usr/sbin/share -F nfs -o anon=0,rw -d "" /backup –
/usr/sbin/share -F nfs -o anon=0,rw -d "" /usr/sap/trans –
if not reboot
shareall
verify
share
for client (Example /usr/sap/trans)
add /etc/fstab
<server name>:/usr/sap/trans /usr/sap/trans nfs defaults 0 0
exportfs
exportfs –i /dir
Mountnfs
showmount –e <hostname>
mount –F nfs <hostname>:/dir /dir
For hp-ux for user access eq root
/etc/dfs/dfstab
/usr/sbin/share -F nfs -o anon=0,rw -d "" /backup –
/usr/sbin/share -F nfs -o anon=0,rw -d "" /usr/sap/trans –
shareall
verify
share
for client (Example /usr/sap/trans)
add /etc/fstab
<server name>:/usr/sap/trans /usr/sap/trans nfs defaults 0 0
HP-UX 11iv1 How to boot single user mode
** Myself
Main Menu: Enter command or menu > bo pri
Interact with IPL (Y, N, or Cancel)?> y
Booting...
Boot IO Dependent Code (IODC) revision 1
HARD Booted.
ISL Revision A.00.43 Apr 12, 2000
ISL> hpux -is
Boot
: disk(0/0/2/0.2.0.0.0.0.0;0)/stand/vmunix
10948608 + 2043904 + 11662640 start 0x1ff3e8
Main Menu: Enter command or menu > bo pri
Interact with IPL (Y, N, or Cancel)?> y
Booting...
Boot IO Dependent Code (IODC) revision 1
HARD Booted.
ISL Revision A.00.43 Apr 12, 2000
ISL> hpux -is
Boot
: disk(0/0/2/0.2.0.0.0.0.0;0)/stand/vmunix
10948608 + 2043904 + 11662640 start 0x1ff3e8
HP-UX Check Physical Disk,Tape,Lun mapping for HP-UX 11.31
** Myself
--Physical Disk , tape ,lan
# Check disk mapping for HP-UX 11.31
ioscan -m dsf
Persistent DSF Legacy DSF(s)
========================================
/dev/rchgr/autoch1 /dev/rac/c6t0d1
/dev/rdisk/disk3 /dev/rdsk/c0t0d0
/dev/rdisk/disk3_p1 /dev/rdsk/c0t0d0s1
/dev/rdisk/disk3_p2 /dev/rdsk/c0t0d0s2
/dev/rdisk/disk3_p3 /dev/rdsk/c0t0d0s3
# Check disk mapping for HP-UX 11.31
ioscan -m lun
Class I Lun H/W Path Driver S/W State H/W Type Health Description
=======================================================================
ctl 4 64000/0xfa00/0x0 esctl CLAIMED DEVICE online HP
HSV300
0/3/0/0/0/0.0x50014380025d511c.0x0
tape 1 64000/0xfa00/0x1 estape CLAIMED DEVICE online HP
Ultrium 4-SCSI
0/3/0/0/0/0.0x500110a00094e38a.0x0
/dev/rtape/tape1_BEST /dev/rtape/tape1_BESTn
/dev/rtape/tape1_BESTb /dev/rtape/tape1_BESTnb
autoch 1 64000/0xfa00/0x2 eschgr CLAIMED DEVICE online HP
MSL G3 Series
0/3/0/0/0/0.0x500110a00094e38a.0x1000000000000
/dev/rchgr/autoch1
disk 3 64000/0xfa00/0x3 esdisk CLAIMED DEVICE online HP
IR Volume
0/2/1/0.0xa9fe9dda9bf7d63.0x0
/dev/disk/disk3 /dev/rdisk/disk3
/dev/disk/disk3_p1 /dev/rdisk/disk3_p1
--Scan hard disk
Use the ioscan command to check the S/W state of the disk. Only disks in state CLAIMED are currently accessible by the system. Disks in other states such as NO_HW or disks that are completely missing from the ioscan output are suspicious. If the disk is marked as CLAIMED, then its controller is responding. For example: # ioscan –fnCdisk
Class I H/W Path Driver S/W State H/W Type Description
======
disk 0 8/4.5.0 sdisk CLAIMED DEVICE SEAGATE ST34572WC
disk 1 8/4.8.0 sdisk UNCLAIMED UNKNOWN SEAGATE ST34572WC
disk 2 8/16/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-5401TA
In this example the disk at hardware path 8/4.8.0 is not accessible. If the disk has multiple hardware paths, be sure to check all the paths.
--Check Disk bad sector
more /var/adm/syslog/syslog.log
And most important: make sure the online diagnostics are loaded and running. They will monitor disk error messages and can be configured to notify you when there are error messages. The file: /var/adm/syslog/syslog.log will also have disk errors logged.
--Check scan tape
ioscan - fnC tape
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
tape 2 0/3/0/0/0/0.1.15.255.0.0.0 stape CLAIMED DEVICE HP
Ultrium 4-SCSI
/dev/rmt/2m /dev/rmt/c6t0d0BEST
/dev/rmt/2mb /dev/rmt/c6t0d0BESTb
/dev/rmt/2mn /dev/rmt/c6t0d0BESTn
/dev/rmt/2mnb /dev/rmt/c6t0d0BESTnb
--Physical Disk , tape ,lan
# Check disk mapping for HP-UX 11.31
Persistent DSF Legacy DSF(s)
========================================
/dev/rchgr/autoch1 /dev/rac/c6t0d1
/dev/rdisk/disk3 /dev/rdsk/c0t0d0
/dev/rdisk/disk3_p1 /dev/rdsk/c0t0d0s1
/dev/rdisk/disk3_p2 /dev/rdsk/c0t0d0s2
/dev/rdisk/disk3_p3 /dev/rdsk/c0t0d0s3
# Check disk mapping for HP-UX 11.31
ioscan -m lun
Class I Lun H/W Path Driver S/W State H/W Type Health Description
=======================================================================
ctl 4 64000/0xfa00/0x0 esctl CLAIMED DEVICE online HP
HSV300
0/3/0/0/0/0.0x50014380025d511c.0x0
tape 1 64000/0xfa00/0x1 estape CLAIMED DEVICE online HP
Ultrium 4-SCSI
0/3/0/0/0/0.0x500110a00094e38a.0x0
/dev/rtape/tape1_BEST /dev/rtape/tape1_BESTn
/dev/rtape/tape1_BESTb /dev/rtape/tape1_BESTnb
autoch 1 64000/0xfa00/0x2 eschgr CLAIMED DEVICE online HP
MSL G3 Series
0/3/0/0/0/0.0x500110a00094e38a.0x1000000000000
/dev/rchgr/autoch1
disk 3 64000/0xfa00/0x3 esdisk CLAIMED DEVICE online HP
IR Volume
0/2/1/0.0xa9fe9dda9bf7d63.0x0
/dev/disk/disk3 /dev/rdisk/disk3
/dev/disk/disk3_p1 /dev/rdisk/disk3_p1
--Scan hard disk
Use the ioscan command to check the S/W state of the disk. Only disks in state CLAIMED are currently accessible by the system. Disks in other states such as NO_HW or disks that are completely missing from the ioscan output are suspicious. If the disk is marked as CLAIMED, then its controller is responding. For example: # ioscan –fnCdisk
Class I H/W Path Driver S/W State H/W Type Description
======
disk 0 8/4.5.0 sdisk CLAIMED DEVICE SEAGATE ST34572WC
disk 1 8/4.8.0 sdisk UNCLAIMED UNKNOWN SEAGATE ST34572WC
disk 2 8/16/5.2.0 sdisk CLAIMED DEVICE TOSHIBA CD-ROM XM-5401TA
In this example the disk at hardware path 8/4.8.0 is not accessible. If the disk has multiple hardware paths, be sure to check all the paths.
--Check Disk bad sector
more /var/adm/syslog/syslog.log
And most important: make sure the online diagnostics are loaded and running. They will monitor disk error messages and can be configured to notify you when there are error messages. The file: /var/adm/syslog/syslog.log will also have disk errors logged.
--Check scan tape
ioscan - fnC tape
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
tape 2 0/3/0/0/0/0.1.15.255.0.0.0 stape CLAIMED DEVICE HP
Ultrium 4-SCSI
/dev/rmt/2m /dev/rmt/c6t0d0BEST
/dev/rmt/2mb /dev/rmt/c6t0d0BESTb
/dev/rmt/2mn /dev/rmt/c6t0d0BESTn
/dev/rmt/2mnb /dev/rmt/c6t0d0BESTnb
HP-UX interface/lancard command
** Myself
Show lancard
netstat –i or lanscan
Show ip&gateway
netstat -an
SAM Tool configuration interface and IP
No require boot
Add first interface
set_parms ip_address (require boot)
Add another interface
vi /etc/rc.config.d/netconf
change 7 line to another interface
Show lancard
netstat –i or lanscan
Show ip&gateway
netstat -an
SAM Tool configuration interface and IP
No require boot
Add first interface
set_parms ip_address (require boot)
Add another interface
vi /etc/rc.config.d/netconf
change 7 line to another interface
HP-UX 11iv2 and v3 Change EFI boot Menu
** Myself
EFI menu
Change boot console graphic
->boot config -> boot from file -> Console -> select output console
If want to VGA output choose PCI short name (last below row)
EFL menu
Change boot from dvd
->boot config -> boot from file -> Removable media boot
Boot from hard drive
->first menu
Unix OS HP-UX Create swdeport/swcopy/swlist for depot file
1.List sw on cdrom
swlist -s /cdrom
2.list sw on cdrom and choose product
swlist -s /cdrom Java15JDK
3.Create depot sw on destination
swcopy -s /cdrom Java15JDK \* @ /<destination>
Software Depot Package Builder:
Installed in:
/opt/spb/bin/spb
creating a software depot
Unix OS HP-UX How to configure the Console input/output devices on EFI Menu
** Credit Web and Myself
How to configure the Console input/output devices
On Itanium systems there are basically three possible console screens:
• VGA-terminal
• On board serial console port
• Management port (MP) only available for server, not on workstations
From the EFI Boot Maintenance Manager menu you can enable or disable these ports:
In this example all three devices are enabled. The asterix indicates this.
KMINE doc IA64KBRC00011702 provides tables that show which of the devices display the output of:
• power on self test (POST)
• EFI menus
• HP-UX system bootup messages (i.e. VG activation, startup-scripts, login prompt)
How to configure the Console input/output devices
On Itanium systems there are basically three possible console screens:
• VGA-terminal
• On board serial console port
• Management port (MP) only available for server, not on workstations
From the EFI Boot Maintenance Manager menu you can enable or disable these ports:
In this example all three devices are enabled. The asterix indicates this.
KMINE doc IA64KBRC00011702 provides tables that show which of the devices display the output of:
• power on self test (POST)
• EFI menus
• HP-UX system bootup messages (i.e. VG activation, startup-scripts, login prompt)
Unix OS HP-UX How to check Report Memory of HP-UX
** Myself
Report Memory of HP-UX
Physical mem --> sam(phy mem),glance(phy mem)
Free phys mem-->sam(free mem),glance(free mem),vmstat(free/4k),top(Memory free)
User mem-->sam(real mem),glance(user mem),top(Memory real)
Virtual mem-->sam(Vir mem),glance(total vm),top(Memory vir)
Swap usage-->sam(swap space use),glance(swap util),swapinfo(dev used)
Sam-->system properties
Physical Memory: 6149.5 MB
Real Memory: Total: 938MB
Active: 764MB
Virtual Memory: Total: 2078MB
Active: 1838MB
Free Memory Pages: 3511MB 900103 at 4 KB/page
Swap Space: Avail: 4096 MB
Used: 1018 MB
Glance-->m
Total VM : 2.0gb Sys Mem : 1.3gb User Mem: 975mb Phys Mem: 6.0gb
Active VM: 1.6gb Buf Cache: 307mb Free Mem: 3.4gb
Swap Util U UR R | 25% 25% 25%
Unix OS HP-UX Control tape media and Arm/Changer device
** Myself
Control arm or changer machine
- ioscan –funC rac
- mc –p /dev/rac/cXtXdX –r DS
- mc –p /dev/rac/cXtXdX –s D1 –d S1 ( moved tape device to Slot from source Drive 1 and destination Slot 1)
- mc –p /dev/rac/cXtXdX –s s1 –d d1 ( moved tape device to Drive from source Slot 1 and destination Drive 1)
Stape & Schgr
For Control changer & Device tape need to enable stape module and require restart server after enable it
ใส่ device tape หรือ เรียกแขนกล ครั้งแรก ต้องไป enable stape module ก่อน ถ้าเห็น device ครั้งแรก แต่ต้อง reboot system
Control Tape device
--> check Status tape
mt –f /dev/rmt/Xmn status
--> rewind Tape
mt –f /dev/rmt/Xmn rew <number>
--> forward Tape
mt –f /dev/rmt/Xmn fsf <number>
Control arm or changer machine
- ioscan –funC rac
- mc –p /dev/rac/cXtXdX –r DS
- mc –p /dev/rac/cXtXdX –s D1 –d S1 ( moved tape device to Slot from source Drive 1 and destination Slot 1)
- mc –p /dev/rac/cXtXdX –s s1 –d d1 ( moved tape device to Drive from source Slot 1 and destination Drive 1)
Stape & Schgr
For Control changer & Device tape need to enable stape module and require restart server after enable it
ใส่ device tape หรือ เรียกแขนกล ครั้งแรก ต้องไป enable stape module ก่อน ถ้าเห็น device ครั้งแรก แต่ต้อง reboot system
Control Tape device
--> check Status tape
mt –f /dev/rmt/Xmn status
--> rewind Tape
mt –f /dev/rmt/Xmn rew <number>
--> forward Tape
mt –f /dev/rmt/Xmn fsf <number>
UNIX OS HP-UX Restore client from ignite server
**Myself
Step restore client from Ignite server
1. Interrupt boot os
2. Boot ignite tape version ignite from tape = ignite server
-or-
Boot DVD media version ignite from media = ignite server
-or-
Boot lan (same subnet if not config boot-helper)
Bo lan.XX.XX.XX.XX install (XX=ip ignite server)
3. In Install Welcome sceen ,choose Ignite-UX and Advance install
4. Choose Archive file from ignite server
5. Check space ,dump file ,vg and all
6. Go ! to begin installation phase
Screen restore client from Ignite server
Welcome to the HP-UX installation/recovery process!
Use the <tab> key to navigate between fields, and the arrow keys
within fields. Use the <return/enter> key to select an item.
Use the <return/enter> or <space-bar> to pop-up a choices list. If the
menus are not clear, select the "Help" item for more information.
Hardware Summary: System Model: 9000/800/L3000-8x
+---------------------+----------------+-------------------+ [ Scan Again ]
| Disks: 8 (273.6GB) | Floppies: 0 | LAN cards: 5 |
| CD/DVDs: 1 | Tapes: 4 | Memory: 12288Mb |
| Graphics Ports: 0 | IO Buses: 17 | CPUs: 4 | [ H/W Details ]
+---------------------+----------------+-------------------+
[ Install HP-UX ]
[ Run a Recovery Shell ]
[ Advanced Options ]
[ Reboot ] [ Help ]
User Interface and Media Options
This screen lets you pick from options that will determine if an
Ignite-UX server is used, and your user interface preference.
Source Location Options:
[ ] Media only installation
[ ] Media with Network enabled (allows use of SD depots)
[ * ] Ignite-UX server based installation
Step restore client from Ignite server
1. Interrupt boot os
2. Boot ignite tape version ignite from tape = ignite server
-or-
Boot DVD media version ignite from media = ignite server
-or-
Boot lan (same subnet if not config boot-helper)
Bo lan.XX.XX.XX.XX install (XX=ip ignite server)
3. In Install Welcome sceen ,choose Ignite-UX and Advance install
4. Choose Archive file from ignite server
5. Check space ,dump file ,vg and all
6. Go ! to begin installation phase
Screen restore client from Ignite server
Welcome to the HP-UX installation/recovery process!
Use the <tab> key to navigate between fields, and the arrow keys
within fields. Use the <return/enter> key to select an item.
Use the <return/enter> or <space-bar> to pop-up a choices list. If the
menus are not clear, select the "Help" item for more information.
Hardware Summary: System Model: 9000/800/L3000-8x
+---------------------+----------------+-------------------+ [ Scan Again ]
| Disks: 8 (273.6GB) | Floppies: 0 | LAN cards: 5 |
| CD/DVDs: 1 | Tapes: 4 | Memory: 12288Mb |
| Graphics Ports: 0 | IO Buses: 17 | CPUs: 4 | [ H/W Details ]
+---------------------+----------------+-------------------+
[ Install HP-UX ]
[ Run a Recovery Shell ]
[ Advanced Options ]
[ Reboot ] [ Help ]
User Interface and Media Options
This screen lets you pick from options that will determine if an
Ignite-UX server is used, and your user interface preference.
Source Location Options:
[ ] Media only installation
[ ] Media with Network enabled (allows use of SD depots)
[ * ] Ignite-UX server based installation
Unix OS HP-UX command for check system overview
** Myself
Check System overview
- print_manifest
--or--
- machinfo
Check Cell board
- mstm
Check Log
- /etc/rc.log
Check size disk
- diskinfo /dev/rdsk/c0t5d0
Check System overview
- print_manifest
--or--
- machinfo
Check Cell board
- mstm
Check Log
- /etc/rc.log
Check size disk
- diskinfo /dev/rdsk/c0t5d0
Unix OS HP-UX command for backup and recover file system by fbackup/frecover
** Myself
fbackup/frecover
fbackup/recover to file
fbackup –i /tmp/test -f /tmp/test.fbk
frecover –f /tmp/test.fbk –ry (default recover to original path)
fbackup/recover nfs to file
fbackup -0f test4_nfs.f -n -i /nfs_anotherhost/abc
frecover -f test4_nfs.f -x -i / nfs_anotherhost /abc
frecover –f /tmp/test.fbk –ry (default recover to original path)
fbackup/frecover
fbackup/recover to file
fbackup –i /tmp/test -f /tmp/test.fbk
frecover –f /tmp/test.fbk –ry (default recover to original path)
fbackup/recover nfs to file
fbackup -0f test4_nfs.f -n -i /nfs_anotherhost/abc
frecover -f test4_nfs.f -x -i / nfs_anotherhost /abc
frecover –f /tmp/test.fbk –ry (default recover to original path)
Subscribe to:
Posts (Atom)
Loading