- 论坛徽章:
- 0
|
SDS的用户手册里有讲,通过/etc/lvm/md.cf来恢复,只要重新安装操作系统前拿到/etc/lvm/md.cf文件就可以!
1、用光盘引导系统至单用户
ok> boot cdrom -s
2、将根盘以只读的方式mount起来
# mount -F ufs -o ro /dev/dsk/c0t0d0s0 /a
3、备份/a/etc/lvm/md.cf文件
4、重新安装系统
5、重新创建metadb状态数据库副本
# metadb -a -f -c 3 c0t0d0s7
6、备份/etc/lvm/md.tab文件
7、将之前备份的md.cf文件内容复制到/etc/lvm/md.tab文件,并进行编辑,以满足:
a、All mirrors are one-way mirrors. If a mirror’s submirrors are not the same size,
be sure to use the smallest submirror for this one-way mirror. Otherwise data
could be lost.
b、RAID5 metadevices are recreated with the -k option, to prevent reinitialization
of the device. (Refer to the metainit(1M) man page for more information on
this option.)
8、使用metainit核对md.tab的句法
# metainit -n -a
9、md.tab的句法无误,则重新产生metadevice
# metainit -a
10、用metattach使one-way镜象变为multi-way镜象
11、验证metadevice上的数据! |
|