linux配置软raid0

linux配置软raid0

ID:40557943

大小:35.49 KB

页数:4页

时间:2019-08-04

linux配置软raid0_第1页
linux配置软raid0_第2页
linux配置软raid0_第3页
linux配置软raid0_第4页
资源描述:

《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

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。