欢迎来到天天文库
浏览记录
ID:40530080
大小:82.50 KB
页数:5页
时间:2019-08-04
《AIX在正常开机换roovg一块损害硬盘》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、更换rootvg里一块坏掉的硬盘rootvg里的hdisk0坏掉,首先解除镜相#unmirrorvgrootvghdisk0#chpv-chdisk0(清除引导区)0516-1246rmlvcopy:Ifhd5isthebootlogicalvolume,pleaserun'chpv-c' asrootusertoclearthebootrecordandavoidapotentialboot offanoldbootimagethatmayresideonthediskfromwhichthis
2、 logicalvolumeismoved/removed.0301-108mkboot:Unabletoreadfileblocks.Returncode:-10516-1132unmirrorvg:Quorumrequirementturnedon,rebootsystemforthis totakeeffectforrootvg.0516-1144unmirrorvg:rootvgsuccessfullyunmirrored,usershouldperform bosbootofsystemtoreinitialize
3、bootrecords. Then,usermustmodify bootlisttojustinclude: hdisk1.#bootlist-mnormal–ohdisk0hdisk1blv=hd5#lsvg-prootvgrootvg:PV_NAME PVSTATE TOTALPPs FREEPPs FREEDISTRIBUTIONhdisk0 missing 546 482 70..85..109..109..109hdisk1
4、 active 546 254 60..00..00..85..109尝试把hdisk0从rootvg里面删除先查询hdisk0还挂有那些逻辑卷#lspv–lhdisk0显示没有挂接逻辑卷#reducevgrootvghdisk00516-016ldeletepv:Cannotdeletephysicalvolumewithallocated partitions.Useeithermigratepvtomovethepartitionsor reducevg
5、withthe-doptiontodeletethepartitions.0516-884reducevg:Unabletoremovephysicalvolumehdisk0.报这个错的原因是因为lv_dumplv只存在于hdisk0,而且这个在rootvg里面是不会镜相的,只有一份。后来想到一个办法:第一步:将dump设备指向/dev/sysdumpnull;第二步:删除在disk0上lg_dumplv;第三步:在hdisk1上创建新的lg_dumplv;第四步:将dump设备指向/dev/lg_dumplv最后成功执行reducevgrootv
6、ghdisk0命令BYD实际情况是:hdisk0有fwdump文件系统没有做镜像,且里面没有内容,#umountfwdump#smittyrmlv把fwdump文件系统删除hdisk0还有个换页空间paging01也同样没有做镜像先删除换页空间#smittyswapoff#smittyrmps#lspv–lhdisk0删除hdisk0,更换新硬盘,rmdev–dlhdisk0#diag按enter选择HotPlugTask按下enter键,可以热拔硬盘,把准备好的硬盘换上让操作系统重认hdisk0#cfgmgr–v将hdisk0添加到rootvg里面
7、#extendvgrootvghdisk00516-1254extendvg:ChangingthePVIDintheODM.test_db>#lsvg-prootvgrootvg:PV_NAME PVSTATE TOTALPPs FREEPPs FREEDISTRIBUTIONhdisk0 active 546 546 110..109..109..109..109hdisk1 active 546
8、 190 60..00..00..21..109重镜相rootvg,因为只有两块盘,
此文档下载收益归作者所有