环境下的SAN存储及磁带备份方案规划实施与配置的经验分享_第1页
环境下的SAN存储及磁带备份方案规划实施与配置的经验分享_第2页
环境下的SAN存储及磁带备份方案规划实施与配置的经验分享_第3页
环境下的SAN存储及磁带备份方案规划实施与配置的经验分享_第4页
环境下的SAN存储及磁带备份方案规划实施与配置的经验分享_第5页
已阅读5页,还剩98页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

环境下的SAN存储及磁带备份方案规划实施与配置的经验分享第1页/共125页内容1)光纤存储网2)存储产品线简介3)P服务器的存储方案简介3)磁盘设备DS4000AIX性能优化DS4000高级功能P系列服务器的磁盘存储方案4)磁带设备硬件介绍硬件连接带库的配置连接到AIXAIX中使用性能优化P系列服务器的备份方案第2页/共125页开放式软件系列虚拟和管理软件解决存储管理问题的综合性软件存储产品线简介DS家族业内性能最好、功能最完善、性价比最佳磁盘存储系统

NAS家族业界领先的网络存储解决方案磁带家族数据存档,备份和灾难恢复解决方案存储网络家族

存储区域网络解决方案黄忠马超赵云关羽张飞第3页/共125页存储产品线简介-磁盘产品DS系列存储产品简介DS3000DS4000DS6000DS8000统一的产品系列价格和封装方面的新标准功能、性能、TCO方面的新标准新的入门级产品简化存储的底层IT基础架构及其管理,以有效提高响应业务变化的能力,同时降低成本及复杂性确保业务连续性、安全和数据持久性对信息生命周期进行有效管理,充分发挥其业务价值通用管理平台

