#调整第二块硬盘(c0t1d0)的文件分区表调整为和引导盘一致
prtvtoc /dev/rdsk/c1t0d0s2|fmthard –s – /dev/rdsk/c1t1d0s2
#先生成replicas,供DiskSuite内部用
metadb -afc 3 c1t0d0s6 c1t1d0s6
#Creating a mirror
metainit -f d10 1 1 c1t0d0s0
metainit d20 1 1 c1t1d0s0
metainit d0 -m d10
metaroot d0
metainit -f d11 1 1 c1t0d0s1
metainit d12 1 1 c1t1d0s1
metainit d1 -m d11
metainit -f d31 1 1 c1t0d0s3
metainit d32 1 1 c1t1d0s3
metainit d3 -m d31
metainit -f d41 1 1 c1t0d0s4
metainit d42 1 1 c1t1d0s4
metainit d4 -m d41
metainit -f d51 1 1 c1t0d0s5
metainit d52 1 1 c1t1d0s5
metainit d5 -m d51
metainit -f d71 1 1 c1t0d0s7
metainit d72 1 1 c1t1d0s7
metainit d7 -m d71
#编辑/etc/vfstab文件
/dev/md/dsk/d1 - - swap - no -
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -
/dev/md/dsk/d5 /dev/md/rdsk/d5 /usr ufs 1 no -
/dev/md/dsk/d3 /dev/md/rdsk/d3 /backup ufs 2 yes -
/dev/md/dsk/d7 /dev/md/rdsk/d7 /export/home ufs 2 yes -
/dev/md/dsk/d4 /dev/md/rdsk/d4 /opt ufs 2 yes -
swap - /tmp tmpfs - yes -
#文件系统激活
lockfs -fa
reboot
#文件系统关联
metattach d0 d20
metattach d1 d12
metattach d3 d32
metattach d4 d42
metattach d5 d52
metattach d7 d72
----------
metadb -d c1t0d0s6 删除数据库
metadb -fd c1t1d0s6
metaclear -f d62 清除镜像
metastat 状态检查
----------------------------------------------------------
/dev/dsk/c1t0d0s0 9.8G 3.6G 6.1G 37% /
/dev/dsk/c1t0d0s5 4.9G 1.6G 3.3G 34% /usr
/proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
swap 10G 32K 10G 1% /var/run
swap 10G 15M 10G 1% /tmp
/dev/dsk/c1t0d0s4 31G 2.2G 29G 8% /opt
/dev/dsk/c1t0d0s3 10G 4.8M 10G 1% /backup
/dev/dsk/c1t0d0s7 6.9G 7.2M 6.8G 1% /export/home
标签: