欢迎来到天天文库
浏览记录
ID:40557943
大小:35.49 KB
页数:4页
时间:2019-08-04
《linux配置软raid0》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、1.1.1创建/dev/md0分区需要通过操作系统创建软raid分区,创建分区有两种办法,一是在安装操作系统时创建,二是安装操作系统之后通过命令创建。本文重点介绍一下第二种办法。1.将sda4创建软raid分区格式,命令如下:[root@CT7001root]#fdisk/dev/sdaThenumberofcylindersforthisdiskissetto38913.Thereisnothingwrongwiththat,butthisislargerthan1024,andcouldincertainsetupscauseproblemswith:1)so
2、ftwarethatrunsatboottime(e.g.,oldversionsofLILO)2)bootingandpartitioningsoftwarefromotherOSs(e.g.,DOSFDISK,OS/2FDISK)Command(mforhelp):nCommandactioneextendedpprimarypartition(1-4)pSelectedpartition4Firstcylinder(1841-38913,default1841):Usingdefaultvalue1841Lastcylinderor+sizeor+sizeM
3、or+sizeK(1841-38913,default38913):Usingdefaultvalue38913Command(mforhelp):tPartitionnumber(1-4):4Hexcode(typeLtolistcodes):fdChangedsystemtypeofpartition4tofd(Linuxraidautodetect)Command(mforhelp):wThepartitiontablehasbeenaltered!Callingioctl()tore-readpartitiontable.WARNING:Re-readin
4、gthepartitiontablefailedwitherror16:设备或资源忙.Thekernelstillusestheoldtable.Thenewtablewillbeusedatthenextreboot.Syncingdisks.1.将sdb创建软raid分区格式,命令如下:[root@CT001root]#fdisk/dev/sdbThenumberofcylindersforthisdiskissetto38913.Thereisnothingwrongwiththat,butthisislargerthan1024,andcouldincer
5、tainsetupscauseproblemswith:1)softwarethatrunsatboottime(e.g.,oldversionsofLILO)2)bootingandpartitioningsoftwarefromotherOSs(e.g.,DOSFDISK,OS/2FDISK)Command(mforhelp):nCommandactioneextendedpprimarypartition(1-4)pPartitionnumber(1-4):1Firstcylinder(1-38913,default1):Usingdefaultvalue1
6、Lastcylinderor+sizeor+sizeMor+sizeK(1-38913,default38913):Usingdefaultvalue38913Command(mforhelp):tSelectedpartition1Hexcode(typeLtolistcodes):fdChangedsystemtypeofpartition1tofd(Linuxraidautodetect)Command(mforhelp):wThepartitiontablehasbeenaltered!Callingioctl()tore-readpartitiontab
7、le.Syncingdisks.1.将sdc,sdd创建软raid分区格式,命令参照sdb:2.创建md1,命令如下:[root@CT7001root]#mdadm-C/dev/md1--level=0--raid-devices=4/dev/sda4/dev/sdb1/dev/sdc1/dev/sdd1mdadm:/dev/sda4appearstobepartofaraidarray:level=1devices=4ctime=FriFeb915:40:512007mdadm:/dev/sdb1appearstobepartofaraidarray:level
8、=1dev
此文档下载收益归作者所有