东信北邮信息技术有限公司第1页共16页HP存储MSA配置步骤和状态监控MSA是HP低端存储产品,是ModularSmartArray的缩写,我们用到的MSA系列产品有MSA20、MSA30、MSA1000和MSA1500。MSA20和MSA30只是个傻盘柜,没有raid功能,直接连到主机,如要配置raid则需要在主机上安装raid卡。MSA1000/1500是盘柜加控制器,控制器可管理、配置raid,控制器外部接2Gb光纤到主机,需要主机配有HBA卡(光纤卡)。MSA1500支持冗余路径,可保证数据的安全。下面简单的讲解了MSA现场的配置过程和MSA远程在线的配置方法。一、MSACLI配置步骤1配置准备:1.1主机光纤卡正确安装并与MSA控制器连接1.2MSA硬件安装完毕1.3请确认MSA控制器firmware版本为6.86或更高(仅针对配置双控负荷均担)2配置步骤:2.1配置前的准备工作2.1.1查看HP-UX主机HBA卡WWPN号用root用户登录主机,键入如下命令:(以实验室设备benz为例)root@benz:/ioscan-fnCfcClassIH/WPathDriverS/WStateH/WTypeDescription=================================================================fc00/4/1/0tdCLAIMEDINTERFACEHPTachyonXL2FibreChannelMassStorageAdapter/dev/td0root@benz:/fcmsutil/dev/td0VendorIDis=0x00103cDeviceIDis=0x001029XL2ChipRevisionNois=2.3PCISub-systemVendorIDis=0x00103cPCISub-systemIDis=0x00128cTopology=PTTOPT_FABRICLinkSpeed=2GbLocalN_Port_idis=0x010100N_PortNodeWorldWideName=0x50060b00005fc129N_PortPortWorldWideName=0x50060b00005fc128Driverstate=ONLINEHardwarePathis=0/4/1/0NumberofAssistedIOs=-1536164319NumberofActiveLoginSessions=1DinoPresentonCard=NOMaximumFrameSize=2048DriverVersion=@(#)libtd.aHPFibreChannelTachyon东信北邮信息技术有限公司第2页共16页TL/TS/XL2DriverB.11.11.12PATCH_11.11(PHSS_31326)/ux/kern/kisu/TL/src/common/wsio/td_glue.c:Sep52005,10:14:40注意上面红色的号码,在MSA配置中的格式为:50060b00-005fc1282.1.2查看Linux主机HBA卡WWPN号用root用户登录主机,键入如下命令:(以实验室设备jetta为例)[root@jetta~]#cat/proc/scsi/qla2xxx/0QLogicPCItoFibreChannelHostAdapterforQLA2340:Firmwareversion3.03.18IPX,Driverversion8.01.02-d4ISP:ISP2312,Serial#D08964RequestQueue=0x37640000,ResponseQueue=0x37630000RequestQueuecount=2048,ResponseQueuecount=512Totalnumberofactivecommands=0Totalnumberofinterrupts=160Devicequeuedepth=0x10Numberoffreerequestentries=2047Numberofmailboxtimeouts=0NumberofISPaborts=0Numberofloopresyncs=0Numberofretriesforemptyslots=0Numberofreqsinpending_q=0,retry_q=0,done_q=0,scsi_retry_q=0Hostadapter:loopstate=DEAD,flags=0x1a03Dpcflags=0x4000000MBXflags=0x0LinkdownTimeout=008Portdownretry=016Loginretrycount=016Commandsretriedwithdroppedframe(s)=0ProductID=4953502020200002SCSIDeviceInformation:scsi-qla0-adapter-node=200000e08b84e4b6;scsi-qla0-adapter-port=210000e08b84e4b6;FCPortInformation:SCSILUNInformation:(Id:Lun)*-indicateslunisnotregisteredwiththeOS.若要查看主机上的第二快HBA卡,命令为cat/proc/scsi/qla2xxx/12.1.3查看AIX主机HBA卡WWPN号用root用户登录主机,键入如下命令:(以湖南SCP11A为例)root@SCP11Alsattr-Eldac0GLM_typelowGLMtypeFalsealt_held_resetnoAlternateheldinresetFalse东信北邮信息技术有限公司第3页共16页cache_size128CacheSizeinMBytesFalsecontroller_SN1T54396785ControllerserialnumberFalsectrl_type1722-600ControllerTypeFalselocationLocationLabelTruelun_id0x0LogicalUnitNumberFalsenode_name0x200800a0b81f56e8FCNodeNameFalsepassive_controlnoPassivecontrollerFalsescsi_id0x10000SCSIIDFalseutm_lun_id0x001f000000000000LogicalUnitNumberFalseww_name0x200900a0b81f56e9WorldWideNameFalse注意上面红色的号码,在MSA配置中的格式为:200900a0-0b81f56e92.1.4连接MSA控制器方法:找一台PC机,通过阵列随机带的黑色串口线(维护线,一端串口,一端RJ45口),将PC机和阵列的控制器连接起来。在PC中,通过超级终端和阵列通讯,其中,串口的设置为:波特率:19200,数据位::8,奇偶校验::无,停止位:1,流控制::无在阵列启动完成后,在超级终端下敲回车键,会看到CLI提示符,在该提示符下,可以对磁盘阵列进行配置了。2.2配置前的一些查看命令下面的配置都以实验室MSA1000为例2.2.1查看disk的命令:showdisksCLIshowdisksbox,baybus,IDSizeSpeedUnitsDisk1011,010,0036.4GB160MB/snoneDisk1021,020,0136.4GB160MB/snoneDisk1031,030,0236.4GB160MB/snoneDisk1041,040,0336.4GB160MB/snoneDisk1051,050,0436.4GB160MB/snoneDisk1061,060,0536.4GB160MB/snoneDisk1071,070,0836.4GB160MB/snoneDisk1081,081,0036.4GB160MB/snoneDisk1091,091,0136.4GB160MB/snoneDisk1101,101,0236.4GB160MB/snoneDisk1121,121,04146.8GB160MB/snoneDisk1141,141,0836.4GB160MB/snoneNotes:Thespeedisthecurrentlynegotiatedspeedtothedisk.Thismaybelessthanthemaximumspeedsupportedbythedeviceduetobusfaults,lossofsignalintegrity,etc.上面列出了所有disk的信息,请注意boxbay,box是盘笼子的编号,bay是同一个盘笼子里磁盘的位置,例如Disk103,指该disk是在第一个盘笼子里的第三个槽位。如果有两个或者两个以上的盘笼子,输出的结果为(以四川VC3为例):CLI-1showdisksDiskList:(box,bay)(B:T:L)SizeSpeedUnits东信北邮信息技术有限公司第4页共16页Enclosure1:SCSI(0:06:00)PROLIANT4LEECP20Disk101(1,01)(0:00:00)72.8GB160MB/snoneDisk102(1,02)(0:01:00)72.8GB160MB/snoneDisk103(1,03)(0:02:00)72.8GB160MB/s0,1,2,3,4,5Disk104(1,04)(0:03:00)72.8GB160MB/s0,1,2,3,4,5Disk105(1,05)(0:04:00)72.8GB160MB/s0,1,2,3,4,5Disk106(1,06)(0:05:00)72.8GB160MB/s0,1,2,3,4,5Disk107(1,07)(0:08:00)72.8GB160MB/s0,1,2,3,4,5Disk108(1,08)(0:09:00)72.8GB160MB/s0,1,2,3,4,5Disk109(1,09)(0:10:00)72.8GB160MB/s0,1,2,3,4,5Disk110(1,10)(0:11:00)72.8GB160MB/s0,1,2,3,4,5Disk111(1,11)(0:12:00)72.8GB160MB/s0,1,2,3,4,5Disk112(1,12)(0:13:00)72.8GB160MB/s0,1,2,3,4,5Disk113(1,13)(0:14:00)72.8GB160MB/s0,1,2,3,4,5Disk114(1,14)(0:15:00)72.8GB160MB/s0,1,2,3,4,5Enclosure2:SCSI(1:06:00)PROLIANT4LEECP20Disk201(2,01)(1:00:00)72.8GB160MB/s0,1,2,3,4,5Disk202(2,02)(1:01:00)72.8GB160MB/s0,1,2,3,4,5Disk203(2,03)(1:02:00)72.8GB160MB/s0,1,2,3,4,5Disk204(2,04)(1:03:00)72.8GB160MB/s0,1,2,3,4,5Disk205(2,05)(1:04:00)72.8GB160MB/s0,1,2,3,4,5Disk206(2,06)(1:05:00)72.8GB160MB/s0,1,2,3,4,5Disk207(2,07)(1:08:00)72.8GB160MB/s0,1,2,3,4,5Disk208(2,08)(1:09:00)72.8GB160MB/s0,1,2,3,4,5Disk209(2,09)(1:10:00)72.8GB160MB/s0,1,2,3,4,