AIX根盘镜像更换hdisk0_第1页
AIX根盘镜像更换hdisk0_第2页
AIX根盘镜像更换hdisk0_第3页
免费预览已结束,剩余8页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、操作步骤1. 更换前作系统备份 ; 选择磁带备份操作系统/usr/es/sbin/cluster/ut*/cldump查看报错,确认故障盘errpt查看卷组状态test14/#lsvg-l rootvgrootvg:LV NAMETYPELPsPOINThd5boot1hd6paging6hd8jfs2log1hd4jfs230hd2jfs210hd9varjfs210hd3jfs210hd1jfs24hd10optjfs210lg_dumplvsysdump6pagelv00paging6datelvjfs23060看 lv 是否都处于syncd 同步状态查看 pv 状态 ;test14/#

2、lsvgrootvgaltinst_rootvg2.3.4.5.Smit mksysb注意查看双机状态,看应用是否跑在备机上(注意:一定确认双机的状态 )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, 下面是系统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 不同 ,系统不会 正常情况下的 dump device 的信息 :# lsvg -l rootvgrootvg:目前 dump device 只有一个 ,在 hdisk0 上,如果 hdisk0 出现故障 ,系统可以从 hdisk1 启 动,系统运行也不会有问题,只是没有dump device,所以如果需要更换hdiskO,需要特别注意一些别的问题 ,具体步骤 :1) 拆除 hd

7、isk0 上的镜像:unmirrorvg rootvg hdisk02) 查看 unmirror 后 vg 的状态 # 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 的状态# 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拔下插入新的硬盘,回车,新的硬盘就可以认到了,不需要执行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重新创建 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. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论