· 7 years ago · Feb 20, 2019, 12:10 PM
1oot@cinderella:~# mdadm --assemble /dev/md0 /dev/sdc /dev/sdd
2mdadm: Cannot assemble mbr metadata on /dev/sdc
3mdadm: /dev/sdc has no superblock - assembly aborted
4root@cinderella:~# mdadm --misc --examine /dev/sd[cd]
5/dev/sdc:
6 MBR Magic : aa55
7Partition[0] : 3907029167 sectors at 1 (type ee)
8/dev/sdd:
9 MBR Magic : aa55
10Partition[0] : 3907029167 sectors at 1 (type ee)
11root@cinderella:~# cat /proc/mdstat
12Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
13unused devices: <none>
14root@cinderella:~# mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sdc /dev/sdd
15mdadm: partition table exists on /dev/sdc
16mdadm: partition table exists on /dev/sdc but will be lost or
17 meaningless after creating array
18mdadm: Note: this array has metadata at the start and
19 may not be suitable as a boot device. If you plan to
20 store '/boot' on this device please ensure that
21 your boot-loader understands md/v1.x metadata, or use
22 --metadata=0.90
23mdadm: partition table exists on /dev/sdd
24mdadm: partition table exists on /dev/sdd but will be lost or
25 meaningless after creating array
26mdadm: size set to 1953382464K
27mdadm: automatically enabling write-intent bitmap on large array
28Continue creating array? y
29mdadm: Defaulting to version 1.2 metadata
30mdadm: array /dev/md0 started.
31root@cinderella:~# cat /proc/mdstat
32Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
33md0 : active raid1 sdd[1] sdc[0]
34 1953382464 blocks super 1.2 [2/2] [UU]
35 [>....................] resync = 0.1% (2260544/1953382464) finish=230.1min speed=141284K/sec
36 bitmap: 15/15 pages [60KB], 65536KB chunk
37
38unused devices: <none>
39root@cinderella:~# mount -v /dev/md0 /mnt/md0
40mount: /dev/md0 mounted on /mnt/md0.
41root@cinderella:~# ls -la /mnt/md0
42total 36
43drwxr-xr-x 6 root root 4096 Feb 18 22:40 .
44drwxr-xr-x 4 root root 4096 Feb 18 22:34 ..
45drwxr-xr-x 7 mauro mauro 4096 Feb 23 2018 etherpad
46drwx------ 2 root root 16384 Feb 18 11:10 lost+found
47drwxr-xr-x 16 mauro mauro 4096 Nov 10 11:42 mauro
48drwxr-xr-x 127 mcon mcon 4096 Feb 19 15:09 mcon
49root@cinderella:~#