From: Phil Turmel <philip@turmel.org>
To: Chris Finley <debenbain@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Wiki-recovering failed raid, overlay problem
Date: Sat, 01 Jun 2013 19:30:05 -0400 [thread overview]
Message-ID: <51AA83FD.8080500@turmel.org> (raw)
In-Reply-To: <CAGXrYFTamGFyiOz34ZV+zaoXMA3D9z-eJjco3gApdK95QR9fPg@mail.gmail.com>
Hi Chris,
On 06/01/2013 02:23 AM, Chris Finley wrote:
> I am trying to recover a failed Raid 5 array by following the guide at
> https://raid.wiki.kernel.org/index.php/Recovering_a_failed_software_RAID
Stop. Report the *critical* details of your setup. At least:
1) "mdadm -E /dev/sdXX" for every member device of the raid.
2) "dmesg" or suitable portions of syslog, showing the last attempted
assembly, the first failed assembly, the failure events that started
your saga, and the last pre-failure assembly.
3) an account of all "mdadm" commands you've already used and their results.
4) an account of any other operations you've performed that might have
written to the member disks.
> Things go fine until I get to the command under "Setup the loop-device
> and the overlay device:"
>
> parallel 'size=$(blockdev --getsize {}); loop=$(losetup -f --show --
> overlay-{/}); echo 0 $size snapshot {} $loop P 8 | dmsetup create {/}'
> ::: $DEVICES
>
> This command gets me:
> device-mapper: reload ioctl failed: Device or resource busy
> Command failed
> device-mapper: reload ioctl failed: Device or resource busy
> Command failed
> device-mapper: reload ioctl failed: Device or resource busy
> Command failed
> device-mapper: reload ioctl failed: Device or resource busy
> Command failed
Your array is probably still partially assembled. The wiki is lame.
This mailing list is the right place to get help. (I'm rather biased
against wikis for this sort of thing, but that's off-topic.)
> The drives are not mounted. I am booting to a system on sda. I tried
> this in single-user mode with the same result. I tried searching for
> dmsetup help without luck.
>
> Any advise on the cause of this error would be greatly appreciated.
>
> The overlays are created in my current directory at 2.1TB each:
> -rw-r--r-- 1 root root 2.1T May 30 21:23 overlay-sdb1
> -rw-r--r-- 1 root root 2.1T May 30 21:23 overlay-sdc1
> -rw-r--r-- 1 root root 2.1T May 30 21:23 overlay-sdd1
> -rw-r--r-- 1 root root 2.1T May 30 21:23 overlay-sde1
>
> The loop devices appear to be created:
> root@mythserver:~# losetup -a
> /dev/loop0: [0807]:58851784 (/root/overlay-sdb1)
> /dev/loop1: [0807]:58851786 (/root/overlay-sdc1)
> /dev/loop2: [0807]:58851787 (/root/overlay-sdd1)
> /dev/loop3: [0807]:58851792 (/root/overlay-sde1)
>
> These are the entries that are piped into 'dmsetup create {/}':
> 0 3907024002 snapshot /dev/sdb1 /dev/loop0 P 8
> 0 3907024002 snapshot /dev/sdc1 /dev/loop1 P 8
> 0 3907024002 snapshot /dev/sdd1 /dev/loop2 P 8
> 0 3907024002 snapshot /dev/sde1 /dev/loop3 P 8
>
> Nothing has been created in /dev/mapper/
> root@mythserver:~# l /dev/mapper/
> total 0
> crw------- 1 root root 10, 236 May 30 23:55 control
These exercises to make overlays are rarely needed, and don't appear to
have been created as intended.
Please just round up the data requested and report back. (Paste text
inline, or use plain text attachments, please.)
We may want more data later (like smartctl reports), but items #1-#4 are
needed now.
Phil
next prev parent reply other threads:[~2013-06-01 23:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-01 6:23 Wiki-recovering failed raid, overlay problem Chris Finley
2013-06-01 23:30 ` Phil Turmel [this message]
2013-06-02 0:40 ` Chris Finley
2013-06-02 1:32 ` Phil Turmel
2013-06-02 4:25 ` Phil Turmel
2013-06-02 5:07 ` Chris Finley
2013-06-02 13:53 ` Phil Turmel
2013-06-03 23:35 ` Chris Finley
2013-06-04 0:00 ` Phil Turmel
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=51AA83FD.8080500@turmel.org \
--to=philip@turmel.org \
--cc=debenbain@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;
as well as URLs for NNTP newsgroup(s).