資源描述:
《Solaris常見提問》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫。
1、網(wǎng)上收集了一些solaris的面試題,算是對solaris學(xué)習(xí)過程的一個(gè)總結(jié)1.網(wǎng)友bininbinin問:在solaris上換掉一個(gè)壞的鏡像答:問:如何設(shè)置,solaris的網(wǎng)卡如何做到loadbalance答:問:新添加的網(wǎng)卡,如何在solaris主機(jī)上識別出來答:問:如何添加網(wǎng)絡(luò)上面的storage,識別新的網(wǎng)絡(luò)硬盤?答:問:如何在線擴(kuò)文件系統(tǒng)答:HowtoreplaceafailedSCSIdiskmirroredwithSolsticeDiskSuite(commandlinemethod)WITH
2、OUTtakingSolarisdown:Thefollowingassumptionshavebeenmadeforthisexampleprocedure:A.Servername=bigserver.company.comB.OS=Solaris7or8C.DiskSuiteversions4.2or4.2.1D.The‘bad’diskishot-swappable.E.Metadevicenumbersandstatedatabasereplicasaretakenfromthoseusedonth
3、eactualsystem.F.Actualcommandlinesyntaxisshowninboldtext.1.Collectoutputfromthefollowing:#metastat#metastat-p#metadb-i2.Toidentifythedisktobereplaced:Examinethe"metadb-i"output.Youshouldseea"W"intheflagsfieldassociatedwithslice7ofthediskexperiencingwriteerr
4、ors.Anotherindicationistolookattheoutputfromthe“format”command.Nexttothedevicenamethetextstring“”willappearindicatingthatthedisklabelcannotbereadandthereforeitisverylikelythatthediskhasfailed.Forthisexample,wewillassumethefaileddiskdevicei
5、sc0t0d0.3.Deleteanymetadevicestatedatabasereplicasthatareonthe'bad'disk:#metadb-dc0t0d0s7#metadb-i(tomakesuretheyhavebeendeleted)4.Stateofthesubmirrors:The“metastat”commandoutputreportsthatallsubmirrorsonthebaddiskareataStateof“Needsmaintenance”.Thisindicat
6、esthatDiskSuitehasautomaticallydisabledthesubmirrors,sothereisnoneedto“metadetach”thesubmirrors.5.Physicallyreplacethefailedhot-swappabledisk.6.Partitionthenewdisk:Easiestwaytodothisistocopythepartitiontablefromtherootmirror(c0t1d0s2)tothenewdisk(c0t0d0s2)w
7、iththefollowingddcommand:#ddif=/dev/rdsk/c0t1d0s2of=/dev/rdsk/c0t0d0s2count=16Verifythepartitiontablewascopiedcorrectlyusingtheformatutility.Type"format",selectthecorrespondingdisknumberfromthediskselectionmenu,thentype"p",then"p"againtoviewthepartitiontabl
8、e.CompareandmakesurethepartitiontablesmatchEXACTLY.7.Recreatethemetadevicestatedatabasereplicasthatweredeletedinstep3fromc0t0d0s7:#metadb-a-f-c3/dev/dsk/c0t0d0s7#metadb-i(verifythecreation)8.Re-enablet