星期四, 11月 03, 2005

Hp Unix 11,11i 系統備份,還原及boot disk mirror測試

系統環境:Hp UX 11i 加 LVM + mirror disk

(1)系統備份
(2)系統還原
(3)boot disk mirror
  • 實驗
  • 製作boot disk mirror
  • online 抽出第二顆
    • online
      • 插回後
        • 重做
        • 不重做,直接sync
      • 換個新的
        • 重做
      • 做完後Online抽出第一顆,並重開機,再回覆
      • 做完後Offline抽出第一顆,並重開機,再回覆
    • 不插回重開機
      • 可否開機
      • 插回
        • 重做
        • 不重做,直接sync
      • 換個新的
        • 重做
      • 回覆後Online抽出第一顆,並重開機,再回覆
      • 回覆後Offline抽出第一顆,並重開機,再回覆
  • offline抽出第一(二)顆
    • 可否開機
    • offline插回硬碟
    • online插回硬碟
    • 回覆後Online抽出第一顆,並重開機,再回覆
    • 回覆後Offline抽出第一顆,並重開機,再回覆
  • online 抽出第一顆
    • 同第二顆
    • 觀查
      • 可否開機
      • 重做後開機硬碟是否改變
硬碟壞了怎麼辦
  • 如何知道壞了
    • vgdisplay
  • 如何修護
參考文件

#lvlnboot -v #check it first


# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 0/0/1/1.2.0 sdisk CLAIMED DEVICE HP 73.4GMAN3735MC
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 1 0/0/2/0.2.0 sdisk CLAIMED DEVICE HP 73.4GATLAS10K3_73_SCA
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0

Note: c1t2d0 is the boot disk and c2t2d0 is the mirrored disk.

1) Initialize the disk and make it bootable
pvcreate -B /dev/rdsk/c2t2d0
Note: the -B parameter tells pvcreate that this will be a bootable disk.

2) Add the physical volume to the volume group
vgextend /dev/vg00 /dev/dsk/c2t2d0

3) Use mkboot to place the boot utilities in the boot area and add the AUTO file.
mkboot /dev/dsk/c2t2d0
mkboot -a "hpux -lq" /dev/rdsk/c2t2d0

4) Use mkboot to update the AUTO file on the primary boot disk.
mkboot -a "hpux -lq" /dev/rdsk/c1t2d0

5) Mirror the stand, root and swap logical volumes
lvextend -m 1 /dev/vg00/lvol1
lvextend -m 1 /dev/vg00/lvol2
lvextend -m 1 /dev/vg00/lvol3

Note: LVM will resynchronize the new mirror copies.

Repeat the lvextend for all other logical volumes on the boot mirror.
lvextend -m 1 /dev/vg00/lvol4
lvextend -m 1 /dev/vg00/lvol5
lvextend -m 1 /dev/vg00/lvol6
lvextend -m 1 /dev/vg00/lvol7
lvextend -m 1 /dev/vg00/lvol8

#lvlnboot -v #recheck it


6) Modify your alternate boot path to point to the mirror copy of the boot disk.
Note: Use the Hardware path for your new boot disk.
setboot -a 0/0/2/0.2.0

0 Comments:

張貼留言

<< Home