1.
Xác định và xóa metadb lỗi:
# metadb
# metadb -d c0t0d0s7
# metadb
2.
Chuyển submirror d21 và d41 về chế độ offline:
# metaoffline d20
d21
# metaoffline d40
d41
3.
Xác định hard disk lỗi:
# metastat d50
# cfgadm -al
# cfgadm -c
unconfigure c0::dsk/c0t0d0
# cfgadm -al
3.
Tháo hard disk lỗi, lắp hard disk mới tại vị trí 0.
4.
Thực hiện lệnh OS nhận diện hard disk mới:
# cfgadm -c
configure c0::dsk/c0t0d0
# cfgadm -al
5.
Label hard disk mới:
# format
Label = y
Modify All free hop
to slice 2
6.
Format hard disk0 theo định dạng của hard disk1 đang sử dụng:
# prtvtoc -h
/dev/rdsk/c0t1d0s2 > /export/prtvtoc.txt | fmthard -s /export/prtvtoc.txt
/dev/rdsk/c0t0d0s2
7.
Tạo lại metadb:
# metadb -a -f -c 3
c0t0d0s7
# metadb
8.
Kích hoạt submirror d51, d21 và d41
# metareplace -e d50
c0t0d0s4
# metareplace -e d10
c0t0d0s0
# metaonline d20 d21
# metaonline d40 d41
9.
Kiểm tra trạng thái mirror:
# metastat d50
# metastat d10
sub-mirror d11 is
syncronizing --> OK
sub-mirror d51 is
syncronizing --> OK
# metastat d20
# metastat d40
mirror d20 và d40 OK
--> Done
10. Install boot cho
hard disk 0
# installboot
/usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0
No comments:
Post a Comment