请在root用户下进行
1、调整第二块硬盘(c0t1d0)的文件分区表调整为和引导盘一致
#dd if=/dev/rdsk/c0t0d0s2 of=/dev/rdsk/c0t1d0s2 count=1
3、制作Mirror
①先生成replicas,供DiskSuite内部用
#metadb –a –f –c 3 c0t0d0s6 c0t1d0s6
#metadb
②Creating a mirror from /
#metainit -f d10 1 1 c0t0d0s0
#metainit -f d20 1 1 c0t1d0s0
#metainit d0 -m d10
#metaroot d0
③Creating a mirror from swap
#metainit -f d11 1 1 c0t0d0s1
#metainit -f d21 1 1 c0t1d0s1
#metainit d1 -m d11
④Creating a mirror from /var
#metainit -f d13 1 1 c0t0d0s3
#metainit -f d23 1 1 c0t1d0s3
#metainit d3 -m d13
⑤Creating a mirror from /export/home
#metainit -f d17 1 1 c0t0d0s7
#metainit -f d27 1 1 c0t1d0s7
#metainit d7 -m d17
⑥编辑 /etc/vfstab 文件
/dev/dsk/c0t0d0s1 - - swap - no -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
/dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s3 /var ufs 1 no -
/dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /export/home ufs 2 yes -
swap - /tmp tmpfs - yes -
更改为:
/dev/md/dsk/d1 - - swap - no -
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -
/dev/md/dsk/d3 /dev/md/rdsk/d3 /var ufs 1 no -
/dev/md/dsk/d7 /dev/md/rdsk/d7 /export/home ufs 2 yes -
swap - /tmp tmpfs - yes -
⑦文件系统激活
#lockfs –fa
#reboot
⑧文件系统关联
#metattach d0 d20
#metattach d1 d21
#metattach d3 d23
#metattach d7 d27
⑨查看同步状态
#metastat d0
#metastat d1
#metastat d3
#metastat d7
四、镜像盘的boot引导:
①启动信息
#installboot /usr/platform/`uname –i`/lib/fs/ufs/bootblk /dev/rdsk/c0t1d0s0
②修改EEPROM
推荐进入OK模式修改
oksetenv boot-device disk0 disk1
ok boot disk1
阅读(763) | 评论(0) | 转发(0) |