0

I'm trying to get my RAID 1 device to work after I upgraded my router's OS (based on OpenWRT).

The RAID device is listed as /dev/md0:

# lsblk -o NAME,SIZE,MOUNTPOINT,STATE,FSTYPE,MODEL,SERIAL,UUID,LABEL

NAME           SIZE MOUNTPOINT STATE   FSTYPE            MODEL            SERIAL     UUID                                 LABEL
sda          465.9G            running                   Transcend                                                        
└─sda1       465.9G /srv               btrfs                                         b8182a41-cc7f-40e6-8ec1-ca670db70625 Jetdrive
sdb            1.8T            running linux_raid_member ST32000542AS                69c415bb-716b-8e0b-b03d-721888a9cb05 turris:0
└─md0          1.8T                    btrfs                                         47039540-3842-4b2b-be2b-b8f76e88189b 
sdc            1.8T            running linux_raid_member ST32000542AS                69c415bb-716b-8e0b-b03d-721888a9cb05 turris:0
└─md0          1.8T                    btrfs      

I'm attempting to mount the device to /mnt/raid:

# cat /etc/config/fstab

config global
    option anon_swap '0'
    option anon_mount '0'
    option auto_swap '1'
    option auto_mount '1'
    option delay_root '5'
    option check_fs '0'

config mount
    option device '/dev/md0'
    option target '/mnt/raid'
    option enabled '1'

Forcing the mount had no effect*:

# ll /mnt/raid
-rw-r--r--    1 root     root             0 Oct 16 07:04 RAID device not mounted
  • I created a zero-byte file in /mnt/raid for testing purpose; when the drive is mounted the file is not listed.

What am I missing/doing wrong?

** edit **

I was able to mount the drive manually:

# mount /dev/md0 /mnt/raid

# ls /mnt/raid
Documentation  Images         Media          Software       Time Capsules  tmp

Why wont' the device mount on reboot or via Luci?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.