通用拷贝服务虚拟化引人注目的价格业界领先的服务和支持能力IBMTotalStorageDS产品系列的创新可以帮助您:企业级存储产品连续性第四代鲨鱼闪亮登场第4页/共125页存储产品线简介-磁盘产品DS4000系列Entry-levelMidrangeHigh-endDS4800ThistablerepresentsgeneralpositioningandnottechnicalcapabilitiesDS4700DS4500DS4200DS4100DS43004Gbps第5页/共125页存储产品线简介-磁带产品-50年的技术领先195234801984MagstarVirtualTapeServer1993AutomatedTapeLibrary349019893490E199135901995199718track36track36trackExtended128trackHighPerformance19523590SiloAttach19963494VTSC12-C141996A503590ESCONController1998VTSEHPOVTSHighPerformance2000LTO3590-EUltra-A601999HighSpeed-Capacity互连接性高性能高容量高可靠性高可用性3592第6页/共125页存储产品线简介-磁带产品-两种磁带格式Magstar磁带之星高端技术采用磁带RAID技术高可靠性支持所有平台LTO蓝鲸开放技术大容量高速度支持所有开放平台第7页/共125页存储产品线简介-磁带产品-Magstar-独有的磁带RAID技术在3590E磁带驱动器中将数据写入磁带取出磁带,在磁带介质上打一个直径1.25毫米的孔该孔大约丢失了100,000位的数据,跨32条数据轨道将该磁带重新装入磁带驱动器内成功地、没有任何错误地进行了读数据操作第8页/共125页存储产品线简介-磁带产品-LTO-Ultrium第9页/共125页存储产品线简介-磁带产品-磁带库TS3500TS3400TS3300TS3310TS3100TS2230-drv3494第10页/共125页存储产品线简介-虚拟磁带库产品TS7500系列TS7700系列第11页/共125页P服务器的存储方案简介存储产品的源动力基于信息的生命周期管理IT架构的简化保证业务的连续性P服务器被存储产品广泛支持业界最完善的系统之一完全在线配置先进的LVM文件系统扩充(配合磁盘DCE,DVE)动态的镜像内置彻底支持SAN(没有永久绑定问题)支持SANbootD-LPar(Automation/previsioning)……两者的结合可以形成很多解决方案HAILM/HSMBACKUP/ARCHIVEDATAREPLECATIONAutomation/previsioning……产品实际操作引深/深化解决方案第12页/共125页光纤存储网-内容产品介绍硬件安装操作界面集联组网划分zone第13页/共125页光纤存储网-产品介绍第14页/共125页光纤存储网-硬件安装网口,用于配置SAN第15页/共125页光纤存储网-交换机初始化EthernetIPAddress[7]:EnternewethernetIPaddress:EthernetSubnetmask[]:Enternewethernetsubnetmask:FibreChannelIPAddress[none]:EnternewFibreChannelIPaddressifdesired:FibreChannelSubnetMask[none]:EnternewFibreChannelsubnetmaskifdesired:GatewayAddress[none]:Enternewgatewayaddress:Chapter2.ImplementinganIBMTotalStorageSANSwitch35SetIPaddressnow?[y=setnow,n=nextreboot]:Enter“y”tosetnow:Unixtip/dev/ttyb-9600Windows第16页/共125页光纤存储网-操作界面-CLI用于大型配置第17页/共125页光纤存储网-操作界面-web界面更直观方便第18页/共125页光纤存储网-集联组网第19页/共125页光纤存储网-划分zoneZone概念:一种虚拟区域的概念Zone分类:Switch/PortLevelZoningWWNLevelZoningAL_PALevelZoningMixedLevelZoning第20页/共125页光纤存储网-端口zone举例zonecreate"z1","1,0;1,1;1,2;1,3"zonecreate"z2","1,4;1,5;1,6;1,7"zonecreate"z3","1,8;1,9;1,10;1,11"zonecreate"z4","1,12;1,13;1,14;1,15"cfgcreate"cfgbase","z1;z2;z3;z4"cfgsavecfgenable"cfgbase“适用于:设备经常更换的场合可以随意更换设备,特别是在更换光纤卡的情况下,不需要修改SAN配置,发挥优势…第21页/共125页光纤存储网-wwnzone举例aliCreate"p570c_1","10:00:00:00:C9:46:08:96"aliCreate"p570c_2","10:00:00:00:C9:46:11:F1"aliCreate"p570d_1","10:00:00:00:C9:44:EA:AD"aliCreate"p570d_2","10:00:00:00:C9:45:06:6E"aliCreate"F600_1_A","20:06:00:a0:b8:16:7d:1d"aliCreate"F600_1_B","20:07:00:a0:b8:16:7d:1d"aliCreate"F600_2_A","20:06:00:a0:b8:13:a0:8d"aliCreate"F600_2_B","20:07:00:a0:b8:13:a0:8d"zoneCreate"z1_c_5","p570c_1;F600_1_A"zoneCreate"z1_c_6","p570c_2;F600_1_B"zoneCreate"z1_c_7","p570d_1;F600_1_A"zoneCreate"z1_c_8","p570d_2;F600_1_B"zoneCreate"z2_c_5","p570c_1;F600_2_A"zoneCreate"z2_c_6","p570c_2;F600_2_B"zoneCreate"z2_c_7","p570d_1;F600_2_A"zoneCreate"z2_c_8","p570d_2;F600_2_B"cfgadd"cfg0603","z1_c_5;z1_c_6;z1_c_7;z1_c_8;z2_c_5;z2_c_6;z2_c_7;z2_c_8"cfgsavecfgenable"cfg0603"适用于:设备位置经常更换的场合特别是在将设备从一个物理位置移动到其他物理位置的时候,不需要修改SAN配置,发挥优势…第22页/共125页磁盘设备(以DS4000为例)硬件连接划分盘配置AIX主机性能优化第23页/共125页DS4000-硬件连接第24页/共125页DS4000-划分盘对应pv第25页/共125页DS4000-配置AIX主机&映射第26页/共125页AIX连接DS4000-内容硬件连接驱动程序第27页/共125页AIX连接DS4000-硬件连接-推荐的单机连接方式第28页/共125页AIX连接DS4000-硬件连接-推荐的HACMP连接方式第29页/共125页AIX连接DS4000-硬件连接-连接限制1AIXhosts(orLPARs)cansupportmultiplehostbusadapters(HBAs)andFAStTdevices.However,thereisarestrictiononthenumberofHBAsthatcanbeconnectedtoasingleFAStTstorageserver.YoucanconfigureuptotwoHBAsperpartitionanduptotwopartitionsperFAStTstorageserver.AdditionalHBAscanbeaddedforadditionalFAStTstorageserversandotherSANdevices,uptothelimitsofyourspecificserverplatform.第30页/共125页AIX连接DS4000-硬件连接-连接限制2Direct-attachconfigurationsarerestrictedtosingle-initiatorconfigurationsonly.YoucannotusethismethodinaHACMPconfiguration.SingleHBAconfigurationsareallowed,buteachsingleHBAconfigurationrequiresthatbothcontrollersintheFAStTbeconnectedtotheHBA,eitherthroughaswitchordaisy-chain(direct-attachonly).Iftheyareconnectedthroughaswitch,bothcontrollersmustbewithinthesameSANzoneastheHBA.Single-switchconfigurationsareallowed,buteachHBAandFAStTcontrollercombinationmustbeinaseparateSANzone.第31页/共125页AIX连接DS4000-硬件连接-连接限制3Otherstoragedevices,suchastapedevicesorotherdiskstorage,mustbeconnectedthroughseparateHBAsandSANzones.第32页/共125页AIX连接DS4000-驱动程序第33页/共125页AIX连接DS4000-驱动程序darTheFAStTstorageserverdeviceThenumberofdarsshouldbeequaltothenumberofFAStTboxesattachedtothesystemSomeFAStTserveroptionscouldbesetbychangingdardeviceattributesdacThecontrollersontheFAStTserversEachFAStTservershouldhave2controllersSomecontrolleroptionscouldbesetbychangingdacdeviceattributes第34页/共125页AIX连接DS4000-驱动程序hdiskFAStTLUNsmappedtoAIXThenumberofhdisksshouldbeequaltothenumberofmappedLUNsSomeLUNoptionscouldbesetbychanginghdiskdeviceattributes第35页/共125页DS4000-性能优化-内容磁盘扩展柜RAID盘阵SAN主机操作系统应用第36页/共125页磁盘按照对性能的要求选择磁盘——价格与性能的权衡第37页/共125页扩展柜正确连接扩展柜——避免大材小用第38页/共125页RAID按照对性能的要求选择RAID——空间与性能的权衡第39页/共125页RAID按照对性能的要求选择RAID——空间与性能的权衡第40页/共125页盘阵-优化1-磁盘路径负载均衡同一个RAID中盘,会同时访问。第41页/共125页盘阵-优化2-控制器间负载均衡让多控制器同时工作第42页/共125页盘阵-优化3-缓存块大小BestPractice:Setthecacheblocksizeto4KfortheDS4000systemnormallyfortransactionintenseenvironments.BestPractice:Setthecacheblocksizeto16KfortheDS4000systemnormallyforthroughputintenseenvironmentsTip:Throughputoperationsthoughimpactedbysmallercacheblocksizecanstillperformreasonableifallothereffortshavebeenaccountedfor.Transactionbasedoperationsarenormallythehigherconcern,andthereforeshouldbethefocusforsettingtheserverwidevaluesifapplicable.第43页/共125页盘阵-优化4-CacheflushcontrolsettingsWiththecacheflushsettingsyoucandeterminewhatlevelofwritecacheusagecanbereachedbeforetheserverwillstarttoflushthedatatodisks,andatwhatleveltheflushingwillstop.BestPractice:Startwith“Start/Stopflushsettingsof50/50,andadjustfromthere.Alwayskeepthemequaltoeachother.第44页/共125页盘阵-优化5-LogicaldrivesegmentsThesegmentsizeisthemaximumamountofdatathatiswrittenorreadfromadiskperoperationbeforethenextdiskinthearrayisused.BestPractice:WiththeDS4000StorageServeritisrecommendedthatthesegmentsizebe64KBto128KBformosthightransactionworkloads.BestPractice:Inthethroughputenvironmentyoudesirethestripesizetobeequalto,oraevenmultipleofthehostIOsize.第45页/共125页盘阵-优化6-cacheread-aheadmultiplierThisparameterisusedtoincreasethenumberofsegmentsthatarereadintocachetoincreasetheamountofdatathatisreadilyavailabletopresenttothehostforsequentialIOrequests.ToavoidexcessreadIOsintherandomsmalltransactionintenseenvironmentsyoushoulddisablethecacheread-aheadmultiplierforthelogicaldrivebysettingitto“0”.BestPractice:ForhighthroughputwithsequentialIO,enablecacheread-aheadmultiplier.ForhightransactionswithrandomIO,disableit.第46页/共125页盘阵-影响性能的因素MediaScanBestPractice:Settingmediascanto30dayshasbeenfoundtobeagoodgeneralallaroundvaluetoaidinkeepingmediaclearandserverbackgroundprocessloadatanacceptablelevel.DefragmentinganarrayImportant:Oncethisprocedureisstarted,itcannotbestopped;andnoconfigurationchangescanbeperformedonthearraywhileitisrunning.CopybackCopybackreferstotheprocessofcopyingdatafromahot-sparedrive(usedasastandbyincaseofpossibledrivefailure)toareplacementdrive.Whenyouphysicallyreplacethefaileddrive,acopybackoperationautomaticallyoccursfromthehot-sparedrivetothereplacementdrive.InitializationThisisthedeletionofalldataonadrive,logicaldrive,orarray.Inpreviousversionsofthestoragemanagementsoftware,thiswascalledformat.第47页/共125页盘阵-影响性能的因素DynamicSegmentSizing(DSS)DynamicSegmentSizing(DSS)describesamodificationoperationwherethesegmentsizeforaselectlogicaldriveischangedtoincreaseordecreasethenumberofdatablocksthatthesegmentsizecontains.Asegmentistheamountofdatathatthecontrollerwritesonasingledriveinalogicaldrivebeforewritingdataonthenextdrive.DynamicReconstructionRate(DRR)DynamicReconstructionRate(DRR)isamodificationoperationwheredataandparitywithinanarrayareusedtoregeneratethedatatoareplacementdriveorahotsparedrive.OnlydataonaRAID-1,-3,or-5logicaldrivecanbereconstructed.DynamicRAIDLevelMigration(DRM)DynamicRAIDLevelMigration(DRM)describesamodificationoperationusedtochangetheRAIDlevelonaselectedarray.TheRAIDlevelselecteddeterminesthelevelofperformanceandparityofanarray.第48页/共125页盘阵-影响性能的因素DynamicCapacityExpansion(DCE)DynamicCapacityExpansion(DCE)describesamodificationoperationusedtoincreasetheavailablefreecapacityonanarray.Theincreaseincapacityisachievedbyselectingunassigneddrivestobeaddedtothearray.DynamiclogicaldriveExpansion(DVE)DynamiclogicaldriveExpansion(DVE)isamodificationoperationusedtoincreasethecapacityofastandardlogicaldriveoraFlashCopyrepositorylogicaldrive.TheincreaseincapacityisachievedbyusingthefreecapacityavailableonthearrayofthestandardorFlashCopyrepositorylogicaldrive.第49页/共125页SAN划zone隔离,VSAN隔离,交换机隔离用硬件zone用“2点”划zone第50页/共125页主机-HBA卡负载均衡让多HBA卡同时工作第51页/共125页主机-PCI负载均衡分散到不同的PCI总线上第52页/共125页操作系统利用各种OS的LVM将一个LV分散到不同的HBA卡、光路、控制器。RANGEofphysicalvolumes[maximum]调整IO块大小HBAQueuedepthThequeuedepthisthemaximumnumberofcommandsthatcanbequeuedonthesystematthesametime.TheDS4000controllerfirmwareversion05.30.xx.xxorearlier,thequeuedepthis512;FortheDS4000controllerfirmwareversions06.1x.xx.xxor05.4x.xx.xx,thequeuedepthis2048.Thisisrepresents1024percontroller.TheformulaforthecorrectqueuedepthonthehostHBAforthisleveloffirmwarecodeis:2048/(numberofhosts*LUNsperhost)Forexample,asystemwithfourhosts,eachwith32LUNs,wouldhaveamaximumqueuedepthof16:2048/(4*32)=16.第53页/共125页应用使用裸卷,要调整I/O块大小区分I/O的随机性质数据库应用是随机I/O媒体、备份/恢复、归档应用是连续I/O区分I/O的读写性质媒体是读占多备份/恢复、归档应用是写占多数据库根据表的性质优化表空间、容器第54页/共125页调优没有“绝对值”有时需要权衡利弊第55页/共125页DS4000高级功能-FlashCopyApoint-in-time(PiT)imageofavolumeLogicalequivalentofaphysicalcopyFeatures:NearinstantaneouscopyRequireslessdiskspacethanafullcopyMappabletohostCanbereadfrom,orwrittentoPrimaryuses:PiTbackupimageFile/volumerestorationDatamining/analysisBaseVolumeSnapshotReserveFlashCopyVolumeA’BCABCC’ACPhysical Logical第56页/共125页DS4000高级功能-VolumeCopyComplete(byte-by-byte)PiTreplicationofonelogicaldrive(source)toanother(target)withinastoragesystemTargetlogicaldrivealsoreferredtoasaclonePrimaryuses:FullPiTdatasetfor

