AIX根盤鏡像更換hdisk0_第1頁
AIX根盤鏡像更換hdisk0_第2頁
AIX根盤鏡像更換hdisk0_第3頁
已閱讀5頁,還剩6頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、操作步驟1. 更換前作系統(tǒng)備份 ; 選擇磁帶備份操作系統(tǒng)/usr/es/sbin/cluster/ut*/cldump查看報錯,確認故障盤errpt查看卷組狀態(tài)test14/#lsvg-l rootvgrootvg:LV NAMETYPELPsPOINThd5boot1hd6paging6hd8jfs2log1hd4jfs230hd2jfs210hd9varjfs210hd3jfs210hd1jfs24hd10optjfs210lg_dumplvsysdump6pagelv00paging6datelvjfs23060看 lv 是否都處于syncd 同步狀態(tài)查看 pv 狀態(tài) ;test14/#

2、lsvgrootvgaltinst_rootvg2.3.4.5.Smit mksysb注意查看雙機狀態(tài),看應用是否跑在備機上(注意:一定確認雙機的狀態(tài) )convg test14/#lsvg -o convgrootvgtest14/#lspvhdisk000c74bc679929a4chdisk100c74bc679bcaa9fhdisk200c74bc689eefd8chdisk3nonehdisk4nonehdisk500c74bc6d089a7f2hdisk6nonePPsPVsLV STATEMOUNT22closed/syncdN/A122open/syncdN/A22open/s

3、yncdN/A602open/syncd/202open/syncd/usr202open/syncd/var202open/syncd/tmp82open/syncd/home202open/syncd/opt61closed/syncdN/A122open/syncdN/A2open/syncd /datebeifenrootvgaltinst_rootvgactiveconvgactiveNoneNonerootvgactiveNonehdisk8noneNonehdisk9noneNonehdisk10noneNonehdisk11noneNonehdisk7 none Nonemir

4、ror dump device, 下面是系統(tǒng)6. 確認好了故障盤,將故障盤在 rootvg 里踢出來,本次有故障的是 hdisk0. 注意這一步:查看 dump 設備# sysdumpdev - primary secondary copy directory forced copy flag always allow dump dump compression查看 dump 在哪塊盤上# lslv -l lg_dumplv lg_dumplv:N/A PVhdisk0/dev/lg_dumplv/dev/sysdumpnull/var/adm/rasTRUEFALSEONCOPIES IN

5、BAND016:000:000 0%查看 dump 設備DISTRIBUTION000:000:000:000:016LV NAMETYPELPsPPsPVs LV STATE1POINThd5boot122closed/syncdN/Ahd6paging244 4882open/syncdN/Ahd8jfs2log122open/syncdN/Ahd4jfs28162open/syncd/hd2jfs240802open/syncd/usrhd9varjfs240802open/syncd/varhd3jfs216322open/syncd/tmphd1jfs240802open/syncd

6、/homehd10optjfs2801602open/syncd/optlg_dumplvsysdump1616 1open/syncdN/AMOUNTAIX 如果 paging swap 和 dump device 不同 ,系統(tǒng)不會 正常情況下的 dump device 的信息 :# lsvg -l rootvgrootvg:目前 dump device 只有一個 ,在 hdisk0 上,如果 hdisk0 出現(xiàn)故障 ,系統(tǒng)可以從 hdisk1 啟 動,系統(tǒng)運行也不會有問題,只是沒有dump device,所以如果需要更換hdiskO,需要特別注意一些別的問題 ,具體步驟 :1) 拆除 hd

7、isk0 上的鏡像:unmirrorvg rootvg hdisk02) 查看 unmirror 后 vg 的狀態(tài) # lsvg -l rootvg rootvg:LV NAMETYPELPsPPsPVs LV STATEMOUNTPOINThd5boot111closed/syncdN/Ahd6paging2442441open/syncdN/Ahd8jfs2log111open/syncdN/Ahd4jfs2881open/syncd/hd2jfs240401open/syncd/usrhd9varjfs240401open/syncd/varhd3jfs216161open/syncd/

