欢迎来到天天文库
浏览记录
ID:57893209
大小:14.99 KB
页数:5页
时间:2020-09-02
《RAID1和RAID5的安装及恢复.docx》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、RAID1和RAID5的安装及恢复本文档以SUNFireV880Server(6*73GBDsik)为例讲解在Solarsi8下使用命令行的方式安装及维护RAID1和RAID5。本文档内容都经本人实践验证过,但对于不同机型仅供参考,谢谢支持!Disk分布情况:0:c1t0d01:c1t1d02:c1t2d03:c1t3d04:c1t4d05:c1t5d0注:0,1做镜像;2,3,4,5做RAID5系统盘(c1t0d0)分区及镜像盘(c1t1d0)情况:c1t0d0s0(d10)d0c1t1d0s0(d20)/1024Mc1t0d0s1(d11)d1c1t1d0s1(d21)s
2、wap8192Mc1t0d0s2 c1t1d0s2overlap69999Mc1t0d0s3(d13)d3c1t1d0s3(d23)/usr4096Mc1t0d0s4(d14)d4c1t1d0s4(d24)/opt10240Mc1t0d0s5(d15)d5c1t1d0s5(d25)/var2048Mc1t0d0s6(d16)d6c1t1d0s6(d26)/homefreec1t0d0s7 c1t1d0s7/metaDB30M系统安装完成后,使用Solarsi8software2of2安装DiskSuite_4.2.1软件,安装路径:/cdrom/cdrom0/Solari
3、s_8/EA/installer&选择默认安装就可以。用root用户登陆,运行以下命令:#prtvtoc/dev/rdsk/c1t0d0s2
4、fmthard–s–/dev/rdsk/c1t1d0s2fmthard:Newvolumetableofcontentsnowinplace上面命令将第二块硬盘(c1t1d0)的文件分区表调整为和引导盘一致。#umount/metaDB#rm–r/metaDB#vi/etc/vfstab将下面这行注释掉或删除,如下:#/dev/dsk/c1t0d0s7/dev/rdsk/c1t0d0s7/metaDBufs1yes–一、RAID1对各个
5、分区逐一作镜像:①先生成replicas,这是DiskSuite内部用的。#metadb–a–f–c3c1t0d0s7c1t1d0s7#metadb②Creatingamirrorfromswap#metainit–fd1111c1t0d0s1#metainitd2111c1t1t0s1#metainitd1–md11#vi/etc/vfstab/dev/dsk/c1t0d0s1--swap–no–shouldbechangedto:/dev/md/dsk/d1--swap–no-#reboot#metattachd1d21③Creatingamirrorfrom/usr#m
6、etainit–fd1311c1t0d0s3#metainitd2311c1t1t0s3#metainitd3–md13#vi/etc/vfstab/dev/dsk/c1t0d0s3/dev/rdsk/c1t0d0s3/usrufs1yes–shouldbechangedto:/dev/md/dsk/d3/dev/md/rdsk/d3/usrufs1yes–#reboot#metattachd3d23④Creatingamirrorfrom/opt#metainit–fd1411c1t0d0s4#metainitd2411c1t1t0s4#metainitd4–md14#vi
7、/etc/vfstab/dev/dsk/c1t0d0s4/dev/rdsk/c1t0d0s4/optufs1yes–shouldbechangedto:/dev/md/dsk/d4/dev/md/rdsk/d4/optufs1yes–#reboot#metattachd4d24⑤Creatingamirrorfrom/var#metainit–fd1511c1t0d0s5#metainitd2511c1t1t0s5#metainitd5–md15#vi/etc/vfstab/dev/dsk/c1t0d0s5/dev/rdsk/c1t0d0s5/varufs1yes–shoul
8、dbechangedto:/dev/md/dsk/d5/dev/md/rdsk/d5/varufs1yes–#reboot#metattachd5d25⑥Creatingamirrorfrom/home#metainit–fd1611c1t0d0s6#metainitd2611c1t1t0s6#metainitd6–md16#vi/etc/vfstab/dev/dsk/c1t0d0s6/dev/rdsk/c1t0d0s6/homeufs1yes–shouldbechangedto:/dev/md/dsk
此文档下载收益归作者所有