analysis,mining,testing,backupDesignedtohelpreduceI/Ocontentionon

theprimarylogicaldriveProductionServerAnalysisServerPiT

Clone第57页/共125页DS4000高级功能-EnhancedRemoteMirroringStorage-baseddatareplicationDesignedtoprovideongoing,real-timereplicationofalogicaldrivefromoneDS4000storagesubsystemtoanotherThreemirroringmodesMetroMirrorGlobalCopyGlobalMirrorPrimaryuses:DisasterrecoveryCentralizebackupdataCentralizedatamining/analysisA1B1

mirrorA1

mirrorB1Cross

mirroringSAN/WAN第58页/共125页P系列服务器的磁盘存储方案-LVM环境IBMIBMP650_08p650_128c16g1.45

8c32g1.45AIX5LV5.3ML03

AIX5LV5.3ML03HACMPV5.2

HACMPV5.2HACMP/XDGLVMV5.2

HACMP/XDGLVMV5.2Oracle

Oracle2105-H16光纤交换机2109-B32光纤交换机DS4500-04DS4500-0773.4GBx1473.4GBx14本地生产中心第59页/共125页P系列服务器的磁盘存储方案-LVMTopologyPV1hdisk11P650_08P650_12GuangzhouFoshanPV2hdisk12PV4hdisk10PV3hdisk9Copy#1Copy#2ApplicationOrFilesystemTCP/IPWAN,Net_XD_data_01TCP/IPWAN,Net_XD_ip_01352843ApplicationOrFilesystem第60页/共125页P系列服务器的磁盘存储方案-GLVM环境IBMIBMP650_08HACMP/XDDataNetworkp650_128c16g1.458c32g1.45AIX5LV5.3ML03HACMP/XDipNetworkAIX5LV5.3ML03HACMPV5.2HACMPV5.2HACMP/XDGLVMV5.2HACMP/XDGLVMV5.2OracleOracle2105-H16光纤交换机2109-B32光纤交换机DS4500-04DS4500-0773.4GBx1473.4GBx14本地生产中心异地容灾中心第61页/共125页P系列服务器的磁盘存储方案-GLVMTopologyPV1hdisk11P650_08P650_12GuangzhouFoshanPV2hdisk12PV4hdisk5PV3hdisk4Copy#1Copy#2ApplicationOrFilesystemAIXLVMRPVclientdevicedriverRPVserverkernelextensionPV3hdisk13PV4hdisk14VirtualCopy#2TCP/IPWAN,Net_XD_data_01RPVClientsRPVServersPV1hdisk8PV2hdisk9VirtualCopy#1RPVServersRPVClientsTCP/IPWAN,Net_XD_ip_01352843第62页/共125页P系列服务器的磁盘存储方案-GlobalMirror环境IBMIBMP650_08p650_128c16g1.458c32g1.45AIX5LV5.3ML03AIX5LV5.3ML03HACMPV5.2HACMPV5.2HACMP/XDGLVMV5.2HACMP/XDGLVMV5.2OracleOracle2105-H16光纤交换机2109-B32光纤交换机DS4500-04DS4500-0773.4GBx1473.4GBx14本地生产中心异地容灾中心第63页/共125页P系列服务器的磁盘存储方案-

