linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Kővári Péter" <peter@kovari.priv.hu>
To: linux-raid@vger.kernel.org
Subject: RE: Recovering RAID set after OS disk failed
Date: Mon, 2 Jun 2014 14:36:50 +0200	[thread overview]
Message-ID: <000801cf7e5f$53ffce20$fbff6a60$@kovari.priv.hu> (raw)
In-Reply-To: <7C19F7E4-7354-4C2C-A53E-DA546B569201@sbcglobal.net>

Hi Davide,

Open / ssh a console on your NAS box, and issue the following command and send us the results: 
$ cat /proc/mdstat

Please also issue the following commands

mdadm --examine /dev/sdX[Y]

Where X is one of the raid drive's name and Y is the partition number, if you created the raid set on partitions. (If not, then leave the number.) So, for example (assuming that your OS drive is /dev/sda, so your raid drives are /dev/sdb, /dev/sdc and so on) issue the following commands:

$ mdadm --examine /dev/sdb
or
$ mdadm --examine /dev/sdb1

and so on for all 4 drives. And send back the results.

p.s.
Before everything else,  you might try  auto assembling th eset by:
$ mdadm -v --assemble --scan

It might assemble your raid set for you successfully out of the box.  (If not, send here the output.)
If this assembles your set successfully, then you just need to save your config in /etc/mdam/mdadm.conf, do an initramfs update and you are good to go.
So to save the config issue:
$ mdadm --examine --scan >> /etc/mdadm/mdadm.conf

then update initramfs so th eset will auto assmble on next boot:
$ update-initramfs -k all -u

Best regards,
Peter
---------------------------------------------------------------------------------------------------------------
: peter@kovari.priv.hu
: pkovari@gmail.com
:  www.kovari.priv.hu

-----Original Message-----
From: linux-raid-owner@vger.kernel.org [mailto:linux-raid-owner@vger.kernel.org] On Behalf Of Davide Guarisco
Sent: Monday, June 2, 2014 7:38 AM
To: linux-raid@vger.kernel.org
Subject: Recovering RAID set after OS disk failed

Hello and sorry if this is not the place for a relatively “newbie” question.

Five years ago I built a NAS box running on Ubuntu server then-current version. The NAS has 4 SATA drives (the RAID set) and a PATA system drive (for the OS). Now the system drive has failed (click of death). I believe the that RAID data is still safe and sound, but my question is how to proceed in such a scenario. (I do have a backup but it’s fairly old). I do not remember exactly how I created the RAID set, other than being with mdadm and probably RAID 5. 

I have now replaced the failed PATA drive with a new 32 GB PATA SSD, and installed Ubuntu Server 14.04. The system is up and running and it sees the four SATA drives. I have installed Webmin and I am ready to recover the RAID set. 


I read the Wiki and it suggests running a “permutation” Perl script. Is this a reasonable thing to do? 
I could not find much information on a case like this in a Goole search, so any help appreciated. 




--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2014-06-02 12:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-02  5:37 Recovering RAID set after OS disk failed Davide Guarisco
2014-06-02 12:36 ` Kővári Péter [this message]
2014-06-03  5:49   ` Davide Guarisco
2014-06-03  6:05     ` Eyal Lebedinsky
2014-06-04  5:00       ` Davide Guarisco
2014-06-04  5:20         ` Eyal Lebedinsky
2014-06-08  4:57           ` Davide Guarisco

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='000801cf7e5f$53ffce20$fbff6a60$@kovari.priv.hu' \
    --to=peter@kovari.priv.hu \
    --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;
as well as URLs for NNTP newsgroup(s).