You are not logged in.

#1 2015-12-29 14:37:05

_pheinrich_
Member
Registered: 2014-05-26
Posts: 53

mdadm and fstab fails

Hi,

I have successfully set up my fakeraid (raid1) with mdadm.

The device is showing up in /dev/md/DATA_MIRROR_0

I am able to mount this via "mount /dev/md/DATA_MIRROR_0 /srv/data" if the system is up.

But with this fstab the boot process fails:

# /dev/sdc2 LABEL=ARCH
UUID=0a2d4862-e261-46f1-a1cd-e3c2e53a7787       /               ext4            rw,relatime,data=ordered        0 1

# /dev/md/DATA_ARRAY_0
/dev/md/DATA_MIRROR_0                          /srv/data       ext4            defaults                        0 2

# /dev/sdc1
UUID=F505-CCD0                                  /boot           vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro    0 2

I dont know why but it seems that this device is not ready ?!?

srv-data.mount is trying to mount the /dev/md126 device to /srv/data and fails with "device or resource busy".


/dev/sda: TYPE="isw_raid_member"
/dev/sdc1: UUID="F505-CCD0" TYPE="vfat" PARTLABEL="EFI System" PARTUUID="408bb3e6-673a-412f-8a05-55395f4d98a6"
/dev/sdc2: LABEL="ARCH" UUID="0a2d4862-e261-46f1-a1cd-e3c2e53a7787" TYPE="ext4" PARTLABEL="Linux filesystem" PARTUUID="b426547d-0a83-4cf0-b82f-8e7f772631c8"
/dev/md126: UUID="ac3e5519-8ad3-4fdb-8998-7f2ca853fb9c" TYPE="ext4"
/dev/sdb: TYPE="isw_raid_member"

also using the uuid in the fstab does not work

Edit 1:

I have added the ARRAY definition in my /dev/mdadm.conf
So while creating the initramfs via "mkinifs -p linux" this file is recognized.

Here's the status while booting ...
DSC_0546-1SXzxF0Q.1451419431.JPG

Last edited by _pheinrich_ (2015-12-29 20:05:20)

Offline

Board footer

Powered by FluxBB