UNIX.HP-UX. Mirror disk creation and recovery procedure

Source: Internet
Author: User

Detailed steps of mirror Disk

1. Create a boot LVM disk that will be used as an image
# Pvcreate-B/dev/rdsk/c2t2d0

2. Add the hard disk to the current volume group.
# Vgextend vg00/dev/DSK/c2t2d0

3. Set as the boot disk
# Mkboot/dev/rdsk/c2t2d0

4. Test the correct auto file to the new lif area.
# Mkboot-a "HPUX-SCSI"/STAND/vmunix "/dev/rdsk/c2t2d0

5. mirror each LV separately
# Lvextend-M 1/dev/vg00/lvol1/dev/DSK/c2t2d0
# Lvextend-M 1/dev/vg00/lvol2/dev/DSK/c2t2d0
.....
# Lvextend-M 1/dev/vg00/lvol8/dev/DSK/c2t2d0

6. Update bdra Information
#/Usr/sbin/lvlnboot-B/dev/vg00/lvol1' start
#/Usr/sbin/lvlnboot-S/dev/vg00/lvol2' Switching
#/Usr/sbin/lvlnboot-v-r/dev/vg00/lvol3

7. Check that bdra is correct.
#/Usr/sbin/lvlnboot-r/dev/vg00

8. Check whether the image is correctly created.
# Lvlnboot-V
Boot definitions for volume group/dev/vg00:
Physical volumes belonging in root volume group:
/Dev/DSK/c2t2d0 (0/0/2/0.2.0) -- boot disk
/Dev/DSK/c1t2d0 (0/0/1/1.2.0) -- boot disk
Boot: lvol1 on:/dev/DSK/c2t2d0
/Dev/DSK/c1t2d0
Root: lvol3 on:/dev/DSK/c2t2d0
/Dev/DSK/c1t2d0
Swap: lvol2 on:/dev/DSK/c2t2d0
/Dev/DSK/c1t2d0
Dump: lvol2 on:/dev/DSK/c1t2d0, 0

9. Simulate hard disk failure, unplug a disk, replace it with a new one (with the same slot), and start
Isl> HPUX-is-SCSI 'hpux-is

10. Mount the File System
# Mount-

11. Restore LVM configuration information on the new Hard Disk
# Vgcfgrestore-N vg00/dev/rdsk/c2t2d0

12. re-create the startup and auto files
# Mkboot/dev/rdsk/c2t2d0
# Mkboot-a "HPUX"/dev/rdsk/c2t2d0

13. Change the VG attribute and synchronize the VG.
# Vgchange-A y vg00
# Vgsync vg00

14. Check whether the configuration is correct.
# Vgdisplay-V vg00
# Lvdisplay-V/dev/vg00/lvol1
# Lvlnboot-V
 

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.