GlobalMirrorTopologyPV1hdisk11P650_08P650_12GuangzhouFoshanPV2hdisk12PV4hdisk10PV3hdisk9Copy#1Copy#2ApplicationOrFilesystemTCP/IPWAN,Net_XD_data_01TCP/IPWAN,Net_XD_ip_01352843ApplicationOrFilesystemSANnetwork第64页/共125页磁带-内容硬件介绍硬件连接带库的配置连接到AIXAIX中使用P系列服务器的备份方案第65页/共125页磁带-硬件介绍第66页/共125页磁带-硬件介绍第67页/共125页磁带-硬件连接-接口SCSISASFC第68页/共125页IBMUltrium1的接口

Ultra2/WideLowVoltageDifferential(LVD)SCSIusingHD68connectorUltra/WideHighVoltageDifferential(HVD)SCSIusingHD68connectorFC-AL,1GbitusingSCconnectorSCSIdrivesinstalledin3584usesVHDCIconnectorIBMUltrium2的接口

Ultra160LowVoltageDifferential(LVD)SCSIusingHD68connectorUltra/WideHighVoltageDifferential(HVD)SCSIusingHD68connectorSwitchedfabric2GbitusingLCconnectorSCSIdrivesinstalledintheTS3500useVHDCIconnectors.磁带-硬件连接-接口第69页/共125页IBMUltrium3的接口

