Jump to content

 

I'm building a 4-drive NAS with my raspi5, using the Radxa Penta Sata Hat. I’m using mdadm to create the raid. I've built and mounted the Raid0, and successfully had it online and usable by my PC. However, after writing some data on it, at some point the raid array comes completely unresponsible, and gives me this error message when i try to test the array's speed internally:

Quote

>mustikka@raspberrypi:\~ $ lsblk

>NAME        MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINTS

>sda           8:0    0  3.6T  0 disk

>└─md127       9:127  0 14.6T  0 raid0 /mnt/raid0

>sdb           8:16   0  3.6T  0 disk

>└─md127       9:127  0 14.6T  0 raid0 /mnt/raid0

>sdc           8:32   0  3.6T  0 disk

>└─md127       9:127  0 14.6T  0 raid0 /mnt/raid0

>sdd           8:48   0  3.6T  0 disk

>└─md127       9:127  0 14.6T  0 raid0 /mnt/raid0

>mmcblk0     179:0    0   58G  0 disk

>├─mmcblk0p1 179:1    0  512M  0 part  /boot/firmware

>└─mmcblk0p2 179:2    0 57.4G  0 part  /

>mustikka@raspberrypi:\~ $ sudo dd if=/dev/zero of=/dev/md127 bs=32M status=progress count=100 oflag=direct

>dd: error writing '/dev/md127': Input/output error

>1+0 records in

>0+0 records out

>0 bytes copied, 0.0208862 s, 0.0 kB/s

This command works right after the creation of thr array. 

Now, if I try to reboot the NAS, I'm quite certain it will throw me into emergency mode as that happened to me earlier. The reason for this was stated to be faulty /etc/fstab, as thats where i had entered the device to be auto-mounted on startup. 

This problem has been repeatable like 3 times by now, as i have rebuilt the array in raid0 and raid5. 

All hardware is brand new.

Link to comment
https://linustechtips.com/topic/1582826-raid-array-stops-working/
Share on other sites

Link to post
Share on other sites

what does 
`cat /proc/mdstat`
show?

 

2 hours ago, nitroGen said:

faulty /etc/fstab

TBH, I ran mdadm for AGES and never got fstab to work. It was.... annoying. 
I also had to rebuild the array (--assume-clean is bae) every time. 

 

2 hours ago, nitroGen said:

md127      

This looks like a bugged array, unless you specifically named it md127, it is usually md0. I'd guess the strat would be to destroy and rebuild the array

 

Finally, what command are you using to build the array?

5950X/4090FE primary rig  |  1920X/1070Ti Unraid for dockers  |  200TB TrueNAS w/ 1:1 backup

Link to post
Share on other sites

1 hour ago, OddOod said:

what does 
`cat /proc/mdstat`
show?

 

TBH, I ran mdadm for AGES and never got fstab to work. It was.... annoying. 
I also had to rebuild the array (--assume-clean is bae) every time. 

 

This looks like a bugged array, unless you specifically named it md127, it is usually md0. I'd guess the strat would be to destroy and rebuild the array

 

Finally, what command are you using to build the array?

It show up as md0 when configuring it for the first time, but renames to md127 after the first reboot. 

The command im using is 

Quote

sudo mdadm --create --verbose /dev/md0 --level=5 --raid-devices=4 /dev/sda /dev/sdb /dev/sdc /dev/sdd

 

Link to post
Share on other sites

15 minutes ago, nitroGen said:

renames to md127 after the first reboot

Yeah, pull it from fstab and make a lil txt doc that lives *not* on the array with a list of instructions to rebuild it. Mine basically read "stop array, destroy array, create array with --assume-clean" but with the actual commands typed out. 
I have no idea why this happens, but in the near decade I ran my Lenovo TS440 with mdadm, I only actually rebooted it a couple dozen times. 

5950X/4090FE primary rig  |  1920X/1070Ti Unraid for dockers  |  200TB TrueNAS w/ 1:1 backup

Link to post
Share on other sites

md127 indicates something is probably messed up with your UUID's. We have discussed this in a previous thread.


I assume there's nothing on this array since you're having troubles with initially building it. 

You can try fixing it by doing the below:

 

Scan and Update the configuration:

sudo mdadm --detail --scan | sudo tee /etc/mdadm/mdadm.conf

Update the initramfs so new config is applied at reboot. Then reboot the server

sudo update-initramfs -u

Verify your Array status

cat /proc/mdstat

Make sure you've created a mountpoint e.g

sudo mkdir /mnt/myraid

Test mounting of the new raid

sudo mount /dev/md0 /mnt/myraid

Update your fstab to automatically mount it

sudo nano /etc/fstab

Remove/Comment out any existing line you might have created; and add a basic mount

/dev/md0  /mnt/myraid  ext4  defaults  0  2

Test the FSTAB by trying to mount it again

sudo mount /mnt/myraid

 

 

 

 

If you're still having trouble then provide the following

sudo mdadm --detail --scan
sudo blkid


 

Spoiler

Desktop: Ryzen9 5950X | ASUS ROG Crosshair VIII Hero (Wifi) | EVGA RTX 3080Ti FTW3 | 32GB (2x16GB) Corsair Dominator Platinum RGB Pro 3600Mhz | EKWB EK-AIO 360D-RGB | EKWB EK-Vardar RGB Fans | 1TB Samsung 980 Pro, 4TB Samsung 980 Pro | Corsair 5000D Airflow | Corsair HX850 Platinum PSU | Asus ROG 42" OLED PG42UQ + LG 32" 32GK850G Monitor | Roccat Vulcan TKL Pro Keyboard | Logitech G Pro X Superlight  | MicroLab Solo 7C Speakers | Audio-Technica ATH-M50xBT2 LE Headphones | TC-Helicon GoXLR | Audio-Technica AT2035 | LTT Desk Mat | XBOX-X Controller | Windows 11 Pro

 

Spoiler

Server: Fractal Design Define R6 | Ryzen 3950x | ASRock X570 Taichi | Asus RTX 4060 Dual OC | 64GB (4x16GB) Corsair Vengeance LPX 3000Mhz | Corsair RM850v2 PSU | Fractal S36 Triple AIO + 4 Additional Venturi 120mm Fans | 8 x 20TB Seagate Exos X22 | 4 x 16TB Seagate Exos X18 | 3 x 2TB Samsung 970 Evo Plus NVMe | LSI 9211-8i HBA

 

Spoiler

NAS: Innovision 4U 24-bay chassis (12GB MiniHD SGIO Backplane) | Intel Core i9-10980xe | EVGA X299 FTW-K | EVGA RTX 2080Ti Super FTW3 | 128GB (8x16GB) Corsair Vengeance LPX 3200Mhz | DEEPCOOL PN1000M PSU| Noctua NH-D12L Chromax Black | 16 x 16TB Seagate Exos X18 | 2 x 2TB Samsung 990 Pro | 2 x 2TB Intel U.2 P4510 | LSI 9305-24i HBA

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×