©FalconStorSoftware2007·AllRightsReserved飞康企业级CDP技术培训教程第三部分:容灾系统的安装部署过程刘智荣13911312911Roger.liu@falconstor.com.cnPAGE2UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation飞康CDP可实施的环境1.AIX2.HPUX(11.23版本前不得预先使用stripe条带,并且必须具备MIRRORDISK镜像功能)3.SolarisSVM4.VeritasFoundation5.LinuxLVM/MD6.WindowsServer7.OracleRAC(LVM模式/非ASM模式)8.其余数据库均可PAGE3UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation•实施流程•环境准备/CDP设置•AIX主机系统中有关安装和设置步骤•CDP系统策略配置•Disksafe安装及配置PAGE4UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation实施流程PAGE5UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation实施流程停止应用准备主机系统有关安装CDP资源分配主机数据卷镜像/卷参数后处理应用启动建立远程复制PAGE6UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation环境准备/飞康CDP设置PAGE7UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation(一)准备阶段工作1.CDP设备上架/连线2.Zoning划分3.进行数据备份/系统备份4.获取主机VG信息(名称/成员名称/成员大小)5.获取LV信息(名称/属组)6.主机HBA卡信息获取,WWPN获取7.为CDP分配IP地址(CDP和Console)8.CDP存储初始化和storagepool配置9.SANClient配置PAGE8UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation交换机Zoning划分FC交换机3主机4主机5CDP6存储7存储CDPZone1:(AIX1,CDP)CDPZone2:(AIX2,CDP)PAGE9UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation获取主机VG信息#lsvg–pvgname查询pv个数#lspvdiskname显示PV大小VG信息oravg--PV1=hdisk6PV2=hdisk7PV1=20416MB#bootinfo–shdisknamePV1=20490MBPAGE10UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation获取主机VGID信息#ls-l/dev/*vg*查询VGID信息PAGE11UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation获取主机LV信息#lsvg–lvgname查询lv个数LV信息对于裸设备应用:#ls–al/dev/lvname显示lv属性裸设备属组PAGE12UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation获取主机HBA卡WWPN信息#lsdev–Ccadapter|grepfcs#lscfg–avfcs0PAGE13UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation为飞康CDP/Console分配IP地址注*:需要连接公网的CDPIP地址需要连接公网的ConsoleIP地址PAGE14UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation设置CDP名称例:设置CDP主机名称为IPStorCDP_SHPAGE15UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation1、SSH登陆飞康CDP作Qlogic卡工作模式的设定FC卡的工作模式设置#ipstorstopall#ipstorconfigtgt/**/请选择Qlogic模式,NPIV模式需要SANSwitch支持#ipstorstartall2、飞康CDPConsole中设置HBA卡的工作模式PAGE16UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation通过Console按照事先约定的配置将IPStorCDP中相应的FC端口置为Target模式(100端口)或者Initiator模式(101端口)FC卡模式设置PAGE17UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentationSANCleint创建PAGE18UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentationCDP磁盘识别及初始化CDP磁盘识别CDP磁盘初始化PAGE19UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentationStoragepool创建PAGE20UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation注册licensePAGE21UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentationAIX主机系统中有关安装和设置步骤PAGE22UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation安装客户端软件#mount/mnt/cdrom#cp/mnt/cdrom/backup#cd/backup#installp–aFX-dipstordiskrteallPAGE23UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentationCDP为数据卷镜像分配对等容量datavg_disk1datavg_disk2appvg_disk1PAGE24UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation暂时选择‚否(N)”。等待所有资源创建完成之后统一进行分配。PAGE25UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation建立一致性组,并分配SANRerource–组创建PAGE26UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation建立一致性组,并分配SANRerource–资源加入Datavg中3个san资源加入组中PAGE27UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation将组成员分配给应用服务器(Client)PAGE28UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation在应用主机进行CDP磁盘识别#cfgmgr–vlfcs0(或者fcs0取决于实际FC卡连接)扫描新增设备/**/HACMP环境只扫描主节点#lsdev–CcdiskPAGE29UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation将CDP磁盘加入数据卷并镜像#extendvgoravghdiskn1#extendvgoravghdiskn2/**/将hdiskn1,hdiskn2,加入到现在的DataVG中#mirrorvg-m–soravghdiskn1hdiskn2hdiskn3/**/镜像dataVG中的所有lvMirrorvg参数:-s(当采用在线镜像时,请务必使用此参数)-S提醒:采用-S时,Mirror时长必须提前估算!PAGE30UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentation卷镜像参数后处理为确保灾备系统不会影响生产系统的运行,必须进行镜像参数的后处理。#lslv–mlvname检查lvmirror关系#chvg–Qnoravg修改Quorum=no#/usr/sbin/chlv–d’ps’lvname/**/修改卷读取的优先级Schedulepolicy,所有卷都执行一次,一般编写一个批处理文件执行注意:当VG中lv上创建了文件系统,在修改lv的读写策略时,需要把文件系统umount#umount/file1#umount/file2PAGE31UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentationStandby节点:#exportvgoravg#cfgmgr–vlfcs0(或者fcs0取决于实际FC卡连接)#importvg–VvgID–yoravg-nhdiskn1#varyonvg–noravg#lsvgoravg检查vg属性,Quorum值#chvg–a’n’–Q’n’datavg/**/取消在重启动时自动加载datavg并把vgQuorum制为disable#lslvlvname检查lv读写属性#chlv–d‘ps’lvname#chown–Rowner:group/dev/rlvname/**/对于裸设备应用环境需修改lv裸设备属组#varyoffvgoravg卷镜像参数后处理-HACMP环境中,进行双机参数传递Active节点:#varyoffvgoravgPAGE32UsageRightsUSonly©FalconStorSoftware2007·AllRightsReservedNameofPresentationHACMP启动,后台数据同步PAGE33UsageRightsUSonly©FalconStorSoftware2007·AllR