LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 04-22-2021, 03:34 AM   #1
nydas
LQ Newbie
 
Registered: Apr 2021
Posts: 1

Rep: Reputation: Disabled
Mdadm can't find array on boot, but mounts manually on login


Hi,

First post here, and I hope someone can help me.

I've got a fresh install of Gentoo on a 2TB disk - sda - and then 4x 4TB disks - sd{f,g,h,i} - on which I've used mdadm to build a RAID6 array. This array is listed in my fstab to mount as /home.

On boot, I get an error notification:

Code:
mdadm: No arrays found in config file or automatically
Checking local filesystems ...
/dev/sda3: clean, 363490/111599616 files, 9038029/446369814 blocks
fsck.ext4: Unable to resolve 'UUID=0534d246-53df-4bf5-b03e-47200d9557dd'
followed by:

Code:
mount: /home: can't find UUID=0534d246-53df-4bf5-b03e-47200d9557dd
Some local filesystem failed to mount
Once I login, I see that it's failed to mount. That said, if I run 'mount -a' then it will mount fine.

mdadm --detail --scan shows the following:
Code:
ARRAY /dev/md/livecd:NydasCoreRaid1 metadata=1.2 name=livecd:NydasCoreRaid1 UUID=63fa5173:12b79cb4:e75da233:4986f28d
blkid /dev/md127 shows the following;
Code:
/dev/md127: LABEL="NydasCoreRaid1" UUID="0534d246-53df-4bf5-b03e-47200d9557dd" BLOCK_SIZE="4096" TYPE="ext4"
I generated an initramfs using the following:

Code:
genkernel --install --mdadm initramfs
Followed by:
Code:
grub-mkconfig -o /boot/grub/grub.cfg
So I *think* mdadm is running. I just can't get it to see the array. Oh, my /etc/mdadm.conf is completely hashed (#) out. However it says in the first line of the comments that it should run successfully without the file.

Your assistance would be really appreciated. First time I've used mdadm and first time I've used Gentoo. Hoping I haven't bitten off more than I can chew :-/

Andy
 
Old 04-26-2021, 09:31 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,147

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
Did you create the RAID on partitions or whole disks? For gpt partitions you can set a RAID flag. For a whole disk, there is no label, so the RAID needs to be found by reading mdadm.conf on the root partition.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 32GB USB drive mounts Read Only while 4GB mounts RW CollieJim Ubuntu 10 06-13-2020 07:11 AM
Broken mdadm RAID0 array, but data is there, only can't mount it. trancephorm Linux - Software 1 02-19-2014 04:59 PM
I can't find my MDADM array to kill it jbruyet Linux - Software 5 04-09-2013 08:07 PM
[SOLVED] mdadm: only give one device per ARRAY line: /dev/md/:raid and array laughing_man77 Linux - Hardware 4 03-23-2012 04:05 PM
unable to load MDADM module BUT mdadm works?!?!?! alirezan1 Linux - Software 2 09-08-2008 07:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 09:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration