Linux RAID subsystem development
 help / color / mirror / Atom feed
From: Sarah Newman <srn@prgmr.com>
To: Mr Typo <euroregistrar@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: md0 device gone, disks busy
Date: Thu, 10 Aug 2017 19:55:03 -0700	[thread overview]
Message-ID: <f99b9fb1-e71b-33ad-4145-1ce53d926d53@prgmr.com> (raw)
In-Reply-To: <CAHnOR0OrjQD2=o4uSU4N3_W+UvHQzpcW=oYB0cmPU_kPQxzhcg@mail.gmail.com>

On 08/10/2017 01:26 PM, Mr Typo wrote:
> Hello everyone,
> 
> i had a power outage 2 days ago and when i came home i found my linux
> box not booting up anymore. After some commands i found out that there
> is a problem with a device not beeing mounted because md0 is missing.
> 
> I tried to find out what is going on, but i cannot understand what is
> going on.  i hope you can help me. Linux is a CentOS7.
> 
> I am posting the current status of the box below:
> 
> thank you all in advance
> 
> kind regards
> Andy

> [root@quad ~]# mdadm -Esv
> ARRAY /dev/md/0  level=raid5 metadata=1.2 num-devices=4
> UUID=9d020f27:c0542472:b95a18d2:5741114d name=quad.:0
>    devices=/dev/sda1,/dev/sdb1,/dev/sdc1,/dev/sdd1

It's running, it's just called /dev/md/0 instead. You should be able to temporarily change the name with

mdadm --stop /dev/md/0
mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1

I think for centos 7, to change what happens on boot you can edit /etc/mdadm.conf to explicitly name the array and run 'dracut -f' to update the
initial ram disk that loads on boot before the actual root file system is mounted. 'man mdadm.conf' has an example of the mdadm.conf syntax.

--Sarah

      reply	other threads:[~2017-08-11  2:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-10 20:26 md0 device gone, disks busy Mr Typo
2017-08-11  2:55 ` Sarah Newman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f99b9fb1-e71b-33ad-4145-1ce53d926d53@prgmr.com \
    --to=srn@prgmr.com \
    --cc=euroregistrar@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox