AIXrootvg image creation and disk replacement

Source: Internet
Author: User
AIXrootvg image creation and disk replacement # prtconf | grepdisk # chdev-lhdisk1-apvyes # extendvgrootvghdisk1 # chvg-Qnrootvg # lsvgrootvg -- Image # mirrorvg & amp; ndash; srootvg (-s AIX rootvg image creation and disk replacement # prtconf | grep disk # chdev-l hdisk1-a pv = yes # extendvg rootvg hdisk1 # chvg-Qn rootvg # lsvg rootvg -- image # mirrorvg-s rootvg (-s parameter specifies not to synchronize vg, -S parameter specifies back-end synchronization of vg) # mirrorvg-c 3 rootvg hdisk1, hdisk2 (-c specifies the number of images and hard disks, two hard disks do not need to be specified) -- synchronize data # syncvg-v rootvg -- Create boot information # bosboot-a because hd5 has already made an image, you do not need to use the-d option to specify the disk when executing this command, unless otherwise, for example, when hd5 is migrated to another disk. Or # bosboot-ad hdisk0 # bosboot-ad hdisk1 -- set the boot sequence # bootlist-m normal hdisk0 hdisk1 cd0 -- verify the boot sequence # bootlist-m normal-o # bootinfo-B common commands ========== check whether mirror is successful # lslv-m hd5 check which disk is being started # bootinfo-B check whether hdisk1 is supported by AIX boot device: # bootinfo-B hdisk1 if this command returns value 1, the selected disk can be guided by AIX. Any other value indicates that hdisk1 is not a candidate for rootvg image creation. Create a rootvg Image ==================== a) to check the available hard disk: # lspvhdisk0 unzip rootvghdisk1 unzip nonehdisk2 unzip dbbakvghdisk3 unzip dbbakvg in this example, hdisk0 is the default hard disk used after system installation, and the last attribute of hdisk1 is "none ", it indicates that this hard disk is not used by any VG and can be used as a rootvg image. B) check whether hdisk1 can be used as a boot device supported by AIX: # bootinfo-B hdisk1. if this command returns value 1, the selected disk can be booted by AIX. Any other value indicates that hdisk1 is not a candidate for rootvg image creation. C) extended rootvg to include hdisk1: # extendvg rootvg hdisk1 if hisk1 has been used by other VG before, you can use the-f parameter # extendvg-f rootvg hdisk1d) cancel physical volume quota management in VG (this VG is available if any PV is valid in VG): # run chvg-Qn rootvg and use lsvg rootvg to view the quota, the value of the QUORUM item will be 1e) Image operation on rootvg # mirrorvg-c 2 the time required for this operation is related to the size of the space currently used by rootvg. in actual operation, the size of 95 GB, which takes 2 hours. F) create boot information on the two rootvg disks # bosboot-ad hdisk0 # bosboot-ad hdisk1g) the sequence in which the device system starts the device # bootlist-m normal hdisk0 hdisk1 cd0 here, the image of rootvg is complete. Image rootvg disk replacement ================================ for example, hdisk0, hdisk2 image, hdisk0 error 1. cancel the rootvg Image chpv-c hdisk0 // remove the hdisk0 boot information; roovg hdisk0 2. remove the bad hard disk from roovg reducevg rootvg hdisk0 [rmdev-dl hdisk0] 3. use the diag tool to hot swap and replace bad hard disks. 1) run diag and choose Task selection> hot plug task> scsi and scsi raid hot plug manager> replace/remove a device attached to an scsi hot swap enclosure device, select the hard disk Hdisk0 to be replaced and press enter to keep the current interface. 2) the hdisk0 hard drive indicator will be on (orange), unplug the hard drive, and plug in the new hard drive. 3) return to 1) the current interface, press enter 4) and then enter the configure added/replaced devices menu for configuration. the physical replacement of the hard disk is complete. 4. check the information of the current hard disk through lspv. Normally, the information should be as follows: hdisk0 none nonehdisk1 unzip rootvg active # chdev-l hdisk1-a pv = yes // assign PVID number to the new hard disk 5. add hdisk0 to rootvgextendvg rootvg hdisk0 or extendvg-f rootvg hdisk0 // force add hdisk0 to rootvg. 6. complete the rootvg Image mirrorvg roovg // this operation takes a long time. syncvg-v rootvg // do not do chvg-Qn rootvg/cancel Quorum bosboot-ad/dev/hdisk0 // boot Data 7. change the boot list bootlist-m normal hdisk0 hdisk1 cd0 bootlist-m normal-ohdisk0hdisk1
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.