Ultra160LowVoltageDifferential(LVD)SCSIusingHD68connector.3GbpsSerial-AttachedSCSI(SAS)Switchedfabric2or4GbitusingLCconnector.SCSIdrivesinstalledin3584useVHDCIconnector.IBMUltrium4的接口

Ultra160SCSILVDusingHD68connector3GbpsdualportSAS4GbpsnativeFibreChannel磁带-硬件连接-接口第70页/共125页磁带-硬件连接-SCSI寻找支持的SCSI卡:/servers/storage/tape/resource-library.html#interoperability第71页/共125页磁带-硬件连接-SCSI第72页/共125页磁带-硬件连接-FCFora50-microncable:–1Gbitlinkspeed=upto500m(1640ft.)–2Gbitlinkspeed=upto300m(984ft.)–4Gbitlinkspeed=upto150m(492ft.)

Fora62.5-microncable:–1Gbitlinkspeed=175m(574ft.)–2Gbitspeedlink=150m(492ft.)–4Gbitspeedlink=70m(230ft.)第73页/共125页磁带-硬件连接-FC寻找支持的HBA卡:/servers/storage/support/config/hba/index.wss第74页/共125页磁带-硬件连接-FC第75页/共125页磁带-硬件连接-FC避免和其他设备共享HBA虽然是LPort,仍然可以使用WWNZone第76页/共125页磁带-硬件连接-SAS磁带库支持的(暂时没有AIX上的)HBA卡:LSILogicSAS3800XIBMSASHBAControllermodel25R8060第77页/共125页磁带-带库的配置-管理界面-controlpanel第78页/共125页磁带-带库的配置-管理界面-web第79页/共125页磁带-带库的配置-逻辑带库第80页/共125页磁带-带库的配置-逻辑带库第81页/共125页磁带-连接到AIX设备驱动程序:Atape.driver安装设备驱动程序:#smittyinstallp

