版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
先介紹幾個命令第一個命令:migratelp命令用途在不同的物理卷上,將已分配的邏輯分區(qū)從一個物理分區(qū)移動到另一個物理分區(qū)。語法migratelpLVname/LPartnumber[/Copynumber]DestPV[/PPartNumber]描述migratelp將指定的邏輯卷LVname的邏輯分區(qū)LPartnumber移動到DestPV物理卷。如果目標(biāo)物理分區(qū)PPartNumber已指定,則使用指定的分區(qū),否則使用邏輯卷的內(nèi)部區(qū)域策略來選擇目標(biāo)分區(qū)。在缺省情況下,遷移第一個有問題的鏡像副本。可以為Copynumber指定1、2或3的值來遷移一個特殊的鏡像副本。注:在并發(fā)卷組的情況下,必須考慮其他活動的并發(fā)節(jié)點上的分區(qū)使用情況,它是由lvmstat報告。migratelp命令不能遷移條帶化邏輯卷的分區(qū)。安全性要使用migratelp,必須具有root用戶權(quán)限。示例要將邏輯卷lv00的第一個邏輯分區(qū)移動到hdisk1,請輸入:migratelplv00/1hdisk1要將邏輯卷hd2的第三個邏輯分區(qū)的第二個鏡像副本移動到hdisk5,請輸入:migratelphd2/3/2hdisk5要將邏輯卷testlv的第25個邏輯分區(qū)的第三個鏡像副本移動到hdisk7,請輸入:migratelptestlv/25/3hdisk7/100第二個命令:migratepv[
-i
][
-lLogicalVolume
]SourcePhysicalVolumeDestinationPhysicalVolume...描述migratepv命令將已分配的物理分區(qū)和它們包含的數(shù)據(jù)從SourcePhysicalVolume移到一個或多個其他物理分區(qū)。要限制傳送到特定的物理卷,請在DestinationPhysicalVolume參數(shù)中使用一個或多個物理卷的名稱;否則,卷組中的所有物理卷都可以傳送。所有的物理卷必須在相同的卷組中。指定的源物理卷不能包含在DestinationPhysicalVolume參數(shù)列表中。注:所有的“邏輯卷管理器”遷移函數(shù)都是通過創(chuàng)建涉及的邏輯卷的鏡像,然后重新同步邏輯卷來工作的。然后刪除原始的邏輯卷。如果migratepv命令用于移動包含主轉(zhuǎn)儲設(shè)備的邏輯卷,則在命令執(zhí)行過程中系統(tǒng)將不能夠訪問主轉(zhuǎn)儲設(shè)備。因此,在此執(zhí)行過程中的轉(zhuǎn)儲操作將失敗。要避免這一點,可以在使用sysdumpdev命令之前重新分配一個主轉(zhuǎn)儲設(shè)備,或者在使用migratepv之前確保有從轉(zhuǎn)儲設(shè)備。您可以使用基于Web的系統(tǒng)管理器(wsm)中的卷應(yīng)用程序來更改卷特征。您也可以使用“系統(tǒng)管理接口工具”(SMIT)smitmigratepv快速路徑來運行該命令。注:對于并發(fā)方式卷組,在SSA磁盤上增強并發(fā)方式是活動的或并發(fā)方式是活動的時,migratepv才可以使用。-i從標(biāo)準(zhǔn)輸入中讀取DestinationPhysicalVolume參數(shù)。-lLogicalVolume僅移動已分配到指定的邏輯卷和位于指定的源物理卷上的物理分區(qū)。示例要將物理分區(qū)從hdisk1移動到hdisk6和hdisk7上,請輸入:migratepvhdisk1hdisk6hdisk7將物理分區(qū)從一個物理卷移動到相同卷組內(nèi)的另外兩個物理卷上。要將邏輯卷lv02中的物理分區(qū)從hdisk1移動到hdisk6,請輸入:migratepv
-llv02hdisk1hdisk6只有將那些包含在lv02中的物理分區(qū)從一個物理卷移動到另一個物理卷。實驗嘗試#mklv-tjfs2-ylvbackrootvg1glvback#crfs-vjfs2-dlvback-Ayes-m/backcrfs:0506-909/backfilesystemalreadyexists.#rmfs/back#crfs-vjfs2-dlvback-Ayes-m/backFilesystemcreatedsuccessfully.1048340kilobytestotaldiskspace.NewFileSystemsizeis2097152#mount/back#lslvlvbackLOGICALVOLUME:lvbackVOLUMEGROUP:rootvgLVIDENTIFIER:00046f5f0000d6000000013bfbdc7312.11PERMISSION:read/writeVGSTATE:active/completeLVSTATE:opened/syncdTYPE:jfs2WRITEVERIFY:offMAXLPs:512PPSIZE:256megabyte(s)COPIES:1SCHEDPOLICY:parallelLPs:4PPs:4STALEPPs:0BBPOLICY:relocatableINTER-POLICY:minimumRELOCATABLE:yesINTRA-POLICY:middleUPPERBOUND:32MOUNTPOINT:/backLABEL:/backMIRRORWRITECONSISTENCY:on/ACTIVEEACHLPCOPYONASEPARATEPV?:yesSerializeIO?:NO#lsvg-lrootvgrootvg:LVNAMETYPELPsPPsPVsLVSTATEMOUNTPOINThd5boot122closed/syncdN/Ahd6paging242open/syncdN/Ahd8jfs2log122open/syncdN/Ahd4jfs2122open/syncd/hd2jfs26122open/syncd/usrhd9varjfs2122open/syncd/varhd3jfs2122open/syncd/tmphd1jfs2122open/syncd/homehd10optjfs2122open/syncd/optlg_dumplvsysdump441open/syncdN/Alvbackjfs2441open/syncd/backlv_archjfs2442open/syncd/arch#lspv-lhdisk1hdisk1:LVNAMELPsPPsDISTRIBUTIONMOUNTPOINThd10opt1100..00..01..00..00/opthd11100..00..01..00..00/homehd31100..00..01..00..00/tmphd9var1100..00..01..00..00/varhd51101..00..00..00..00N/Ahd26600..00..06..00..00/usrhd41100..00..01..00..00/hd81100..00..01..00..00N/Ahd62200..02..00..00..00N/Alv_arch3300..03..00..00..00/archlg_dumplv4400..04..00..00..00N/Alvback4400..04..00..00..00/back#lspv-lhdisk9hdisk9:LVNAMELPsPPsDISTRIBUTIONMOUNTPOINThd10opt1100..00..01..00..00/opthd11100..00..01..00..00/homehd31100..00..01..00..00/tmphd9var1100..00..01..00..00/varhd51101..00..00..00..00N/Ahd26600..00..06..00..00/usrhd41100..00..01..00..00/hd81100..00..01..00..00N/Ahd62200..02..00..00..00N/Alv_arch1100..01..00..00..00/arch#migratelplvback/1hdisk9migratelp:Mirrorcopy1oflogicalpartition1oflogicalvolumelvbackmigratedtophysicalpartition58ofhdisk9.#lspv-lhdisk9hdisk9:LVNAMELPsPPsDISTRIBUTIONMOUNTPOINThd10opt1100..00..01..00..00/opthd11100..00..01..00..00/homehd31100..00..01..00..00/tmphd9var1100..00..01..00..00/varhd51101..00..00..00..00N/Ahd26600..00..06..00..00/usrhd41100..00..01..00..00/hd81100..00..01..00..00N/Ahd62200..02..00..00..00N/Alv_arch1100..01..00..00..00/archlvback1100..01..00..00..00/back#lspv-lhdisk1hdisk1:LVNAMELPsPPsDISTRIBUTIONMOUNTPOINThd10opt1100..00..01..00..00/opthd11100..00..01..00..00/homehd31100..00..01..00..00/tmphd9var1100..00..01..00..00/varhd51101..00..00..00..00N/Ahd26600..00..06..00..00/usrhd41100..00..01..00..00/hd81100..00..01..00..00N/Ahd62200..02..00..00..00N/Alv_arch3300..03..00..00..00/archlg_dumplv4400..04..00..00..00N/Alvback3300..03..00..00..00/back#lslvlvbackLOGICALVOLUME:lvbackVOLUMEGROUP:rootvgLVIDENTIFIER:00046f5f0000d6000000013bfbdc7312.11PERMISSION:read/writeVGSTATE:active/completeLVSTATE:opened/syncdTYPE:jfs2WRITEVERIFY:offMAXLPs:512PPSIZE:256megabyte(s)COPIES:1SCHEDPOLICY:parallelLPs:4PPs:4STALEPPs:0BBPOLICY:relocatableINTER-POLICY:minimumRELOCATABLE:yesINTRA-POLICY:middleUPPERBOUND:32MOUNTPOINT:/backLABEL:/backMIRRORWRITECONSISTENCY:on/ACTIVE。EACHLPCOPYONASEPARATEPV?:yesSerializeIO?:NO可見將hdisk1上的邏輯卷lvback上第一個lp成功遷移到了hdisk9上,hdisk1上由原來4個lp變成了3個lp,hdisk9上多了個lp。再將其遷回。#migratelplvback/1hdisk1migratelp:Mirrorcopy1oflogicalpartition1oflogicalvolumelvbackmigratedtophysicalpartition117ofhdisk1.#lspv-lhdisk9hdisk9:LVNAMELPsPPsDISTRIBUTIONMOUNTPOINThd10opt1100..00..01..00..00/opthd11100..00..01..00..00/homehd31100..00..01..00..00/tmphd9var1100..00..01..00..00/varhd51101..00..00..00..00N/Ahd26600..00..06..00..00/usrhd41100..00..01..00..00/hd81100..00..01..00..00N/Ahd62200..02..00..00..00N/Alv_arch1100..01..00..00..00/arch#lspv-lhdisk1hdisk1:LVNAMELPsPPsDISTRIBUTIONMOUNTPOINThd10opt1100..00..01..00..00/opthd11100..00..01..00..00/homehd31100..00..01..00..00/tmphd9var1100..00..01..00..00/varhd51101..00..00..00..00N/Ahd26600..00..06..00..00/usrhd41100..00..01..00..00/hd81100..00..01..00..00N/Ahd62200..02..00..00..00N/Alv_arch3300..03..00..00..00/archlg_dumplv4400..04..00..00..00N/Alvback4400..04..00..00..00/back#做第二個命令的實驗,用migratepv遷移lv中的物理分區(qū)#migratepv-llvbackhdisk1hdisk9#lspv-lhdisk1hdisk1:LVNAMELPsPPsDISTRIBUTIONMOUNTPOINThd10opt1100..00..01..00..00/opthd11100..00..01..00..00/homehd31100..00..01..00..00/tmphd9var1100..00..01..00..00/varhd51101..00..00..00..00N/Ahd26600..00..06..00..00/usrhd41100..00..01..00..00/hd81100..00..01..00..00N/Ahd62200..02..00..00..00N/Alv_arch3300..03..00..00..00/archlg_dumplv4400..04..00..00..00N/A#lspv-lhdisk9hdisk9:LVNAMELPsPPsDISTRIBUTIONMOUNTPOINThd10opt1100..00..01..00..00/opthd11100..00..01..00..00/homehd31100..00..01..00..00/tmphd9var1100..00..01..00..00/varhd51101..00..00..00..00N/Ahd26600..00..06..00..00/usrhd41100..00..01..00..00/hd81100..00..01..00..00N/Ahd62200..02..00..00..00N/Alv_arch1100..01..00..00..00/archlvback4400..04..00..00..00/back#開始模擬換盤,這里rootvg兩塊硬盤,插一塊硬盤,執(zhí)行cfgmgr命令,識別出硬盤。假設(shè)壞的是hdisk9,即未啟動盤或者說成不是系統(tǒng)盤,這個好換。#lspvhdisk000046f5ff73395e7Nonehdisk100046f5f4ff7284frootvgactivehdisk900046f5ff7334fbfrootvgactive#lsvg-lrootvgrootvg:LVNAMETYPELPsPPsPVsLVSTATEMOUNTPOINThd5boot122closed/syncdN/Ahd6paging242open/syncdN/Ahd8jfs2log122open/syncdN/Ahd4jfs2122open/syncd/hd2jfs26122open/syncd/usrhd9varjfs2122open/syncd/varhd3jfs2122open/syncd/tmphd1jfs2122open/syncd/homehd10optjfs2122open/syncd/optlg_dumplvsysdump441open/syncdN/Alvbackjfs2441open/syncd/backlv_archjfs2442open/syncd/arch#lspv-lhdisk1hdisk1:LVNAMELPsPPsDISTRIBUTIONMOUNTPOINThd10opt1100..00..01..00..00/opthd11100..00..01..00..00/homehd31100..00..01..00..00/tmphd9var1100..00..01..00..00/varhd51101..00..00..00..00N/Ahd26600..00..06..00..00/usrhd41100..00..01..00..00/hd81100..00..01..00..00N/Ahd62200..02..00..00..00N/Alv_arch3300..03..00..00..00/archlg_dumplv4400..04..00..00..00N/Alvback4400..04..00..00..00/back#lspv-lhdisk9hdisk9:LVNAMELPsPPsDISTRIBUTIONMOUNTPOINThd10opt1100..00..01..00..00/opthd11100..00..01..00..00/homehd31100..00..01..00..00/tmphd9var1100..00..01..00..00/varhd51101..00..00..00..00N/Ahd26600..00..06..00..00/usrhd41100..00..01..00..00/hd81100..00..01..00..00N/Ahd62200..02..00..00..00N/Alv_arch1100..01..00..00..00/arch#unmirrorvgrootvghdisk90516-1246rmlvcopy:Ifhd5isthebootlogicalvolume,pleaserun'chpv-c<diskname>'asrootusertoclearthebootrecordandavoidapotentialbootoffanoldbootimagethatmayresideonthediskfromwhichthislogicalvolumeismoved/removed.0516-1804chvg:Thequorumchangetakeseffectimmediately.0516-1144unmirrorvg:rootvgsuccessfullyunmirrored,usershouldperformbosbootofsystemtoreinitializebootrecords.Then,usermustmodifybootlisttojustinclude:hdisk1.#lsvg-lrootvgrootvg:LVNAMETYPELPsPPsPVsLVSTATEMOUNTPOINThd5boot111closed/syncdN/Ahd6paging221open/syncdN/Ahd8jfs2log111open/syncdN/Ahd4jfs2111open/syncd/hd2jfs2661open/syncd/usrhd9varjfs2111open/syncd/varhd3jfs2111open/syncd/tmphd1jfs2111open/syncd/homehd10optjfs2111open/syncd/optlg_dumplvsysdump441open/syncdN/Alvbackjfs2441open/syncd/backlv_archjfs2442open/syncd/arch#reducevgrootvghdisk90516-016ldeletepv:Cannotdeletephysicalvolumewithallocatedpartitions.Useeithermigratepvtomovethepartitionsorreducevgwiththe-doptiontodeletethepartitions.0516-884reducevg:Unabletoremovephysicalvolumehdisk9.#reducevg-frootvghdisk90516-016ldeletepv:Cannotdeletephysicalvolumewithallocatedpartitions.Useeithermigratepvtomovethepartitionsorreducevgwiththe-doptiontodeletethepartitions.0516-884reducevg:Unabletoremovephysicalvolumehdisk9.#lspvhdisk000046f5ff73395e7Nonehdisk100046f5f4ff7284frootvgactivehdisk900046f5ff7334fbfrootvgactive#reducevg-drootvghdisk90516-914rmlv:Warning,alldatabelongingtologicalvolumelvbackonphysicalvolumehdisk9willbedestroyed.rmlv:Doyouwishtocontinue?y(es)n(o)?y0516-1008rmlv:Logicalvolumelvbackmustbeclosed.Ifthelogicalvolumecontainsafilesystem,theumountcommandwillclosetheLVdevice.0516-884reducevg:Unabletoremovephysicalvolumehdisk9.#reducevg-d-frootvghdisk90516-1008rmlv:Logicalvolumelvbackmustbeclosed.Ifthelogicalvolumecontainsafilesystem,theumountcommandwillclosetheLVdevice.0516-884reducevg:Unabletoremovephysicalvolumehdisk9.#lspvhdisk000046f5ff73395e7Nonehdisk100046f5f4ff7284frootvgactivehdisk900046f5ff7334fbfrootvgactive#lspv-lhdisk9hdisk9:LVNAMELPsPPsDISTRIBUTIONMOUNTPOINTlv_arch1100..01..00..00..00/archlvback4400..04..00..00..00/back#unmount/back#unmount/arch#lspv-lhdisk9hdisk9:LVNAMELPsPPsDISTRIBUTIONMOUNTPOINTlv_arch1100..01..00..00..00/archlvback4400..04..00..00..00/back##reducevgrootvghdisk90516-016ldeletepv:Cannotdeletephysicalvolumewithallocatedpartitions.Useeithermigratepvtomovethepartitionsorreducevgwiththe-doptiontodeletethepartitions.0516-884reducevg:Unabletoremovephysicalvolumehdisk9.#reducevg-d-frootvghdisk9rmlv:Logicalvolumelvbackisremoved.#lspvhdisk000046f5ff73395e7Nonehdisk100046f5f4ff7284frootvgactivehdisk900046f5ff7334fbfNone終于刪除了。#chpv-chdisk9清除hdisk9上的引導(dǎo)信息#rmdev-lhdisk9–d也可以用diag命令刪除硬盤hdisk9deleted#lspvhdisk000046f5ff73395e7Nonehdisk100046f5f4ff7284frootvgactive可以拔掉硬盤hdisk9了,不要拔錯哦,再添加新的硬盤到rootvg里#extendvgrootvghdisk00516-1162extendvg:Warning,ThePhysicalPartitionSizeof256requiresthecreationof1117partitionsforhdisk0.Thelimitationforvolumegrouprootvgis1016physicalpartitionsperphysicalvolume.Usechvgcommandwith-toptiontoattempttochangethemaximumPhysicalPartitionsperPhysicalvolumeforthisvolumegroup.0516-792extendvg:Unabletoextendvolumegroup.#chvg-trootvg0516-1187chvg:Volumegroupnotchanged.Eitherthevolumegrouprootvghasthespecifiedfactorvalueorisatpropermaximumphysicalpartitionsperphysicalvolumelimitalready.0516-732chvg:Unabletochangevolumegrouprootvg.#chvg-t2rootvg0516-1164chvg:Volumegrouprootvgchanged.Withgivencharacteristicsrootvgcanincludeupto16physicalvolumeswith2032physicalpartitionseach.#extendvgrootvghdisk0#lsvg-prootvgrootvg:PV_NAMEPVSTATETOTALPPsFREEPPsFREEDISTRIBUTIONhdisk1active546524109..100..97..109..109hdisk0active11171117224..223..223..223..224#mirrorvg-c2rootvghdisk00516-1509mklvcopy:VGDAcorruption:physicalpartitioninfoforthisLVisinvalid.0516-842mklvcopy:Unabletomakelogicalpartitioncopiesforlogicalvolume.0516-1199mirrorvg:Failedtocreatelogicalpartitioncopiesforlogicalvolumelv_arch.0516-1200mirrorvg:Failedtomirrorthevolumegroup.0516-1246rmlvcopy:Ifhd5isthebootlogicalvolume,pleaserun'chpv-c<diskname>'asrootusertoclearthebootrecordandavoidapotentialbootoffanoldbootimagethatmayresideonthediskfromwhichthislogicalvolumeismoved/removed.#lsvg-lrootvgrootvg:LVNAMETYPELPsPPsPVsLVSTATEMOUNTPOINThd5boot111closed/syncdN/Ahd6paging221open/syncdN/Ahd8jfs2log111open/syncdN/Ahd4jfs2111open/syncd/hd2jfs2661open/syncd/usrhd9varjfs2111open/syncd/varhd3jfs2111open/syncd/tmphd1jfs2111open/syncd/homehd10optjfs2111open/syncd/optlg_dumplvsysdump441open/syncdN/A0516-1147:Warning-logicalvolumelv_archmaybepartiallymirrored.lv_archjfs2432closed/syncd/arch#rmfs/archrmfs:0506-936Cannotreadsuperbloc
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 麋鹿課件完美教學(xué)課件
- 消防應(yīng)急體系
- 3.1.1 鐵及其性質(zhì) 課件高一上學(xué)期化學(xué)(人教版2019必修第一冊)
- 外匯期貨課件教學(xué)課件
- 池塘邊的小鴨教案反思
- 過生日說課稿
- 2025商場地產(chǎn)蛇年新春國潮年貨節(jié)(蛇年行大集主題)活動策劃方案-47P
- 智慧人工智能:開拓人工智能創(chuàng)新應(yīng)用的方案
- 新能源汽車二手房交易合同模板
- 眼鏡制造合作合同
- 畜禽解剖生理5消化系統(tǒng)課件
- 實驗室定期自查制度
- 2024江蘇地區(qū)“三新”供電服務(wù)公司招聘600人高頻500題難、易錯點模擬試題附帶答案詳解
- 建設(shè)施工合同書證據(jù)目錄
- 7 中華民族一家親 互相尊重 守望相助 教學(xué)設(shè)計-2024-2025學(xué)年道德與法治五年級上冊統(tǒng)編版
- 素養(yǎng)評價一(試題)-2024-2025學(xué)年統(tǒng)編版語文五年級上冊
- 2024年高考歷史真題+模擬題專項版匯編專題03古代中國的思想文化與科技含解析
- 中醫(yī)疫病防治
- 2024九年級英語下冊 Unit 7 Work for PeaceLesson 39 Having Good Relationships in Your Community教學(xué)設(shè)計(新版)冀教版
- 更好發(fā)揮政府作用說課高中政治統(tǒng)編版必修二經(jīng)濟與社會
- 《深?!分械纳蕯⑹屡c鏡像闡釋
評論
0/150
提交評論