Carlos Aguni

Highly motivated self-taught IT analyst. Always learning and ready to explore new skills. An eternal apprentice.


mdadm cheat sheet

26 Feb 2022 »
mdadm -C /dev/md0 -l 1 -n 2 /dev/sdb1 /dev/sdc1

stop

mdadm --stop /dev/md0
mkfs.ext4 -E lazy_itable_init /dev/sd1

list

https://serverfault.com/questions/650151/how-do-i-list-which-drives-are-part-of-each-raid-array

cat /proc/mdstat

$ cat /proc/mdstat 

Personalities : [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [linear] [multipath] 
md0 : active raid1 sdf2[1] sde2[0]
      81854336 blocks super 1.2 [2/2] [UU]

md127 : active raid0 sdf3[1] sde3[0]
      286718976 blocks super 1.2 512k chunks

unused devices: <none>