My RAID won’t mount, it would seem, as a result of the 5.x update.
The rc.local
should force the RAID’s creation, but doesn’t.
# /etc/rc.local
# Disable NCQ (fix RAID issue)
echo 1 > /sys/block/sda/device/queue_depth
echo 1 > /sys/block/sdb/device/queue_depth
# /fix
# https://linux.die.net/man/8/hdparm
# set HD sleep to 15 minutes (180 intervals of 5 seconds/60 seconds/minute)
hdparm -S 180 /dev/sda
hdparm -S 180 /dev/sdb
# start RAID array
mdadm --assemble --force /dev/md0 /dev/sda /dev/sdb
exit 0
If I run mdadm --assemble --force /dev/md0 /dev/sda /dev/sdb
manually, the device appears to be mounted:
# lsblk -o NAME,SIZE,MOUNTPOINT,STATE,FSTYPE,MODEL,SERIAL,UUID,LABEL
NAME SIZE MOUNTPOINT STATE FSTYPE MODEL SERIAL UUID LABEL
sda 1.8T running linux_raid_member ST32000542AS 218644db-21b7-7817-36c7-653d201f9ed5 turris:0
└─md0 1.8T
sdb 1.8T running linux_raid_member ST32000542AS 218644db-21b7-7817-36c7-653d201f9ed5 turris:0
└─md0 1.8T
mtdblock0 1M
mtdblock1 7M
mmcblk0 7.3G 0x0ea2ec8d
└─mmcblk0p1 7.3G / btrfs 03e745f9-b279-4219-bca9-45ff92000aec
mmcblk0boot0 4M
mmcblk0boot1 4M
For some reason, /dev/md0
isn’t listed in the mount points:
I was hoping to mount it to /mnt/raid
, which still exists.
I have a separate, external SSD drive that I’m mapping to /srv
. I disconnected it to ensure that the two, RAID devices were seen as /dev/sda
and /dev/sdb
.
Is this relevant?
etc/config/storage
config srv 'srv'
option raid 'custom'
option uuid ''
option old_uuid ''
#config srv 'srv'
# option raid 'custom'
# option uuid '6b22cea8-8369-4983-b9fc-ae1fddce71f1'
Any suggestion would be appreciated.