8、tmphd1jfs240401open/syncd/homehd10optjfs280801open/syncd/optlg_dumplvsysdump 16161closed/syncd N/A3) 將 hdisk0 在 rootvg 里 reduce 出來 reducevg rootvg hdisk0將會報錯 : rmlv: Warning, all data belonging to logical volume lg_dumplv on physical volume hdisk0 will be destroyed.rmlv: Do you wish to continue? y(e

9、s) n(o)? 0516-016 ldeletepv: Cannot delete physical volume with allocated partitions. Use either migratepv to move the partitions or reducevg with the -d option to delete the partitions.0516-884 reducevg: Unable to remove physical volume hdisk0. 遇到這種情況,我們首先應該修改 dump 主設備: sysdumpdev -P -p /dev/sysdum

10、pnullprimary secondary copy directory forced copy flag always allow dump dump compression/dev/sysdumpnull/dev/sysdumpnull/var/adm/rasTRUEFALSEON然后再將 hdisk0 在 rootvg 中 reduce 出來smitty reducevg0516-914 rmlv: Warning, all data belonging to logical volume lg_dumplv on physical volume hdisk0 will be dest

11、royed.rmlv: Do you wish to continue? y(es) n(o)?y 缺省刪除 lg_dumplvrmlv: Logical volume lg_dumplv is removed.查看 dump device 的狀態(tài)# lsvg -l rootvg rootvg:LV NAMETYPELPsPPsPVsLV STATEMOUNT POINThd5boot111closed/s yncdN/Ahd6pagi ng2442441ope n/syncdN/Ahd8jfs2log111ope n/syncdN/Ahd4jfs2881ope n/syncd/hd2jfs2

12、40401ope n/syncd/usrhd9varjfs240401ope n/syncd/varhd3jfs216161ope n/syncd/tmphd1jfs240401ope n/syncd/homehd10optjfs280801ope n/syncd/opt7.將hdiskO在rootvg中刪除后就可以更換硬盤了:test14/#diagMove cursor 土& seLectthen, press Enter.Diagnostic: RoutiifiesThis select ioriL 如ill test the Machine h-ardirare. Wrap p

13、lugs: and other advanced functions will not be used.Advanced Diagnostics Rout inesThis seLecrt ion will test the Machine JhLard<are. ¥rap plugs and©ther advanced functions will be used-Task Se" Gt ion (DisgnostiGSAWanGgii Di 彗 rwst icg Service Aid 內 etc.)This select ion 噸11 list th

14、e tasks supported by these procedures.Once a t ask is selected, a re sour c a menu may be presented shoving all res&urc&s supported by the tRasourca SelectionThis select ion will list the resource? in the sys丈己血 Izh?1! are supported by thtss procedures Once a resource is selectcdj a task jne

15、nu will be presented showing all t asks that can be run on the resource (s).From the list below, select a task by moving the cursor to the task and pressing 'Enter'.To list the resources for the task highlighted, press ? Lis-MORE. 1Run Error Log AnalysisRw ExercisersDisplay or Change Diagnos

16、tic Run Time OptionsAdd Resource to Resource ListAutomatic Error Log Analysis and NotificationBackup and Restore MediaCertify MediaChange Hardware Vital Product DataConfigure Dials and LpfkeysConfigure Platform. Processor DiagnosticsDelete Resource from Resource ListDisk MaxntenanceDisplay Configura

17、tion and Resource ListDisplay Firmware Device Node InformationDisplay Hardware Error ReportDisplay Hardware Vital Product DataDisplay Multipath I/O (MPIO) Device ConfigurationDisplay Previous Diagnostic ResultsDisplay Resource AttributesDisplay Service HintsDisplay Software Product DataDisplay USB D

18、evicesDisplay or Change BootiestFormat MediaGather System Informationot Plug TaskIdentify and Attention IndicatorsLoad ISO Image to USB Mass Storage DeviceHot Plug TasltMove cursor to desired iteni and press Enter.PCI Hot Plug ManagerSCSI and SCSI RAID Hot Plug ManagerSCSI and SCSI RAID HOT PLUG IMA

19、GERThe lowing Qfperticrs Gan be perf<?rjnd gj devices attached te SCSI and SCSI RAID Hot Pl口耳 Enclosur& devices,Wale select ion, use Enter t o cont inufr.List Mot Swap Enclosure DevicesTlis s&laction lists all scsi hot snrap slots and their conterrts.Identify a device Attached to a SCSI H

