-N, --name=
Set a name for the array. This is currently only effective when creating an
array with a version-1 superblock, or an array in a DDF container. The name
is a simple textual string that can be used to identify array components
when assembling. If name is needed but not specified, it is taken from the
basename of the device that is being created. e.g. when creating
/dev/md/home the name will default to home.
-R, --run Insist that mdadm run the array, even if some of the components appear to be active in another array or filesystem. Normally mdadm will ask for confir- mation before including such components in an array. This option causes that question to be suppressed.
-c, --chunk= Specify chunk size of kibibytes. The default when creating an array is 512KB. To ensure compatibility with earlier versions, the default when Building and array with no persistent metadata is 64KB. This is only mean- ingful for RAID0, RAID4, RAID5, RAID6, and RAID10.
RAID4, RAID5, RAID6, and RAID10 require the chunk size to be a power of 2.
In any case it must be a multiple of 4KB.
A suffix of 'M' or 'G' can be given to indicate Megabytes or Gigabytes
respectively.
检查RAID配置
mdadm --detail /dev/md0
输出显示如下
/dev/md0:
Version : 1.2
Creation Time : Mon Nov 9 20:22:07 2015
Raid Level : raid10
Array Size : 2344240640 (2235.64 GiB 2400.50 GB)
Used Dev Size : 468848128 (447.13 GiB 480.10 GB)
Raid Devices : 10
Total Devices : 11
Persistence : Superblock is persistent
Update Time : Mon Nov 9 20:23:24 2015
State : active, resyncing
Active Devices : 10
Working Devices : 11
Failed Devices : 0
Spare Devices : 1
Layout : near=2
Chunk Size : 512K
Resync Status : 6% complete
Name : zpullmsg-31-40:0 (local to host zpullmsg-31-40)
UUID : 70cdd7d5:26452869:0d62a14d:889fa256
Events : 1
Number Major Minor RaidDevice State
0 8 17 0 active sync /dev/sdb1
1 8 33 1 active sync /dev/sdc1
2 8 49 2 active sync /dev/sdd1
3 8 65 3 active sync /dev/sde1
4 8 81 4 active sync /dev/sdf1
5 8 97 5 active sync /dev/sdg1
6 8 113 6 active sync /dev/sdh1
7 8 129 7 active sync /dev/sdi1
8 8 145 8 active sync /dev/sdj1
9 8 161 9 active sync /dev/sdk1
10 8 177 - spare /dev/sdl1
-a alignment-type, --align alignment-type
Set alignment for newly created partitions, valid alignment types are:
none Use the minimum alignment allowed by the disk type.
cylinder
Align partitions to cylinders.
minimal
Use minimum alignment as given by the disk topology information. This
and the opt value will use layout information provided by the disk to
align the logical partition table addresses to actual physical blocks
on the disks. The min value is the minimum aligment needed to align
the partition properly to physical blocks, which avoids performance
degradation.
optimal
Use optimum alignment as given by the disk topology information. This
aligns to a multiple of the physical block size in a way that guaran-
tees optimal performance.
使用fdisk -l可以看到分区信息
WARNING: GPT (GUID Partition Table) detected on '/dev/md0'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/md0: 2400.5 GB, 2400502415360 bytes
255 heads, 63 sectors/track, 291844 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 524288 bytes / 2621440 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/md0p1 1 267350 2147483647+ ee GPT
Partition 1 does not start on physical sector boundary.