小笔记一下md的创建:
1 创建raid1的md1,用两个分区创建
可以查看md1的情况:
可以对md1格式化:
参考阅读:
《Linux 中软件 RAID 的使用》
《Linux 中软件 RAID 使用常见问题解决》
原创内容如转载请注明:来自 阿权的书房
1 创建raid1的md1,用两个分区创建
[root@aslibra ~]# mdadm -CR /dev/md1 -l1 -n2 /dev/sda3 /dev/sdb2
mdadm: largest drive (/dev/sdb2) exceed size (118792576K) by more than 1%
mdadm: array /dev/md1 started.
mdadm: largest drive (/dev/sdb2) exceed size (118792576K) by more than 1%
mdadm: array /dev/md1 started.
可以查看md1的情况:
[root@aslibra ~]# mdadm -D /dev/md1
/dev/md1:
Version : 0.90
Creation Time : Mon Apr 19 11:44:09 2010
Raid Level : raid1
Array Size : 118792576 (113.29 GiB 121.64 GB)
Used Dev Size : 118792576 (113.29 GiB 121.64 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Persistence : Superblock is persistent
Update Time : Mon Apr 19 11:44:09 2010
State : clean, resyncing
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Rebuild Status : 23% complete
UUID : 26050917:7fea93da:c671ed8b:cc50c704
Events : 0.1
Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 8 18 1 active sync /dev/sdb2
/dev/md1:
Version : 0.90
Creation Time : Mon Apr 19 11:44:09 2010
Raid Level : raid1
Array Size : 118792576 (113.29 GiB 121.64 GB)
Used Dev Size : 118792576 (113.29 GiB 121.64 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Persistence : Superblock is persistent
Update Time : Mon Apr 19 11:44:09 2010
State : clean, resyncing
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Rebuild Status : 23% complete
UUID : 26050917:7fea93da:c671ed8b:cc50c704
Events : 0.1
Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 8 18 1 active sync /dev/sdb2
可以对md1格式化:
[root@aslibra ~]# mkfs.ext3 /dev/md1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
...忽略
Writing superblocks and filesystem accounting information: done
...忽略
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
...忽略
Writing superblocks and filesystem accounting information: done
...忽略
参考阅读:
《Linux 中软件 RAID 的使用》
《Linux 中软件 RAID 使用常见问题解决》
原创内容如转载请注明:来自 阿权的书房
收藏本文到网摘