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