LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 08-12-2010, 05:30 AM   #1
babunix
Member
 
Registered: Jul 2010
Location: India
Distribution: RHEL, Ubuntu
Posts: 35

Rep: Reputation: Disabled
mdadm: No arrays found in config file


Hello friends,

OS redhat enterprise linux 5.1

I have create raid 5 array in redhat linux and it is working fine.
When i run

Code:
mdadm --assemble --scan -v
i get mdadm: No arrays found in config file

So i search in google and they say create mdadm.conf file
So i create /etc/mdadm.conf file
Code:
echo DEVICE /dev/sda{5,6,7} > /etc/mdadm.conf
mdadm --detail --scan >> /etc/mdadm.conf
Code:
cat /etc/mdadm.conf

DEVICE /dev/sda5 /dev/sda6 /dev/sda7
ARRAY /dev/md0 level=raid5 num-devices=3 UUID=f0163438:868539fc:8830ed40:0839a9f2
still i get same error.

What is wrong with me? How to resolve this?

Thanks,
 
Old 08-13-2010, 02:57 PM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
In Redhat, is it?

(1) /etc/mdadm.conf

or

(2) /etc/mdadm/mdadm.conf
 
Old 08-14-2010, 04:41 AM   #3
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
@ mostlyharmless
As per mdadm man page configuration file is /etc/mdadm.conf

Code:
/etc/mdadm.conf
       The config file lists which devices may be scanned to see if they contain MD super block,  and  gives  identifying  information  (e.g.
       UUID) about known MD arrays.  See mdadm.conf(5) for more details.
@ babunix

i don't know why this error occure i am also face same so what i did.

Code:
mdadm -A /dev/md1 /dev/sda1 /dev/sdb1 /dev/sdc1
change raid and device as your env.

Last edited by sem007; 08-14-2010 at 04:44 AM. Reason: provide more details
 
Old 08-16-2010, 06:50 AM   #4
babunix
Member
 
Registered: Jul 2010
Location: India
Distribution: RHEL, Ubuntu
Posts: 35

Original Poster
Rep: Reputation: Disabled
Hi sem007

Quote:
i don't know why this error occure i am also face same so what i did.

Code:

mdadm -A /dev/md1 /dev/sda1 /dev/sdb1 /dev/sdc1

change raid and device as your env.
it is working and assamble my array but question is still why system not able to access/read mdad.conf?

???
 
Old 07-09-2011, 04:11 AM   #5
gajanan_ghosalkar
LQ Newbie
 
Registered: Jul 2011
Posts: 2

Rep: Reputation: Disabled
what should i do, if i want to answer any particular question as i know
 
Old 07-09-2011, 04:13 AM   #6
gajanan_ghosalkar
LQ Newbie
 
Registered: Jul 2011
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by mostlyharmless View Post
In Redhat, is it?

(1) /etc/mdadm.conf

or

(2) /etc/mdadm/mdadm.conf

it is (1) /etc/mdadm.conf
 
Old 07-09-2011, 03:14 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by gajanan_ghosalkar View Post
what should i do, if i want to answer any particular question as i know
Might also want to pay attention to the dates on the threads...this one is almost a YEAR OLD.
 
Old 08-28-2018, 01:04 PM   #8
zillur
Member
 
Registered: Apr 2015
Posts: 217

Rep: Reputation: Disabled
Having the same problem, Have no conf file in /etc

Hi,
I am having the same problem.
Code:
 sudo mdadm --assemble --scan --force
mdadm: No arrays found in config file or automatically
I don't have any mdadm.conf in /etc or any subdirectory of /etc. Is it possible to be located in other directory? In the man page, it only mention about /etc.
But I have a megaraid card and driver.Here is my /var/log/messeages (raid_part)
Code:
Aug 27 22:52:18 genomics kernel: megaraid_sas 0000:02:00.0: Waiting for FW to come to ready state
Aug 27 22:54:03 genomics kernel: megaraid_sas 0000:02:00.0: Diag reset adapter never cleared megasas_adp_reset_fusion 3552
Aug 27 22:54:03 genomics kernel: megaraid_sas 0000:02:00.0: FW restarted successfully from megasas_init_fw!
Aug 27 22:54:33 genomics kernel: megaraid_sas 0000:02:00.0: Waiting for FW to come to ready state
Aug 27 22:54:33 genomics kernel: megaraid_sas 0000:02:00.0: Failed from megasas_init_fw 5543
Any suggestions?
Thanks in advance.
Best Rgerds
Zillur
 
Old 08-29-2018, 08:16 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by zillur View Post
Hi,
I am having the same problem.
Code:
 sudo mdadm --assemble --scan --force
mdadm: No arrays found in config file or automatically
I don't have any mdadm.conf in /etc or any subdirectory of /etc. Is it possible to be located in other directory? In the man page, it only mention about /etc.
But I have a megaraid card and driver.Here is my /var/log/messeages (raid_part)
Code:
Aug 27 22:52:18 genomics kernel: megaraid_sas 0000:02:00.0: Waiting for FW to come to ready state
Aug 27 22:54:03 genomics kernel: megaraid_sas 0000:02:00.0: Diag reset adapter never cleared megasas_adp_reset_fusion 3552
Aug 27 22:54:03 genomics kernel: megaraid_sas 0000:02:00.0: FW restarted successfully from megasas_init_fw!
Aug 27 22:54:33 genomics kernel: megaraid_sas 0000:02:00.0: Waiting for FW to come to ready state
Aug 27 22:54:33 genomics kernel: megaraid_sas 0000:02:00.0: Failed from megasas_init_fw 5543
Any suggestions?
This thread had been closed for SEVEN YEARS, before you reopened it. And while the mdadm.conf file can be located anywhere, it's typically not. And you don't provide any details about your system, version/distro of Linux, or if this is a new or existing issue. If you have a megaraid controller...are you *SURE* that the array is not defined in BIOS, and is presenting to your system as a single drive?

And you may want to open your own thread for your own question, providing these details.
 
  


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
mdadm and degraded arrays radnoran Linux - Newbie 1 01-11-2010 01:18 PM
parition type for mdadm raid arrays ljwobker Linux - Server 0 01-08-2009 05:29 PM
mdadm says "mdadm: /dev/md1 not identified in config file" when booting FC7 raffeD Linux - Server 1 08-11-2008 11:47 AM
mdadm: no devices ... were found after RAID0 install hedpe Linux - Software 4 06-28-2007 01:38 PM
Devil-Linux boot process hangs after config file is found. meal3837 Linux - Distributions 0 08-11-2006 01:34 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 03:18 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