欢迎来到天天文库
浏览记录
ID:12151832
大小:52.50 KB
页数:6页
时间:2018-07-15
《mdadm软raid配置基础》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、mdadm软RAID基础配置(2011-02-2712:39:15)转载标签:it分类:linuxAuthor:ZyCarmenDate:2011.2.27Workround:[root@localhost~]#df-hPFilesystemSizeUsedAvailUse%Mountedon/dev/sda22.9G1.9G811M71%//dev/sda1388M17M352M5%/boottmpfs252M0252M0%/dev/shm[root@localhost~]#fdisk-lDi
2、sk/dev/sda:8589MB,8589934592bytes255heads,63sectors/track,1044cylindersUnits=cylindersof16065*512=8225280bytesDeviceBootStartEndBlocksIdSystem/dev/sda1*15140962683Linux/dev/sda252433306841583Linux/dev/sda34345641052257+82Linuxswap/Solaris/dev/sda4565
3、104438556005Extended/dev/sda55725785619682Linuxswap/Solaris/dev/sda656556724066fdLinuxraidautodetect/dev/sda756857024066fdLinuxraidautodetect/dev/sda8571571800183Linux/dev/sda957958124066fdLinuxraidautodetect其中,sda{6,7,9}都是20M大小的raid设备。1,建立Raid[root@
4、localhost~]#mdadm-C/dev/md0-l0-n2/dev/sda5/dev/sda6#-l0:建raid0;-n2:两块磁盘[root@localhost~]#mdadm-D-s>/etc/mdadm.conf#生成raid配置文件[root@localhost~]#cat/etc/mdadm.confARRAY/dev/md0level=raid0num-devices=2metadata=0.90UUID=5242ba58:524e0f7e:76626e51:536fc28
5、f[root@localhost~]#mdadm-D/dev/md0#查看raid设备/dev/md0:Version:0.90CreationTime:FriNov1909:57:212010RaidLevel:raid0ArraySize:48000(46.88MiB49.15MB)RaidDevices:2TotalDevices:2PreferredMinor:0Persistence:SuperblockispersistentUpdateTime:FriNov1909:57:2120
6、10State:cleanActiveDevices:2WorkingDevices:2FailedDevices:0SpareDevices:0ChunkSize:64KUUID:5242ba58:524e0f7e:76626e51:536fc28fEvents:0.1NumberMajorMinorRaidDeviceState0860activesync/dev/sda61871activesync/dev/sda7[root@localhost~]#mke2fs-j/dev/md0#格式
7、化mke2fs1.39(29-May-2006)Filesystemlabel=OStype:LinuxBlocksize=1024(log=0)Fragmentsize=1024(log=0)12000inodes,48000blocks2400blocks(5.00%)reservedforthesuperuserFirstdatablock=1Maximumfilesystemblocks=492830726blockgroups8192blockspergroup,8192fragmen
8、tspergroup2000inodespergroupSuperblockbackupsstoredonblocks:8193,24577,40961Writinginodetables:doneCreatingjournal(4096blocks):doneWritingsuperblocksandfilesystemaccountinginformation:doneThisfilesystemwillbeautomaticallycheckedevery24mountsor180days
此文档下载收益归作者所有