All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wols Lists <antlists@youngman.org.uk>
To: Peter Sangas <pete@wnsdev.com>, linux-raid@vger.kernel.org
Subject: Re: Read data from disk that was part of RAID1 array
Date: Sun, 19 Mar 2017 10:18:32 +0000	[thread overview]
Message-ID: <58CE5AF8.5070907@youngman.org.uk> (raw)
In-Reply-To: <000c01d29f74$ae85c230$0b914690$@wnsdev.com>

On 17/03/17 23:17, Peter Sangas wrote:
> 
> 
>> From: Peter Sangas [mailto:pete@wnsdev.com]
>> I have only one disk from a RAID1 array and I would like to read data from
> one of the
>> partitions.  This there a way to mount this and read the data?
> 
> This worked for me:
> 
> mdadm --create /dev/md10 -l 1 -n 2 /dev/sda missing     md10 is chosen to
> avoid conflicts with existing RAID1
> 
> mount /dev/md10 /mnt 
> 
NEVER NEVER NEVER use --create !!!

YOU WERE LUCKY !!!

Use something like --assemble --force, which will set up a working array
if it can. If that had been an old array, with a different offset or
superblock or the like, you would have trashed the superblock and
created a new array, which thought that the data in the array was
somewhere other than where it really was.

At which point, it would have been "go to your backups" or a major
forensic recovery.

Cheers,
Wol


  reply	other threads:[~2017-03-19 10:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-16 22:18 Read data from disk that was part of RAID1 array Peter Sangas
2017-03-16 22:31 ` Reindl Harald
2017-03-17 23:17 ` Peter Sangas
2017-03-19 10:18   ` Wols Lists [this message]
2017-03-20 17:37     ` Peter Sangas
2017-03-20 19:33       ` Wols Lists

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=58CE5AF8.5070907@youngman.org.uk \
    --to=antlists@youngman.org.uk \
    --cc=linux-raid@vger.kernel.org \
    --cc=pete@wnsdev.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.