《更换交换机操作流程(共18页).doc》由会员分享,可在线阅读,更多相关《更换交换机操作流程(共18页).doc(18页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、精选优质文档-倾情为你奉上交换机切换方案声明:交换机切换,在存储方面不需要做任何动作,要做的动作都在交换机和主机上。一:备份存储配置文件,导出二:备份交换机相关信息所用到命令如下:SwitchshowZoneshowConfiguploadCfgshow例如:SW4_CONFIG:admin configuploadProtocol (scp, ftp, local) ftp: ftpServer Name or IP Address host: 10.77.77.5User Name user: rootFile Name config.txt: config.txtPassword: co
2、nfigUpload complete: All config parameters are uploaded三:服务器备份相关信息1,DISK,,FCS,VG ,PV ,FS。如下图所示:2,HDLM软件里头的链路状态。如下所示:# ./dlnkmgr view -sysHDLM Version : 05-80-/AService Pack Version :Load Balance : on(rr)Support Cluster :Elog Level : 3Elog File Size (KB) : 9900Number Of Elog Files : 2Trace Level : 0T
3、race File Size (KB) : 1000Number Of Trace Files : 4Path Health Checking : on(30)Auto Failback : offReservation Status : on(2)Intermittent Error Monitor : offHDLM Manager Ver WakeupTimeAlive 05-80-/A 2010/11/11 17:59:56HDLM Alert Driver Ver WakeupTime ElogMem SizeAlive 05-80-/A 2010/11/11 17:58:55 40
4、00HDLM Driver Ver WakeupTimeAlive 05-80-/A 2010/11/11 17:58:54License Type ExpirationPermanent -KAPL01001-I The HDLM command completed normally. Operation name = view, complet9# ./dlnkmgr view -luProduct : 9500VSerialNumber : 4951LUs : 4iLU HDevName Device PathID Status0000 dlmfdrv2 hdisk8 Online hd
5、isk14 Online0003 dlmfdrv3 hdisk10 Online hdisk15 Online0006 dlmfdrv0 hdisk6 Online hdisk12 Online0007 dlmfdrv1 hdisk7 Online hdisk13 OnlineKAPL01001-I The HDLM command completed normally. Operation name = view, complet9# ./dlnkmgr view -pathPaths: OnlinePaths:PathStatus IO-Count IO-ErrorsOnline 0Pat
6、hID PathName DskName e 08.11.21100.0006 HITACHI .DF600F .4951 0 08.1H.21100.0006 HITACHI .DF600F .4951 0 08.11.21100.0007 HITACHI .DF600F .4951 1 08.1H.21100.0007 HITACHI .DF600F .4951 1 08.1H.21100.0000 HITACHI .DF600F .4951 2 08.11.21100.0000 HITACHI .DF600F .4951 2 08.1H.21100.0003 HITACHI .DF600
7、F .4951 3 08.11.21100.0003 HITACHI .DF600F .4951 3四:新的交换机就位,光纤线标识。该过程要注意线的位置,标识清楚,在新的交换机上占用的端口号,回头要插入存储过来的光纤线,主机过来的光纤线,事先一定规划好,以免到时出乱。五:交换机切换下面分三种情况更换交换机,可以根据实际情况采取相应方式:(一):在线更换交换机该方式不停应用,生产可以继续,但前提是一定要注意链路的冗余方式,至少2路,位于不同的交换机上。仔细核对主机里头的HDLM软件链路情况,删除先要更换的交换机所在的链路。1,如下,在每台主机上执行如下命令。确保另一链路的正常运行。5.8HDLM
8、 FOR AIX5.9以上HDLM FOR AIX2,此时系统单路运行,在插拔光纤线的时候,一定要注意,不能将剩下的一路offline,否则,应用会停,影响生产。3,更换一路的交换机,重新cfgmgr ,识别链路正常后,更换另一路的交换机,方式如上。重新cfgmgr。识别新的硬件,硬盘。确保链路正常。验证应用。(二):离线更换交换机,主机不重启1,停生产应用2,varyoffvg3,删除外接HDS的所有设备,两路全部删除掉命令如下:在每台主机上执行如下命令,删除2个fscsi,一般是fscsi0和fscsi1,两路全部删除5.8HDLM FOR AIX5.9以上HDLM FOR AIX更换两路
9、的交换机,重新cfgmgr,识别新的硬件,硬盘。确保链路正常。(三):离线更换交换机,主机重启1,停生产应用2,varyoffvg3,物理更换两路的交换机4,主机重启,自动扫描新的硬件,确保两路链路正常六:验证,起服务,测试数据验证五中的后两种方式需要如下动作,第一种方式不需要。1, varyonvg2, 起应用3, 验证数据七:风险性评估,最优方式选取在步骤五中,提到了三种方式更换交换机,就风险性方面,建议采用(二)离线更换交换机,主机不重启,但如果主机数量较多,不能一一在主机执行相关的HDLM命令,则可以采用(三)离线更换交换机,主机重启,该方式彻底,一次性到位。不好处在于主机重启会耽误时
10、间,有的主机重启可能需要漫长的等待时间,还可能重启后报硬件错误,这要注意。下面输出实际操作中的命令解析,采用(二)离线更换交换机,主机不重启,该情况为HDLM5.8 for AIX系统下:仅供可以参考# lspvhdisk0 005d0a1fa4 rootvg activehdisk1 0051eace80ae4a55 rootvg activehdisk2 0051eace88486bf5 Nonehdisk3 005d420de099d1d9 Nonehdisk6 none Nonehdisk7 none Nonedlmfdrv0 0051eace292ce720 datavgdlmfdr
11、v1 0051eacedc82eeb0 datavghdisk8 none Nonedlmfdrv2 0051eace42322b8a datavghdisk10 none Nonedlmfdrv3 0051eacee480c7d2 datavghdisk12 none Nonehdisk13 none Nonehdisk14 none Nonehdisk15 none None# lsdev -Cc diskdlmfdrv0 Available HDLM Driverdlmfdrv1 Available HDLM Driverdlmfdrv2 Available HDLM Driverdlm
12、fdrv3 Available HDLM Driverhdisk0 Available 1S-08-00-8,0 16 Bit LVD SCSI Disk Drivehdisk1 Available 1S-08-00-9,0 16 Bit LVD SCSI Disk Drivehdisk2 Available 1S-08-00-10,0 16 Bit LVD SCSI Disk Drivehdisk3 Available 1S-08-00-11,0 16 Bit LVD SCSI Disk Drivehdisk4 Defined 1H-08-01 Other FC SCSI Disk Driv
13、ehdisk5 Defined 1H-08-01 Other FC SCSI Disk Drivehdisk6 Available 11-08-01 Other FC SCSI Disk Drivehdisk7 Available 11-08-01 Other FC SCSI Disk Drivehdisk8 Available 1H-08-01 Other FC SCSI Disk Drivehdisk9 Defined 11-08-01 Other FC SCSI Disk Drivehdisk10 Available 1H-08-01 Other FC SCSI Disk Drivehd
14、isk11 Defined 11-08-01 Other FC SCSI Disk Drivehdisk12 Available 1H-08-01 Other FC SCSI Disk Drivehdisk13 Available 1H-08-01 Other FC SCSI Disk Drivehdisk14 Available 11-08-01 Other FC SCSI Disk Drivehdisk15 Available 11-08-01 Other FC SCSI Disk Drive# cd /usr/D*/bin# ./dlnkmgr view -sysHDLM Version
15、 : 05-80-/AService Pack Version :Load Balance : on(rr)Support Cluster :Elog Level : 3Elog File Size (KB) : 9900Number Of Elog Files : 2Trace Level : 0Trace File Size (KB) : 1000Number Of Trace Files : 4Path Health Checking : on(30)Auto Failback : offReservation Status : on(2)Intermittent Error Monit
16、or : offHDLM Manager Ver WakeupTimeAlive 05-80-/A 2010/11/11 17:59:56HDLM Alert Driver Ver WakeupTime ElogMem SizeAlive 05-80-/A 2010/11/11 17:58:55 4000HDLM Driver Ver WakeupTimeAlive 05-80-/A 2010/11/11 17:58:54License Type ExpirationPermanent -KAPL01001-I The HDLM command completed normally. Oper
17、ation name = view, complet9# ./dlnkmgr view -luProduct : 9500VSerialNumber : 4951LUs : 4iLU HDevName Device PathID Status0000 dlmfdrv2 hdisk8 Online hdisk14 Online0003 dlmfdrv3 hdisk10 Online hdisk15 Online0006 dlmfdrv0 hdisk6 Online hdisk12 Online0007 dlmfdrv1 hdisk7 Online hdisk13 OnlineKAPL01001-
18、I The HDLM command completed normally. Operation name = view, complet9# ./dlnkmgr view -pathPaths: OnlinePaths:PathStatus IO-Count IO-ErrorsOnline 0PathID PathName DskName e 08.11.21100.0006 HITACHI .DF600F .4951 0 08.1H.21100.0006 HITACHI .DF600F .4951 0 08.11.21100.0007 HITACHI .DF600F .4951 1 08.
19、1H.21100.0007 HITACHI .DF600F .4951 1 08.1H.21100.0000 HITACHI .DF600F .4951 2 08.11.21100.0000 HITACHI .DF600F .4951 2 08.1H.21100.0003 HITACHI .DF600F .4951 3 08.11.21100.0003 HITACHI .DF600F .4951 3KAPL01001-I The HDLM command completed normally. Operation name = view, complet8# lsdev -Cc adapter
20、ent0 Available 1L-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01)ent1 Available 1Z-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01)ent2 Available 14-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01)ent3 Available 1D-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01)fcs0 Available 1H-08 FC Adapterf
21、cs1 Available 11-08 FC Adapterfda0 Available 01-D1 Standard I/O Diskette Adapteride0 Available 1G-19 ATA/IDE Controller Devicelai0 Available 1p-00 GXT135P Graphics Adapterppa0 Available 01-R1 CHRP IEEE1284 (ECP) Parallel Port Adaptersa0 Available 01-S1 Standard I/O Serial Portsa1 Available 01-S2 Sta
22、ndard I/O Serial Portsa2 Available 01-S3 Standard I/O Serial Portscsi0 Available 1S-08 Wide/Ultra-3 SCSI I/O Controllerscsi1 Available 1S-09 Wide/Ultra-3 SCSI I/O Controllerscsi2 Available 1c-08 Wide/Fast-20 SCSI I/O Controllersioka0 Available 01-K1-00 Keyboard Adaptersiokma0 Available 01-K1 Keyboar
23、d/Mouse Adaptersioma0 Available 01-K1-01 Mouse Adaptersisioa0 Available 1V-08 PCI-X Dual Channel U320 SCSI RAID Adapter# ./dlnkmgr offline -hab 08.1HKAPL01005-W A parameter is invalid. Operation name = offline, parameter = -hab# ./dlnkmgr offline -hba 08.1HKAPL01055-I All the paths which pass the sp
24、ecified HBA will be changed to the O:KAPL01040-W The entered value is invalid. Re-enter y/n:KAPL01040-W The entered value is invalid. Re-enter y/n:yKAPL01056-I If you are sure that there would be no problem when all the paths wyKAPL01061-I 4 path(s) were successfully placed Offline(C); 0 path(s) wer
25、e not. e# ./dlmHBAdel fscsi0KAPL10620-I The dlmHBAdel utility completed normally.# ./dlnkmgr view -luProduct : 9500VSerialNumber : 4951LUs : 4iLU HDevName Device PathID Status0000 dlmfdrv2 hdisk14 Online0003 dlmfdrv3 hdisk15 Online0006 dlmfdrv0 hdisk6 Online0007 dlmfdrv1 hdisk7 OnlineKAPL01001-I The
26、 HDLM command completed normally. Operation name = view, complet7# rmdev -dl fscsi0 -Rhdisk4 deletedhdisk5 deletedrmt1 deletedrmt2 deletedhdisk8 deletedhdisk10 deletedhdisk12 deletedhdisk13 deletedfscsi0 deleted# ./dlmHBAdel fscsi1KAPL10620-I The dlmHBAdel utility completed normally.# rmdev -dl fscs
27、i1 -Rhdisk6 deletedhdisk7 deletedrmt3 deletedrmt4 deletedhdisk9 deletedhdisk11 deletedhdisk14 deletedhdisk15 deletedfscsi1 deleted# lsdev -Cc diskhdisk0 Available 1S-08-00-8,0 16 Bit LVD SCSI Disk Drivehdisk1 Available 1S-08-00-9,0 16 Bit LVD SCSI Disk Drivehdisk2 Available 1S-08-00-10,0 16 Bit LVD
28、SCSI Disk Drivehdisk3 Available 1S-08-00-11,0 16 Bit LVD SCSI Disk Drive到此为止,可以看到上面的输出中,没有HDS的外界磁盘了,此时就可以物理更换两路的交换机了。注意:可以仔细分析前后命令输出的区别更换完成后,cfgmgr,重新扫描硬件,会发现之前的盘又恢复为链路正常。如下:# ./dlnkmgr view -luProduct : 9500VSerialNumber : 4951LUs : 4iLU HDevName Device PathID Status0000 dlmfdrv2 hdisk8 Online hdis
29、k14 Online0003 dlmfdrv3 hdisk10 Online hdisk15 Online0006 dlmfdrv0 hdisk6 Online hdisk12 Online0007 dlmfdrv1 hdisk7 Online hdisk13 Online关注点:按照英文手册里提供的是在线更换交换机,在该实例中:若:# ./dlnkmgr offline -hba 08.1H# ./dlmHBAdel fscsi0# rmdev -dl fscsi0 -R又执行:# ./dlnkmgr offline -hba 08.11此时HDLM软件会提示报错,因为当前动作是将两路的链路全部置为:offline(C)状态,HDLM软件出于安全保护的需要,因而会提示报错,警告当前操作危险,不能做,要至少保证一路链路是online状态的。那么,可以跳过该步骤,直接执行下一命令,如下:# ./dlmHBAdel fscsi1# rmdev -dl fscsi1 -R专心-专注-专业