- 论坛徽章:
- 0
|
然后开始做镜象。过程如示:
一、Disk分布情况:
0:c0t0d0
1:c0t1d0
注:0,1做镜像,即Raid1;
系统盘(c0t0d0)分区及镜像盘(c0t1d0)情况:
c0t0d0s0(d10) d0 c0t1d0s0(d20) /
c0t0d0s1(d11) d1 c0t1d0s1(d21) swap
c0t0d0s2 c0t1d0s2 overlap 整个盘
c0t0d0s6(d16) d6 c0t1d0s6(d26) /metadb 100M
c0t0d0s7(d17) d7 c0t1d0s7(d27) /export/home
--------------------------------------------------------------------
#metadb –afc 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 /export/home
#metainit -f d17 1 1 c0t0d0s7
#metainit -f d27 1 1 c0t1d0s7
#metainit d7 -m d17
编辑 /etc/vfstab 文件
/dev/md/dsk/d1 - - swap - no -
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -
/dev/md/dsk/d7 /dev/md/rdsk/d7 /export/home ufs 2 yes -
swap - /tmp tmpfs - yes -
-----------------------------------------------------------------------------
#lockfs –fa
#reboot
------------------------------------------------------------------------------
然后就只能到ok拉。
[ 本帖最后由 tianma23 于 2006-6-22 16:52 编辑 ] |
|