您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 公司方案 > vg镜像的方法将数据转移到新存储设备
标题:在AIX中如何使用vg镜像的方法将数据转移到新存储设备产品:P-Server,DS4000,DS6000,DS8000主机平台:IBMeServerpSerise操作系统:AIX其他软件版本:N/A随着设备的更新,用户会经常遇到数据转移的问题。如何将老的存储设备上的数据转移到新的存储设备上呢?我们下面将举例子,讲解如何使用AIX的vg镜像的方法实现。mirrorvg功能可以将一个vg中的所有lv都进行mirror。mirror的目的地盘必须在同一个vg中。如果将一个vg中的所有逻辑卷进行mklvcopy,效果等同于mirrorvg。{smit法:smitvg/SetCharacteristicsofaVolumeGroup/AddaPhysicalVolumetoaVolumeGroup}现有的环境:我们有2、1)本地磁盘(需要转储的源盘):pv:hdisk1vg:vg-locallv:lv-localfs:/mnt/lv-local2、2)fastt上提供(与本实验无关):pv:hdisk2;hdisk3vg:vg-fastt600lv:lv-fastt600-1fs:/mnt/lv-fastt600-12、3)fastt上提供(需要转储的目的)提供了一个裸盘:pv:hdisk4我们下面的操作是将数据从原始位置pv:hdisk1,移动到fastt上提供(需要转储的目的)提供了一个盘pv:hdisk4上。我们会利用IBMfastt的管理软件观察目的盘hdisk4的流量。还要验证在这个过程中数据的访问是否中断以及移动的效率如何。先将hdisk4上面的数据毁掉p615:/tar-cvf/dev/hdisk4/etca/etc/test/b31blocks.a/etc/test/b41blocks.a/etc/test/b51blocks.a/etc/inittab.tsm8blocks.……检验是否毁掉p615:/tar–tvf/dev/hdisk4-rw-r--r--0030Oct2510:21:102004/etc/test/b4-rw-r--r--0031Oct2510:21:292004/etc/test/b5-rw-------003608Dec3011:17:072004/etc/inittab.tsmdrwxr-xr-x000Jul1610:44:152004/etc/tivready/……查看当前情况,建立模拟环境p615:/lsvg-pvg-localvg-local:PV_NAMEPVSTATETOTALPPsFREEPPsFREEDISTRIBUTIONhdisk1active867886721736..1730..1735..1735..1736p615:/lspvhdisk0005c39ff63baaa57rootvgactivehdisk1005c39ffbf1771fcvg-localactivehdisk4noneNonehdisk20053f61fd0b7ca1evg-fastt600activehdisk30053f5ffd0efed59vg-fastt600active为了观察fastt上的I/O情况,我们用StorageManager/StorageSubsystem/MonitorPerformance注:LogicalDriveaix3是hdisk4为了测试操作对I/O的连续性的影响,我们在另外的telnet中建立一个脚本work:while[1=1]dotar-cvf/mnt/lv-fastt600-1/usrlib.tar/mnt/lv-local/usrlibsleep1tar-xvf/mnt/lv-fastt600-1/usrlib.tar/mnt/lv-local/usrlibsleep1done让/mnt/lv-local文件系统持续被读写。运行它:p615:/./work……a/mnt/lv-local/usrlib/libarm4.a150blocks.a/mnt/lv-local/usrlib/libasl.a395blocks.a/mnt/lv-local/usrlib/libauthm.a22blocks.a/mnt/lv-local/usrlib/libc128.a132blocks.a/mnt/lv-local/usrlib/libc_r.a13847blocks.……x/mnt/lv-local/usrlib/libasl.a,202213bytes,395mediablocks.x/mnt/lv-local/usrlib/libauthm.a,11024bytes,22mediablocks.x/mnt/lv-local/usrlib/libc128.a,67571bytes,132mediablocks.x/mnt/lv-local/usrlib/libc_r.a,7089423bytes,13847mediablocks.x/mnt/lv-local/usrlib/libc_t.a,5152768bytes,10064mediablocks.……vg-local中加入新盘hdisk4(fastt600)p615:/extendvgvg-localhdisk40516-1254extendvg:ChangingthePVIDintheODM.可以看到,33个I/O用于写VGDA等:p615:/lsvg-pvg-localvg-local:PV_NAMEPVSTATETOTALPPsFREEPPsFREEDISTRIBUTIONhdisk1active867886721736..1730..1735..1735..1736hdisk4active767976791536..1536..1535..1536..1536p615:/lspvhdisk0005c39ff63baaa57rootvgactivehdisk1005c39ffbf1771fcvg-localactivehdisk4005c39ffaddfd60evg-localactivehdisk20053f61fd0b7ca1evg-fastt600activehdisk30053f5ffd0efed59vg-fastt600activep615:/lslv-mlv-locallv-local:/mnt/lv-localLPPP1PV1PP2PV2PP3PV300011738hdisk100021739hdisk100031740hdisk100041741hdisk100051742hdisk1建立vg的镜像p615:/mirrorvgvg-localhdisk40516-1125mirrorvg:Quorumrequirementturnedoff,varyoffandvaryonvolumegroupforthistotakeeffect.上面的操作使用了10秒钟我们在另外的telnet中的work的I/O操作始终没有停止:……a/mnt/lv-local/usrlib/libasl.a395blocks.a/mnt/lv-local/usrlib/libauthm.a22blocks.a/mnt/lv-local/usrlib/libc128.a132blocks.a/mnt/lv-local/usrlib/libc_r.a13847blocks.……x/mnt/lv-local/usrlib/libauthm.a,11024bytes,22mediablocks.x/mnt/lv-local/usrlib/libc128.a,67571bytes,132mediablocks.x/mnt/lv-local/usrlib/libc_r.a,7089423bytes,13847mediablocks.x/mnt/lv-local/usrlib/libc_t.a,5152768bytes,10064mediablocks.……LogicalDriveaix3的I/O持续增长:查看结果:p615:/lspvhdisk0005c39ff63baaa57rootvgactivehdisk1005c39ffbf1771fcvg-localactivehdisk4005c39ffadf71984vg-localactivehdisk20053f61fd0b7ca1evg-fastt600activehdisk30053f5ffd0efed59vg-fastt600activep615:/lslvlv-localLOGICALVOLUME:lv-localVOLUMEGROUP:vg-localLVIDENTIFIER:005c39ff00004c0000000101a86ef484.3PERMISSION:read/writeVGSTATE:active/completeLVSTATE:opened/syncdTYPE:jfsWRITEVERIFY:offMAXLPs:512PPSIZE:4megabyte(s)COPIES:2SCHEDPOLICY:parallelLPs:5PPs:10STALEPPs:0BBPOLICY:relocatableINTER-POLICY:minimumRELOCATABLE:yesINTRA-POLICY:middleUPPERBOUND:32MOUNTPOINT:/mnt/lv-localLABEL:/mnt/lv-localMIRRORWRITECONSISTENCY:on/ACTIVEEACHLPCOPYONASEPARATEPV?:yesSerializeIO?:NOp615:/lslv-llv-locallv-local:/mnt/lv-localPVCOPIESINBANDDISTRIBUTIONhdisk1005:000:000100%000:005:000:000:000hdisk4005:000:000100%000:005:000:000:000p615:/lslv-mlv-locallv-local:/mnt/lv-localLPPP1PV1PP2PV2PP3PV300011738hdisk11538hdisk400021739hdisk11539hdisk400031740hdisk11540hdisk400041741hdisk11541hdisk400051742hdisk11542hdisk4把老盘hdisk1从镜像的vg中祛除出来:8秒p615:/unmirrorvgvg-localhdisk10516-1133unmirrorvg:Quorumrequirementturnedon,varyoffandvaryonvolumegroupforthistotakeeffect.p615:/lspvhdisk0005c39ff63baaa57rootvgactivehdisk1005c39ffbf1771fcvg-localactivehdisk4005c39ffadf71984vg-localactivehdisk20053f61fd0b7ca1evg-fastt600activehdisk30053f5ffd0efed59vg-fastt600activep615:/reducevgvg-localhdisk1p615:/lspvhdisk0005c39ff63baaa57rootvgactivehdisk1005c39ffbf1771fcNonehdisk4005c39ffadf71984vg-localactivehdisk20053f61fd0b7ca1evg-fastt600activehdisk30053f5ffd0efed59vg-fastt600activep615:/lsvg-pvg-localvg-local:PV_NAMEPVSTATETOTALPPsFR
本文标题:vg镜像的方法将数据转移到新存储设备
链接地址:https://www.777doc.com/doc-2854708 .html