或:#installp-acXd/tmp/Atape.x.x.x.binAtape.driver#lslpp-lAtape.driverFilesetLevelStateDescription----------------------------------------------------------------------------Path:/usr/lib/objreposAtape.driverCOMMITTEDIBMAIXEnhancedTapeandMediumChangerDeviceDriver#cfgmgr#lsdev-Cctapesmc0Available14-08-00-6,0IBM3581/2/3LibraryMediumChangerrmt0Available14-08-00-0,0IBM3580UltriumTapeDrive第82页/共125页磁带-AIX中使用-操作系统和系统程序的备份-mksysb备份和恢复是系统管理员经常要做的事情,

主要包括rootvg备份和用户数据备份.

1.

操作系统和系统程序的备份:

将一盘新磁带或无用磁带插入磁带机

#tctl

-f

/dev/rmt0

rewind

#smit

mksysb

在"备份设备或文件"中添入"/dev/rmt0"后回车.

系统会运行很长时间,

等到屏幕显示OK后拿出磁带.

这时候,

系统备份完成.

注意:

mksysb仅备份rootvg中已安装的文件系统.

2.

恢复

·

启动机器进入维护模式

参见安装手册,

当出现"Welcome

to

Base

Operating

System

Installation

and

Maintanence"时,

选3

