资源描述:
《fsck如何解决aix的文件系统故障》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、fsck如何解决AIX的文件系统故障HowdoesFSCKresolvethefilesystemfailureofAIXIn2009-04-20theplagueForfilesystemmaintenanceandmanagementintheprocess,willencountersomeproblems,suchascan'tinstallthefilesystemorremovethefilesystem,whenthefilesystem,ssuperblockwasdamaged,andcan'tbeusednormalfilesystem,howtorepairthema
2、infilesystemanyway,hereistodiscusshowtosolvetheproblemofsomecommonfilesystems.One,restorethesuperblockerrorWhilesomeusersareusingFSCKormountcommands,theymaybeaproblemwiththefilesystem'ssuperblockwhentheyseethefollowingprompt:FSCK:NotanAIX3filesystemFSCK:NotanAIXV3filesystemFSCK:NotanAIX4filesystem
3、FSCK:NotanAIXV4filesystemFSCK:NotarecognizedfilesystemtypeMount:invalidargumentForexample,whenauserinstallsa/allenfsfilesystem,thefollowingerrormessageappears:#mount/allenfsMount:0506-324Cannotmount/dev/lvlon/allenfs:AsystemcallreceivedAparameterthatisnotvalid・Whenthefilesystemisfixed,thefollowing
4、errormessageappearsandterminates:#FSCK/dev/lvlNotarecognizedfilesystemtype・Tosolvethisproblem,canonlyusethebackupofthesuperblocktorestorethesuperblock,asweallknow,inthefilesystem,logicblockisthemainsuperblock1,31logicblockisbackupsuperblock,sothecontentofthelogicalblockonthe31stwrote1logicalblocku
5、p.Forexample,thefilesystem,slogicalvolumeis/dev/lvl,andthehyperblockcommandforthefilesystemisrestoredasfollows:Ddcount=1bs二4kskip二1if二/dev/lvlof二/dev/lvlWhentherecoveryiscomplete,theFSCKcommandisusedtochecktheintegrityofthefilesystem:#FSCK/dev/lvl**Checking/dev/rlvl(/Allen)**Phase0-CheckLogLogredo
6、processingfor/dev/rlvOO*Phase1一CheckBlocksandSizes*Phase2-checkPathnames*Phase3一CheckConnectivity*Phase4-CheckReferenceCounts**Phase5-checkInodeMap*Phase-CheckBlockMap9files608blocksof15776freeInmanycases,thisproblemcanbesolvedbyrestoringthebackupsuperblocktothemainsuperblock,makingthefilesystemwo
7、rkingundernormalconditions・Ifthisdoesn,tsolvetheproblem,itcanonlyremovethefilesystemandthenrebuildthefilesystemandrestorethebackupdata.Two,unabletoremovefilesystemIfauseroraprograminafilesystemactivity,willnotbea