linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Majed B." <majedb@gmail.com>
To: Stephan Stachurski <ses1984@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Can't re-assemble successfully after creation, initial sync and reboot
Date: Wed, 20 Jan 2010 16:32:11 +0300	[thread overview]
Message-ID: <70ed7c3e1001200532l4d01ff52o251d898632735458@mail.gmail.com> (raw)
In-Reply-To: <959332b61001200524j7a879f15u5281e03b1da2cd43@mail.gmail.com>

Have you ran SMART tests using smartctl (part of smartmontools) on
each disk to verify that they're all sane and have no bad sectors or
any sort of damage?

Which version are you using exactly? mdadm --version

If the array is fresh, you don't need to resync. zero all disks then
create the array and use the assumeclean flag.
To zero them, use dd: dd if=/dev/zero of=/dev/sdx of=/dev/sdz of=/dev/sdy bs=50M

Also provide the output of mdadm -E /dev/sdx for each disk (paste it
in the email itself)

On Wed, Jan 20, 2010 at 4:24 PM, Stephan Stachurski <ses1984@gmail.com> wrote:
> Ok, I tried a couple of things, so far with no success.
>
> I re-created the array, let it synchronize, then rebooted. When I
> first created the array, the components devices looked like this:
>
> md0 : active raid5 sda[0] sdb[1] sdc[2] sdd[3]
>
> When I rebooted, it suddenly comes up like this, skipping component device 3:
>
> md0 : active raid5 sda[0] sdd[4] sdb[1] sdc[2]
>
> and it was automatically resyncing, destroying the last 6 hours I was
> waiting for it to initially sync, and it changed my chunk size! Why do
> I keep getting these problems?
>
> On Mon, Jan 18, 2010 at 12:33 PM, Stephan Stachurski <ses1984@gmail.com> wrote:
>> I'm having problems with an array that I just created. It's a raid
>> level 5 with 4 devices using all of the default settings. I'm using
>> the version of mdadm that's included in ubuntu 9.10 repositories.
>>
>> When I reboot the machine, /proc/mdstat shows this:
>> md_d0 : inactive sdc[2](S)
>>
>> I can stop the device, and attempt the --assemble the array correctly,
>> but something still is wrong:
>>
>> $ sudo mdadm --stop /dev/md_d0
>> mdadm: stopped /dev/md_d0
>> $ sudo mdadm --assemble /dev/md0 -fv /dev/sda /dev/sdb /dev/sdc /dev/sdd
>> mdadm: looking for devices for /dev/md0
>> mdadm: /dev/sda is identified as a member of /dev/md0, slot 0.
>> mdadm: /dev/sdb is identified as a member of /dev/md0, slot 1.
>> mdadm: /dev/sdc is identified as a member of /dev/md0, slot 2.
>> mdadm: /dev/sdd is identified as a member of /dev/md0, slot 3.
>> mdadm: added /dev/sdb to /dev/md0 as 1
>> mdadm: added /dev/sdc to /dev/md0 as 2
>> mdadm: added /dev/sdd to /dev/md0 as 3
>> mdadm: added /dev/sda to /dev/md0 as 0
>> mdadm: /dev/md0 has been started with 3 drives (out of 4).
>> $ sudo cat /proc/mdstat
>> md0: active raid5 sda[0] sdc[2] sdb[1]
>> 2930287488 blocks level 5, 128k chunk, algorithm 2 [4/3] [UUU_]
>>
>> md_d0: inactive sdd[3](S)
>> 976762496 blocks
>>
>> Why, if it correctly identifies the devices that are members of
>> /dev/md0, and then adds them to /dev/md0, do I not get the complete
>> array?
>> --
>> Stephan E Stachurski
>>
> --
> 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
>



-- 
       Majed B.
--
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:[~2010-01-20 13:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-18 17:33 Can't re-assemble successfully after creation, initial sync and reboot Stephan Stachurski
2010-01-20 13:24 ` Stephan Stachurski
2010-01-20 13:32   ` Majed B. [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=70ed7c3e1001200532l4d01ff52o251d898632735458@mail.gmail.com \
    --to=majedb@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=ses1984@gmail.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 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).