"Start

Maintenance

Mode

for

System

Recovery"

·

恢复系统

继续选4

"Install

from

a

System

Backup"

出现"Choose

mksysb

Device"画面,

选"/dev/rmt0"并插入磁带后回车.这时候,

系统自动恢复操作系统.

第83页/共125页磁带-AIX中使用-用户数据备份-cpiocpio复制当前目录中所有文件到磁带设备/dev/rmt0,请输入:[root@p615#]ls|cpio-oc>/dev/rmt01blocks[root@p615#]mkdirout[root@p615#]cdout[root@p615#]ls[root@p615#]cpio-icd</dev/rmt01blocks[root@p615#]lsaaabookscpiolost+found第84页/共125页磁带-AIX中使用-用户数据备份-dddd[root@p615#]lsaaabooksout[root@p615#]ddif=./aaaof=/dev/rmt00+1recordsin.0+1recordsout.[root@p615#][root@p615#]cdout[root@p615#]ls[root@p615#]ddif=/dev/rmt0of=./aaaa0+1recordsin.0+1recordsout.[root@p615#]lsaaaa[root@p615#]moreaaaaaaaaaaa第85页/共125页磁带-AIX中使用-用户数据备份-tartar[root@p615#]tar-cvf/dev/rmt0/fsyanxua/fsyanxua/fsyanxu/aaa1blocks.a/fsyanxu/outa/fsyanxu/out/aaaa1blocks.a/fsyanxu/booksa/fsyanxu/books/(SG24-6502-01)UsingIBMLTOUltriumwithOpenSystems.pdf13314blocks.a/fsyanxu/books/(SG24-6502-02)ImplementingIBMTapeinUNIXSystems.pdf15242blocks.a/fsyanxu/books/(SG24-6502-03)ImplementingIBMTapeinUNIXSystems.pdf14499blocks.a/fsyanxu/books/(SG24-6502-04)ImplementingIBMTapeinUNIXSystems.pdf36191blocks.[root@p615#]tar-tvf/dev/rmt0[root@p615#]tar–xvf/dev/rmt0第86页/共125页磁带-AIX中使用-用户数据备份-paxpax[root@p615#]lsaaabookslost+found[root@p615#]pax-wf/dev/rmt0-xpax*[root@p615#][root@p615#]pax-f/dev/rmt0-xpaxaaabooksbooks/(SG24-4409-02)GuidetoSharingandPartitioningIBMTapeLibraryData.pdfbooks/(SG24-4632-00)IBMTotalStorageEnterpriseTape-APracticalGuide.pdfbooks/(SG24-5946-02)TheIBMTotalStorageTapeLibrariesGuideforOpenSystems.pdfbooks/(SG24-6115-01)VirtualTapeServerPlanningandImplementationGuide.pdflost+found[root@p615#]mkdirout[root@p615#]cdout[root@p615#]ls[root@p615#]pax-rf/dev/rmt0-xpax[root@p615#]lsaaabookslost+found[root@p615#]pwd/fsyanxu/out第87页/共125页磁带-AIX中使用-backup/restorebackup/retore[root@p615#]lsaaabooks[root@p615#]ls|backup-if/dev/rmt0Mountvolume1on/dev/rmt0.PressEntertocontinue.[root@p615#]restore-Tf/dev/rmt0Pleasemountvolume1on/dev/rmt0.PresstheEnterkeytocontinue.Newvolumeon/dev/rmt0:Clustersizeis51200bytes(100blocks).Thevolumenumberis1.Thebackupdateis:TueAug2115:18:31BEIST2007Filesarebackedupbyname.Theuserisroot.aaabooksThenumberofarchivedfilesis2.[root@p615#]mkdirout[root@p615#]cdout[root@p615#]ls[root@p615#]restore-xvqf/dev/rmt0*Newvolumeon/dev/rmt0:Clustersizeis51200bytes(100blocks).Thevolumenumberis1.Thebackupdateis:TueAug2115:18:31BEIST2007Filesarebackedupbyname.Theuserisroot.x9aaax0booksThetotalsizeis9bytes.Thenumberofrestoredfilesis2.[root@p615#]lsaaabooks[root@p615#]第88页/共125页磁带-AIX中使用-backsnap[root@p615#]lsvg-lrootvgrootvg:LVNAMETYPELPsPPsPVsLVSTATEMOUNTPOINThd5boot111closed/syncdN/Ahd6paging881open/syncdN/A……lvyanxujfs2111open/syncd/fsyanxufslv06jfs2111open/syncdN/A(以前建立的snapshot)[root@p615#]backsnap-R-m/fsyanxu_snap-ssize=6M-i-f/dev/rmt0/fsyanxuSnapshotforfilesystem/fsyanxucreatedon/dev/fslv07Mountvolume1on/dev/rmt0.PressEntertocontinue.rmlv:Logicalvolumefslv06isremoved.rmlv:Logicalvolumefslv07isremoved.第89页/共125页磁带-AIX中使用-backsnap(1)backsnap[root@p615#]lsvg-lrootvgrootvg:LVNAMETYPELPsPPsPVsLVSTATEMOUNTPOINT……lvyanxujfs2111open/syncd/fsyanxu[root@p615#]backsnap-m/fsyanxu_snap-ssize=6M-i-f/dev/rmt0/fsyanxuSnapshotforfilesystem/fsyanxucreatedon/dev/fslv06Mountvolume1on/dev/rmt0.PressEntertocontinue.[root@p615#]lsvg-lrootvgrootvg:LVNAMETYPELPsPPsPVsLVSTATEMOUNTPOINT……lvyanxujfs2111open/syncd/fsyanxufslv06jfs2111open/syncdN/A[root@p615#]snapshot-q/fsyanxuSnapshotsfor/fsyanxuCurrentLocation512-blocksFreeTime*/dev/fslv06131072130304TueAug2116:02:57BEIST2007第90页/共125页磁带-AIX中使用-backsnap(2)[root@p615#]pwd/fsyanxu[root@p615#]lsaaabooks[root@p615#]viaaa[root@p615#]lsaaabooks[root@p615#]moreaaanewnewnew[root@p615#]mount-osnapshot/dev/fslv06/fsyanxu_snap[root@p615#]cd/fsyanxu_snap[root@p615#]lsaaabooks[root@p615#]moreaaaaaaaaaa[root@p615#]cd..[root@p615#]umount/fsyanxu_snap第91页/共125页磁带-AIX中使用-backsnap(3)[root@p615#]restore-xvf/dev/rmt0Pleasemountvolume1on/dev/rmt0.PresstheEnterkeytocontinue.Newvolumeon/dev/rmt0:Clustersizeis51200bytes(100blocks).Thevolumenumberis1.Thebackupdateis:TueAug2115:41:57BEIST2007Filesarebackedupbyname.Theuserisroot.x0.x9./aaax0./outx9./out/aaax0./out/booksx0./booksx6816309./books/(SG24-6502-01)UsingIBMLTOUltriumwithOpenSystems.pdfx7803492./books/(SG24-6502-02)ImplementingIBMTapeinUNIXSystems.pdfx7423307./books/(SG24-6502-03)Implement

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论