= disco verification = ubuntu@ip-172-30-0-118:~$ sudo mdadm --create /dev/md0 --run --metadata=default --level=0 --raid-devices=2 /dev/xvdb /dev/xvdc mdadm: Fail create md0 when using /sys/module/md_mod/parameters/new_array mdadm: array /dev/md0 started. ubuntu@ip-172-30-0-118:~$ cat /proc/mdstat Personalities : [raid0] md0 : active raid0 xvdc[1] xvdb[0] 3141632 blocks super 1.2 512k chunks
unused devices: <none>
## kernel & mdadm upgrade ubuntu@ip-172-30-0-118:~$ dmesg | grep raid [ 2.419732] md: If you don't use raid, use raid=noautodetect [ 4.990204] md/raid0:md0: cannot assemble multi-zone RAID0 with default_layout setting [ 4.997283] md/raid0: please set raid0.default_layout to 1 or 2 ubuntu@ip-172-30-0-118:~$ sudo mdadm --stop /dev/md0 mdadm: stopped /dev/md0 ubuntu@ip-172-30-0-118:~$ sudo mdadm --assemble -U layout-original /dev/md0 /dev/xvdb /dev/xvdc mdadm: /dev/md0 has been started with 2 drives. ubuntu@ip-172-30-0-118:~$ cat /proc/mdstat Personalities : [raid0] md0 : active raid0 xvdb[0] xvdc[1] 3141632 blocks super 1.2 512k chunks
## reboot
ubuntu@ip-172-30-0-118:~$ dmesg | grep raid [ 2.545479] md: If you don't use raid, use raid=noautodetect ubuntu@ip-172-30-0-118:~$ cat /proc/mdstat Personalities : [raid0] md0 : active raid0 xvdb[0] xvdc[1] 3141632 blocks super 1.2 512k chunks
unused devices: <none> ubuntu@ip-172-30-0-118:~$ sudo mdadm --stop /dev/md0 mdadm: stopped /dev/md0 ubuntu@ip-172-30-0-118:~$ sudo mdadm --create /dev/md0 --run --metadata=default --level=0 --raid-devices=2 /dev/xvdc /dev/xvdb mdadm: /dev/xvdc appears to be part of a raid array: level=raid0 devices=2 ctime=Fri Dec 6 21:57:50 2019 mdadm: /dev/xvdb appears to be part of a raid array: level=raid0 devices=2 ctime=Fri Dec 6 21:57:50 2019 mdadm: array /dev/md0 started. ubuntu@ip-172-30-0-118:~$ sudo mdadm --detail /dev/md0 | grep Layout Layout : original
= disco verification = ip-172- 30-0-118: ~$ sudo mdadm --create /dev/md0 --run --metadata=default --level=0 --raid-devices=2 /dev/xvdb /dev/xvdc md_mod/ parameters/ new_array ip-172- 30-0-118: ~$ cat /proc/mdstat
ubuntu@
mdadm: Fail create md0 when using /sys/module/
mdadm: array /dev/md0 started.
ubuntu@
Personalities : [raid0]
md0 : active raid0 xvdc[1] xvdb[0]
3141632 blocks super 1.2 512k chunks
unused devices: <none>
## kernel & mdadm upgrade ip-172- 30-0-118: ~$ dmesg | grep raid layout to 1 or 2 ip-172- 30-0-118: ~$ sudo mdadm --stop /dev/md0 ip-172- 30-0-118: ~$ sudo mdadm --assemble -U layout-original /dev/md0 /dev/xvdb /dev/xvdc ip-172- 30-0-118: ~$ cat /proc/mdstat
ubuntu@
[ 2.419732] md: If you don't use raid, use raid=noautodetect
[ 4.990204] md/raid0:md0: cannot assemble multi-zone RAID0 with default_layout setting
[ 4.997283] md/raid0: please set raid0.default_
ubuntu@
mdadm: stopped /dev/md0
ubuntu@
mdadm: /dev/md0 has been started with 2 drives.
ubuntu@
Personalities : [raid0]
md0 : active raid0 xvdb[0] xvdc[1]
3141632 blocks super 1.2 512k chunks
unused devices: <none>
## reboot
ubuntu@ ip-172- 30-0-118: ~$ dmesg | grep raid ip-172- 30-0-118: ~$ cat /proc/mdstat
[ 2.545479] md: If you don't use raid, use raid=noautodetect
ubuntu@
Personalities : [raid0]
md0 : active raid0 xvdb[0] xvdc[1]
3141632 blocks super 1.2 512k chunks
unused devices: <none> ip-172- 30-0-118: ~$ sudo mdadm --stop /dev/md0 ip-172- 30-0-118: ~$ sudo mdadm --create /dev/md0 --run --metadata=default --level=0 --raid-devices=2 /dev/xvdc /dev/xvdb ip-172- 30-0-118: ~$ sudo mdadm --detail /dev/md0 | grep Layout
ubuntu@
mdadm: stopped /dev/md0
ubuntu@
mdadm: /dev/xvdc appears to be part of a raid array:
level=raid0 devices=2 ctime=Fri Dec 6 21:57:50 2019
mdadm: /dev/xvdb appears to be part of a raid array:
level=raid0 devices=2 ctime=Fri Dec 6 21:57:50 2019
mdadm: array /dev/md0 started.
ubuntu@
Layout : original