HP-UX-11.31-关于与存储互连的常用命令

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

其实这种问题,适合于很多厂家的存储,如ibm的ds4000和5000,因为他们的控制器都不是aa的:现象是:1、存储阵列黄色告警指示灯亮2、操作系统上创建PV和LV速度特别慢3、通过OSM管理软件查看,主机对存储映射过去的LUN进行读写操作时,该LUN在控制器A和控制器B之间不断切换。通过OSM管理软件查看,系统有”volumenotonpreferredpath”告警提示。因为主机操作系统升级到HP-UX11.31,操作系统集成了多路径软件(NativeMultipathing)。集成的多路径软件工作模式是Active-Active模式,具有负载均衡功能。由于同一个LUN的2条路径分别是连接存储的控制器A和控制器B,当系统对lun进行读写时,多路径软件会同时往2条路径上发送IO请求,这就会直接导致S3100存储的LUN在控制器A和控制器B之间不断切换,导致S3100存储的读写性能很低以后这种低端的非双A的存储估计会越来越少了,解决办法(也是所有其他存储的解决办法):在HP-UXv3操作系统上执行如下命令:scsimgrset_attr-aleg_mpath_enable=false//禁用本机多路径scsimgrsave_attr-aleg_mpath_enable=false//保存这个设置,重启后不会丢失禁用系统自带多路径软件,继续采用pvlink的多路径方式或者安装存储自带的多链路软件,如ds4000的rdac或者mpio等ioscan-mdsf#ioscan-fnkNCdisk其中“N”代表链路聚合后新的盘符#ioscan-fnkNCdiskClassIH/WPathDriverS/WStateH/WTypeDescription===================================================================disk164000/0xfa00/0x1esdiskCLAIMEDDEVICEHPLOGICALVOLUME/dev/disk/disk1/dev/disk/disk1_p2/dev/rdisk/disk1/dev/rdisk/disk1_p2/dev/disk/disk1_p1/dev/disk/disk1_p3/dev/rdisk/disk1_p1/dev/rdisk/disk1_p3disk1264000/0xfa00/0x19esdiskCLAIMEDDEVICE3PARdataVV/dev/disk/disk12/dev/rdisk/disk12#cat/etc/fstab#System/etc/fstabfile.Staticinformationaboutthefilesystems#Seefstab(4)andsam(1M)forfurtherdetailsonconfiguringdevices./dev/vg00/lvol3/vxfsdelaylog01/dev/vg00/lvol1/standvxfstranflush01/dev/vg00/lvol4/tmpvxfsdelaylog02/dev/vg00/lvol5/homevxfsdelaylog02/dev/vg00/lvol6/optvxfsdelaylog02/dev/vg00/lvol7/usrvxfsdelaylog02/dev/vg00/lvol8/varvxfsdelaylog02/dev/vg00/lvswap.swap.delaylog0010.6.99.41:/appfiles/app/appfilesvxfsdelaylog02vgdisplay-v/dev/vgtest通过命令#strings/etc/lvmtab查看本地主机中的VG数量#lldev/*/group查看卷组号fcmsutil/dev/fcd怎么在HP-UX主机端看存储LUN的WWN号?scsimgrget_attr-D/dev/rdisk/disk10-awwid–aserial_numberfstyp查看文件类型以我做实验的机器为例:1,机型#model9000/861/D2702,CPU个数#topLOADUSERNICESYSIDLEBLOCKSWAITINTRSSYS0.150.4%0.0%0.6%99.0%0.0%0.0%0.0%0.0%3,硬盘个数#ioscan-funCdiskClassIH/WPathDriverS/WStateH/WTypeDescription=====================================================================disk08/16/5.2.0sdiskCLAIMEDDEVICETOSHIBACD-ROMXM-5701TA/dev/dsk/c2t2d0/dev/rdsk/c2t2d0disk58/16/5.5.0sdiskCLAIMEDDEVICESEAGATEST34572N/dev/dsk/c2t5d0/dev/rdsk/c2t5d0disk18/16/5.6.0sdiskCLAIMEDDEVICESEAGATEST34572N/dev/dsk/c2t6d0/dev/rdsk/c2t6d0其中disk0为光驱,disk5和disk1为硬盘4,硬盘大小信息#diskinfo/dev/rdsk/c2t5d0SCSIdescribeof/dev/rdsk/c2t5d0:vendor:SEAGATEproductid:ST34572Ntype:directaccesssize:4194157Kbytesbytespersector:5125,查看操作系统版本和license#uname-aHP-UXd270_2B.10.20E9000/86120126835788-userlicense#uname-Ssanfran(设定主机名为sanfran)6,查看系统内存#dmesgMemoryInformation:physicalpagesize=4096bytes,logicalpagesize=4096bytesPhysical:131072Kbytes,lockable:83712Kbytes,available:99212Kbytes7,查看文件系统#bdfFilesystemkbytesusedavail%usedMountedon/dev/vg00/lvol383733188765648325%//dev/vg00/lvol147829228002024653%/stand/dev/vg00/lvol876854125484343684337%/var/dev/vg00/lvol779784537490134315952%/usr/dev/vg00/lvol43059730872445011%/tmp/dev/vg00/lvol679784534724937081148%/opt/dev/vg00/lvol51986181177930%/home8,查看卷组、卷组所包括的逻辑卷以及该卷组所包括的物理磁盘#vgdisplay-vvg009,查看网卡状态#lanscanHardwareStationCrdHardwareNet-InterfaceNMMACHPDLPIMjrPathAddressIn#StateNameUnitStateIDTypeSupportNum8/16/60x0060B0A3981C0UPlan0UP4ETHERYes528/20/5/10x0060B05884791UPbtlan01DOWN5ETHERYes778/20/5/20x0060B058747F2UPbtlan02UP6ETHERYes7710,查看网卡的名字、IP地址、网关、子网掩码等配置信息#more/etc/rc.config.d/netconfROUTE_DESTINATION[1]=defaultROUTE_MASK[1]=ROUTE_GATEWAY[1]=172.16.10.254ROUTE_COUNT[1]=1IP_ADDRESS[2]=192.168.1.2SUBNET_MASK[2]=255.255.255.0INTERFACE_NAME[2]=btlan02BROADCAST_ADDRESS[2]=192.168.1.255LANCONFIG_ARGS[2]=ether11,配置IP地址#ifconfiglan0172.16.10.225255.255.255.012,查看网卡的地址#ifconfiglan0lan0:flags=863UP,BROADCAST,NOTRAILERS,RUNNING,MULTICASTinet172.16.10.225netmaskffffff00broadcast192.1.1.25513,查看路由信息#netstat-anActiveInternetconnections(includingservers)ProtoRecv-QSend-QLocalAddressForeignAddress(state)tcp00172.16.10.225.4294172.16.10.225.1712TIME_WAITtcp00192.168.1.2.4252192.168.1.2.4253ESTABLISHEDtcp00192.168.1.2.4253192.168.1.2.4252ESTABLISHEDtcp00*.4252*.*LISTENtcp00192.168.1.2.4162192.168.1.2.4251ESTABLISHEDtcp00192.168.1.2.4251192.168.1.2.4162ESTABLISHEDtcp00172.16.10.225.4250172.16.10.123.6001ESTABLISHEDtcp00172.16.10.225.4249172.16.10.123.6001ESTABLISHEDtcp00192.168.1.2.4247192.168.1.2.4248ESTABLISHEDtcp00192.168.1.2.4248192.168.1.2.4247ESTABLISHEDtcp00*.4247*.*LISTEN14,配置路由信息,例如:#/usr/sbin/routeadddefault20.08.28.981还可以直接修改/etc/rc.config.d/netconf文件来增加路由(SUN里面是修改/etc/defaultroute文件)#routedeletedefault128.1.0.115,有用的诊断工具mstm用来收集所有的硬件信息,比如一共有哪些内存插口,每块现有的内存条多大,还可以查几个内存条等等16,重启计算机#reboot#shutdown17,关闭计算机#shutdown-hy0#init018,查看系统的运行级别#who-r.run-level3Oct2514:4630S19,看当前的登录名#lognameroot20,看登陆用户在干什么#whodoThuOct2711:33:58EAT2005HP-UXroot0Oct2711:3097730:00sh98490:00whodo98520:00awk98540:00sort98560:00awk98570:00psrootconsoleOct2514:4811930:00shrootdtremoteOct2710:11zp1ttyp1Oct2710:1263770:00telnetd63780:00sh21,查看进程#ps-ef|grepzp1zp163786377010:12:29ttyp10:00-sh22,查看光驱#ioscan-funCdiskClassIH/WPathDriverS/WStateH/WTypeDescription=======================================

1 / 12
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功