HPU常用命令.docx

上传人:小飞机 文档编号:3158210 上传时间:2023-03-11 格式:DOCX 页数:5 大小:38.34KB
返回 下载 相关 举报
HPU常用命令.docx_第1页
第1页 / 共5页
HPU常用命令.docx_第2页
第2页 / 共5页
HPU常用命令.docx_第3页
第3页 / 共5页
HPU常用命令.docx_第4页
第4页 / 共5页
HPU常用命令.docx_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

《HPU常用命令.docx》由会员分享,可在线阅读,更多相关《HPU常用命令.docx(5页珍藏版)》请在三一办公上搜索。

1、HPU常用命令HP-UX常用命令 1、 hostname:查看系统主机名 2、 model:查看主机型号 3、 ioscan fnCprocessor:查看CPU个数 4、 top 前几行是cpu个数,型号,和平均负载,下面的十几行信息是进程占用cpu实时状况, 一般占用cpu越多排名就越靠前。 5、 print_manifest:查看主机硬件信息,包括显示系统型号、机器序列号、处理器类型、处理器数目、CPU类型、总内存大小、内置硬盘数、挂接存储信息,IO信息,安装的软件,网络信息、文件系统信息、内核信息 6、 lanscan:列出系统内所有网卡的信息 7、 netstat in:查看网卡IP

2、地址 8、 ioscan fnkC disk:查看内置硬盘/外置硬盘的使用信息 9、 diskinfo /dev/rdsk/c1t0d0:查看硬盘大小信息 10、 ioscan fnC fc:列出主机上连接的光纤卡设备 11、 fcmsutil /dev/fcd*:查看光纤卡的wwn号及微码版本 12、 top:查看系统当前CPU使用率、实际内存使用,PS使用率等信息 13、 sar:sar 2 3 查看系统当前负载, sar -u 查看cpu的负载, sar -d 查看磁盘的负载 14、 swapinfo:查看交换区信息 15、 uname -a:查看操作系统版本 16、 vgdisplay

3、:查看系统有哪些VG 17、 vgdisplay xxxvg:查看xxxvg信息 18、 vgdisplay v xxxvg:查看xxxvg中的lv及pv信息 19、 ioscan fnC disk:查看系统硬盘 20、 strings /etc/lvmtab:查看逻辑卷的分配和使用情况 21、 bdf:查看系统中文件系统的大小及使用情况 22、 mount:查看系统已经挂载的文件系统 23、 sqlplus / nolog :查看Oracle软件版本 在HP-UX上监控系统状况可以使用glance工具,但是该工具需要license 通过SAM工具也可以很方便的看到系统信息,例如sam进入工具

4、界面后按f再按d就可以看的系统硬盘大小及对应vg等信息。 进入sam界面按d再按o:可查看系统热插拔卡 HP-UX上制作可以引导的镜像 环境:系统现有两块磁盘,一块作为主盘,一块作为镜像盘 用ioscan -nfCdisk可以查看到两个磁盘 /dev/dsk/c0t0d0 /此盘为主盘 /dev/dsk/c0t2d0 /此盘将作为镜像盘 用swinstall l bundle查看系统是否安装MirrorDisk/UX 镜像的步骤: 1、pvcreate -f -B /dev/rdsk/c0t2d0 /使用参数“-B”创建一个用于镜像的可引导的LVM磁盘: 2、vgextend /dev/vg0

5、0 /dev/dsk/c0t2d0 /将上一步的LVM磁盘添加到根卷组中 3、mkboot /dev/c0t2d0 /将新磁盘制作成为可引导的磁盘 4、 lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t2d0 lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c0t2d0 lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c0t2d0 lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c0t2d0 lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/

6、c0t2d0 lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c0t2d0 lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c0t2d0 lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c0t2d0 /将VG00中的所有设备都镜像到镜像盘,-m 1表示拷贝一份镜像,如果文件系统较大,等待时间可能会长一点,如下: # lvextend -m 1 /dev/vg00/lvol1 The newly allocated mirrors are now being synchronized. This opera

7、tion will take some time. Please wait . Logical volume /dev/vg00/lvol1 has been successfully extended. Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf # lvextend -m 1 /dev/vg00/lvol2 The newly allocated mirrors are now being synchronized. This operation will take so

8、me time. Please wait . Logical volume /dev/vg00/lvol2 has been successfully extended. Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf 第5步:拷贝正确的AUTO文件到新的LIF区 # mkboot -a hpux -lq(;0)/stand/vmunix /dev/dsk/c0t0d0 # mkboot -a hpux -lq(;0)/stand/vmunix /dev/dsk/c0t2d0 第

9、6步:指定引导逻辑卷、根逻辑卷、主交换逻辑卷、转储逻辑卷,为根和交换镜像拷贝更新包含在BDRA中等启动信息: # lvlnboot -b /dev/vg00/lvol1 Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf # lvlnboot -r /dev/vg00/lvol3 Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf # lvlnboot -s /dev/vg

10、00/lvol2 Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf # lvlnboot -d /dev/vg00/lvol2 Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf 第7步:恢复所有的BDRA信息 # lvlnboot -R Volume Group configuration for /dev/vg00 has been saved in /etc/lvm

11、conf/vg00.conf 第8步:确定引导逻辑卷、根逻辑卷、主交换逻辑卷以及转储逻辑卷的设置 # lvlnboot -v Boot Definitions for Volume Group /dev/vg00: Physical Volumes belonging in Root Volume Group: /dev/dsk/c0t0d0 (0/0/2/0.0.0) - Boot Disk /dev/dsk/c0t2d0 (0/0/2/0.2.0) - Boot Disk Boot: lvol1 on: /dev/dsk/c0t0d0 /dev/dsk/c0t2d0 Root: lvol3

12、 on: /dev/dsk/c0t0d0 /dev/dsk/c0t2d0 Swap: lvol2 on: /dev/dsk/c0t0d0 /dev/dsk/c0t2d0 Dump: lvol2 on: /dev/dsk/c0t0d0, 0 第9步:将引导盘设置为镜像盘 # setboot Primary bootpath : 0/0/2/0.0.0 /此时c0t2d0为主引导盘 Alternate bootpath : 0/0/2/0.2.0 Autoboot is ON (enabled) Autosearch is ON (enabled) # setboot -p 0/0/2/0.2.0

13、 -a 0/0/2/0.0.0 /将c0d0t0设为主引导盘 # shutdown -ry 0 /从镜像盘启动 VA7410 管理界面:cvui 主机上查看lun对应关系:armtopology HP-UX 11.11使用的多路径软件是pvlink 11.31使用的是native multi_path HP V3查看lun对应关系 scsimgr lun_map -D /dev/rdisk/disk17 | grep WWID 重定向新盘到原盘 rmsf /dev/rdisk/disk47 mksf -C disk -I 47 /dev/disk/disk110 o_redirect_dsf -d /dev/disk/disk47 -n /dev/disk/disk110 ls -lL c3t19d7

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号