HP-UX (HP-UX tutorial), all known as HewlettPackardUniX, is the operating system of HP 9000 Series servers that can run on HP's HP-UX11iv3 third-time upgrade PA-RISC processor, Intel's Itanium processor computer. It is based on SystemV and is a variant of Unix. What are all HP-UX commands? Familiar with HP-UX instructions
HP-UX (HP-UX tutorial), all known as Hewlett PackardUniX, is the operating system of HP 9000 Series servers, can run on HP's HP-UX 11iv3 third upgrade PA-RISC processor, Intel's Itanium processor's computer. It is based on SystemV and is a variant of Unix.HP-UX commandsWhat are there? Familiar with the HP-UX command operation will be much more convenient. The following Please see HP-UX command Daquan.
Steps for replacing an image hard disk:
# Lvreduce? K? M 0
# Lvremove
# Vgreduce? F vg00
# Vgcfgbackup/dev/vgxx <备份vgxx信息,默认存放在 etc lvmconf下>
If vg0x is lost:
# Vgcfgrestore? N/dev/vg0x/dev/rdsk/cxtydz
# Vgchange? A y/dev/vg0x
Auto raid (disk array)
# Arraydsp? I <用来找到autoraid序列号>
# Arraydsp? A <列出所有序列号>
FC60 disks cannot be exchanged at will. you can use the following command to try it:
# Amutil? D 2:1 fc <修复相应硬盘>
# Amutil? D 4: 0 fc
# Amutil? Syswipe fc <格式化>
Run these commands if FC60 lights are abnormal.
# Amdsp? I
# Ammgr? D. alias host name <设置别名>
# Ammgr? C AA host name <设置模式,当fc60的灯全亮的时候用这个命令>
Suppose there are two DS2300 inventory cabinets for mirroring: First, make the DS2300 of the above DS2300 as PVG0 and then make the DS2300 as PVG1, and then make the image of PVG0 and PVG1. the specific steps are as follows:
# Pvcreate? F/dev/rdsk/cxdytz <先创建pv>
# Vgcreate? G PVG0/dev/vg01/dev/dsk/c1t1d0/dev/dsk/c1t2d0/dev/dsk/c1t3d0 ....... <创建pvg0>
# Vgextend? G PVG1/dev/vg01/dev/dsk/c2t1d0/dev/dsk/c2t2d0/dev/dsk/c2t3d0 ....... <激活pvg0>
# Lvcreate? S g? M 1? L 512? N lvroot/dev/vg01 <创建逻辑卷lvroot,大小512m,pvg0与pvg1做镜像>
# Strings/etc/lvmpvg
# Strings/etc/lvmtab
Software fault diagnosis
1. # ioscan-fn
Lists all relevant information of each I/O card and device, such as the logical unit number, hardware address, and device file name.
2. # ps-ef
Lists information about all running processes, such as process numbers and process names.
3. # netstat-rn
Lists the NIC status and route information.
4. # lanscan
Lists the NIC status and network configuration information.
5. # bdf? V <查看逻辑卷的使用情况、空间大小>
# Fuser? Ck/cdrom <清除cdrom中所有进程,否则光驱不会开门>
# Ioscan
# Insf? E <生成设备文件名、加载设备驱动文件名>
# Insf? EvCdisk <查看设备是否有变化,恢复设备驱动号>
# Vgscan? A <如果 etc lvmtab的文件不正常、或丢失,可用这个命令来重新生成lvmtab,但是做之前一定要备份lvmtab>
Configure MODEM
# Ctrl_ B <进入gsp状态、配置modem>
# Ca <配置modem>
# Er <激活modem>
# GSP> XD
> R
# Ctrl_ B
# GSP> lc <修改lan console ip>
Install Ignite (B5725AA): Make_recovery cannot be backed up. you can modify the settings:
# Vi/opt/ignite/bin/make_medialif502Line (shift_Enter) modification:
Lifinit $ ipl_options? V72000000? D24 is
Lifinit $ ipl_options? V102000000? D24
Set or adjust VA:
Use the Console to connect to VA for adjustment and Setup, or connect the computer with a 15-pin cord.
# Vfpdsp -? <查看参数>
# Vfpdsp? F
# Vfpdsp? L
# Vfprecover <恢复va数据>
# Vfprecover? S
To do Mirror:
Pvcreate? F? B/dev/rdsk/c2t2d0
Mkboot/dev/rdsk/c2t2d0
Mkboot? A "hpux? SCSI (; 0)/stand/vmunix "/dev/rdsk/c1t2d0
Mkboot? A "hpux? SCSI (; 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
Enter the maintenance mode for a single user:
Press any key during a 10-second interruption, type bo (enter), prompt whether to enter IPL mode, select yes, and then type hpux? Is enters the single-user maintenance mode, and # vgchange? A y/dev/vg00 to initialize the HP-UX system.
# Lvchange? M n? C n/dev/vg00/lvol2 <给mirror作优化>
# Strings/etc/lvmtab <查看mirror情况>
# Lvlnboot? V <查看mirror是否做成功>
# Lvdisplay? V/dev/vg00/lvol1
Remove image:
Lvreduce? M 0/dev/vg00/lvol1/dev/dsk/c1t2d0
Lvreduce vg00/dev/dsk/c1t2d0
If mirror cannot be performed, the stringe/etc/lvmtab has redundant PVS. delete them. <慎用此命令,一定要备份vgdisplay ?v vg0x 信息>
# Vgreduce/dev/vg0x/dev/dsk/cxtydz
# Lvremove/dev/vg01/lvol1 <删除vg01内lvol1卷>
To replace an image root disk, follow these steps:
# Make_tape_recovery? Av
# Shutdown? Ry 0
Replace the bad disk
Bo? Y? ISL? Hpux? Ls
# Vgchange? A y/dev/vg00
# Mv/etc/lvmtab. bak
# Pvcreate? F/dev/rdsk/cxtydz
# Mv/etc/lvmtab. bak/etc/lvmtab
# Mkboot/dev/rdsk/cxytdz
# Mkboot? A "hpux? SCSI (; 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
Steps for replacing an image hard disk:
# Lvreduce? K? M 0
# Lvremove
# Vgreduce? F vg00
# Vgcfgbackup/dev/vgxx <备份vgxx信息,默认存放在 etc lvmconf下>
If vg0x is lost:
# Vgcfgrestore? N/dev/vg0x/dev/rdsk/cxtydz
# Vgchange? A y/dev/vg0x
Auto raid (disk array)
# Arraydsp? I <用来找到autoraid序列号>
# Arraydsp? A <列出所有序列号>
FC60 disks cannot be exchanged at will. you can use the following command to try it:
# Amutil? D 2:1 fc <修复相应硬盘>
# Amutil? D 4: 0 fc
# Amutil? Syswipe fc <格式化>
Run these commands if FC60 lights are abnormal.
# Amdsp? I
# Ammgr? D. alias host name <设置别名>
# Ammgr? C AA host name <设置模式,当fc60的灯全亮的时候用这个命令>
Steps required for configuring dual servers:
Scsi init 0/10/0/0 6
Scsi rate 0/10/0/0 ultra
# Vi. rhosts <建立两机之间信任关系,这样可以copy file>
Hostname1 root
Hostname2 root
Change Host name
First modify: # vi/etc/hosts host name
127.0.0.1 hostname
127.0.0.1 localhost loopback
Then modify: # set_parms hostname
# Sh PHCO_15220 <解开补丁包,会生成一个有*.depot结尾的补丁程序>
Ftp> mget <得到多个文件>
Ftp> put <给一个文件>
QX Modem Initialize strings
AT
AT & F
AT & D3 & R0 & S1 % C0
ATS0 = 1S23 = 58
AT & W0 & Y0
Set the terminal type (when the Console displays garbled characters during installation)
Ctrl_scrlk look <用ctrl_enter来修改类型>
Something to modify when installing the system. Otherwise, an error is reported.
# Add a space after the host name in vi/etc/hosts. (point)
# Set TERM = hp in vi. profile
# Vi. profile add export PS1 = 'hostname': '$ PWD #' to the second row #'
When installing the 11.11i system, you must copy the/usr/newconfig/etc/inittab file to/etc/; otherwise, an error will occur.
# Cd/usr
# Cd/newconfig
# Cd/etc
# Cp inittab/etc/
Recover from tape (make_recovery)/opt
# Mt? T/dev/rmt/0mn fsf 1
# Tar? Xvf/dev/rmt/0 m opt
Create lvg01: <假如lvg01是vg01的卷名、要mount到app1上>
# Lvcreate? L 200? N lvg01/dev/vg01
# Newfs/dev/vg01/rlvg01 <# newfs? F vxfs/dev/vg01/rlvg01 (-F vxfs is used to create a vxfs
Format system files)>
# Mkdir/app1
# Mount/dev/vg01/lvg01/app1
# Vi/etc/fcTL <修改lvg01项,机器自动启动加载的选项>
# Vi/etc/mnttab <查看是否和fstab一样,如果用bdf命令查看lvol*不正常,就mv走mnttab,然后ioscan ?fn ,insf?e 看一下,如果还不行,reboot看一下>
# Vgexport vg0x <删除vg0x,要慎用>
# Vgexport? S? P? M vg0x .. map/dev/vg0x <备份vg0xmap信息>
# Vgimport? S? M
# Strings/etc/lvmtab
# Vgreduce/dev/vg00/dev/dsk/cxtydz
# Chmod 777 tmp
Extended volume Group (vg) <加入另外一个磁盘进入这个vg>
# Pvcreate/dev/rdsk/cxtydz
# Vgextend vg0x/dev/dsk/cxtydz
# Vgdisplay? V vg0x <检查卷组是否被扩展进去>
Whether it's a HP-UX or AIX, these large UNIX systems are not used for desktop systems and are generally used to run Oracle (Oracle training), Sybase (Sybase-certified Sybase training) and DB2 (DB2 certified DB2 training) and other large database systems. Its system construction, implementation, O & M, and high availability settings have platform features. MoreHP-UX commandsAll information is available in our new style IT education network.