I’m following this guide for a Raid 0 array but arrays don’t persist even with the mdadm --detail --scan into /etc/mdadm.conf file
If anyone can help me set this up, please. I don’t find a step to step guides for Manjaro
sudo mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/sda /dev/sdb
[sudo] password for ccheco:
mdadm: chunk size defaults to 512K
mdadm: partition table exists on /dev/sda
mdadm: partition table exists on /dev/sda but will be lost or
meaningless after creating array
mdadm: partition table exists on /dev/sdb
mdadm: partition table exists on /dev/sdb but will be lost or
meaningless after creating array
Continue creating array? y
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md0 started.
$ cat /proc/mdstat
Personalities : [raid0]
md0 : active raid0 sdb[1] sda[0]
976508928 blocks super 1.2 512k chunks
unused devices: <none>
$df -h -x devtmpfs -x tmpfs
df: /run/user/1000/doc: Operation not permitted
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p1 216G 11G 206G 5% /
/dev/nvme0n1p3 1023M 312K 1023M 1% /boot/efi
/dev/md0 932G 5.9G 926G 1% /media/files
$sudo mkfs.f2fs -f /dev/md0
F2FS-tools: mkfs.f2fs Ver: 1.14.0 (2020-08-24)
Info: Disable heap-based policy
Info: Debug level = 0
Info: Trim is enabled
Info: Segments per section = 1
Info: Sections per zone = 1
Info: sector size = 512
Info: total sectors = 1953017856 (953622 MB)
Info: zone aligned segment0 blkaddr: 512
Info: format version with
"Linux version 5.8.16-2-MANJARO (builduser@development) (gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35) #1 SMP PREEMPT Mon Oct 19 11:33:03 UTC 2020"
Info: [/dev/md0] Discarding device
Info: This device doesn't support BLKSECDISCARD
Info: Discarded 953622 MB
Info: Overprovision ratio = 0.210%
Info: Overprovision segments = 1957 (GC reserved = 960)
Info: format successful
$sudo mdadm --detail --scan | sudo tee -a /etc/mdadm.conf
ARRAY /dev/md0 metadata=1.2 name=carlos-ab350gaming3:0 UUID=a1a1abab:983192b0:15c43b3a:bfd43841
$sudo mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux58.preset: 'default'
-> -k /boot/vmlinuz-5.8-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.8-x86_64.img
==> Starting build: 5.8.16-2-MANJARO
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [mdadm_udev]
Custom /etc/mdadm.conf file will be used in initramfs for assembling arrays.
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.8-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux58.preset: 'fallback'
-> -k /boot/vmlinuz-5.8-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.8-x86_64-fallback.img -S autodetect
==> Starting build: 5.8.16-2-MANJARO
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [mdadm_udev]
Custom /etc/mdadm.conf file will be used in initramfs for assembling arrays.
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.8-x86_64-fallback.img
==> Image generation successful