20、ot Swap Enclosure Device This salection sets the Idsntify in<iiGation.Attach a. Devict to an SCSI Hot Swap Erclasur* DeviceTKis selection sets the Add indication and prepares the slot for insertion of a device.epldctfREjnowE a D已眄iu已 At電迅ch亡d to an SCSI Hot Wivap EiiuIqsuxe D已Fic已Thissets 丈hw Eej

21、nove iadicatiQ aixd 卩匚呂the device for remcvaLConfigura Added/Replaced DevicesThis selection runs the configuration manager on the pairerit adapter vher$ devices hav& b«en add亡d. or replaced fiEHOVE OR REPLME DEVICE ATTACHED TO A SCSI HOT SV/AP ENCLOSURE DEVICE The following ls a list of con

22、figured, unconfigured and populatedSCSI Hot Swap Enclosure devics slots. Select a slot to remote or replace the device attached to that slot.EMSUEE THAT NO OTHER HOST IS USING THE DEVICE BEFORE REMOVING IT.Make: selectiorij use Enter to continue.U78SD. 0C1.DC04KEC-sesOP3-Y2seslP3-Y1slot1P3-D1l .disk

23、slot2P3-D2hdisklslot3PDhdiskislot4P3-D4hdiskSslot5P3-D5hdisk4slot6P3-D6hdiskSU73SD. 001.DQ1XK5C-sas2P4-Y1sas3P3-Y2ses4P3-Y1slot1PAD】hdiskdslot2P3-D2hdiffkTslot3P3-D3hdiskBslot4P3-T14hdi 理 IrRslot5P3-D5hdisklOslot6P>D6hdiskllU789D*OOLDQr>4K2X-sesBP4-Y1敲下回車后,故障硬盤的紅燈開始閃爍,這也是確定硬盤位置的方法,以免拔錯盤。將hdisk

24、O拔下插入新的硬盤,回車,新的硬盤就可以認到了,不需要執(zhí)行cfgmgr即可。接下來重新給rootvg做鏡像。1)查看認到的新的硬盤:lspv2)3)rootvg:PV_NAMEPV STATETOTAL PPsFREE PPsFREE將新盤加到 rootvg# extendvg -f rootvg hdisk0查看 hdisk0 是否添加到 rootvg 中 test14/#lsvg -p rootvgDISTRIBUTIONhdisk5active558440111.70.36.111.112hdisk0active5584346)111.64.36.111.112查看鏡像:test14/#

25、lsvg -l rootvgrootvg:LV NAMETYPELPsPPsPVsLV STATEMOUNT POINThd5boot122closed/syncdN/Ahd6paging6122open/syncdN/Ahd8jfs2log122open/syncdN/Ahd4jfs230602open/syncd/hd2jfs210202open/syncd/usrhd9varjfs210202open/syncd/varhd3jfs210202open/syncd/tmphd1jfs2482open/syncd/homehd10optjfs210202open/syncd/optlg_d

26、umplvsysdump661closed/syncdN/Apagelv00paging6122open/syncdN/A5) 鏡像成功,添加啟動快到hdisk0鏡像根盤:4)mirrorvg -c 2 rootvg hdiskO#bosboot -ad /dev/hdisk0設置啟動順序# bootlist -m normal hdisk0 hdisk1 cd07)查看啟動順序:# bootlist -o -m normal hdisk0 blv=hd5 hdisk1 blv=hd5 cd0重新創(chuàng)建 dump lv (操作前先記錄下原 dump 的大小 )#smit lvAd_d a Log

27、ical VolunteType or select valu&s in entry fieldsPress Enter AFTER TTLakin? all desired changes.Entry FieldsLogical uclujie NAMEh 即iu!0* VOLIHIE GROUP najneroutes沖 Number of LOGICAL PETITIONS咂a-'T'T.-T . i :沁激搭較襄丫碎ILcigical volume TYPE/Ij : iiiiPOSITION an physical volumaniddleRAlTiE of physical volumeslainiminniNUMBER of PHYSICAL VOLITMESto vise f(?r allocationNwnber cf COPIES of each logical1part itioftMirror Write Ccftsistency?

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論