linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Albert Pauw <albert.pauw@gmail.com>
To: NeilBrown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: mdadm ddf questions
Date: Fri, 04 Mar 2011 08:52:25 +0100	[thread overview]
Message-ID: <4D709A39.9050804@gmail.com> (raw)
In-Reply-To: <20110303091155.3d43314a@notabene.brown>

  Hi Neil,

thanks for your answers/fix, here are my findings/thoughts.

On 03/ 2/11 11:11 PM, NeilBrown wrote:
> This is not good.  I have created a fix and added it to my git tree: the
> 'master' branch of  git://neil.brown.name/mdadm
>
>
Yes, that fixed it, thanks.
>> although in the container the disk is marked failed. I then remove it
>> from the container:
>>
>> mdadm -r /dev/md127 /dev/sdc
>>
>> I clean the disk with mdadm --zero-superblock /dev/sdc and add it again.
>>
>> But how do I add this disk again to the md1 raidset?
> It should get added automatically.  'mdmon' runs in the background, notices
> this sort of thing.  I just experimented and it didn't quite work as I
> expected.  I'll have a closer look next week.

It looks like it has something to do with updating the physical disk 
list in the container.

mdadm -E /dev/md127 (the container) shows at the end the list of 
physical disks including
a RefNo (I assume a unique number created when the superblock was added 
to the disk) and
the device file. When I remove a disk from the container the entry stays 
in this list, but the device
file is removed. When I put another disk back at this same device file 
(say /dev/sdd) or zero the superblock (which
is effectively creating a new disk for mdadm) it puts back the device 
file in the original slot with the old
RefNo, and created a new entry in the list with the new RefNo but no 
device file, as that is used in the old slot.
Since the old slot was marked "active/Online, Failed" the disk is not 
used, while the new slot (with the new RefNo)
is marked "Global-Spare/Online", but no device file, and so cannot be used.

To sum it up, when I remove a disk from the containter, the slot for 
this disk in the containter is not removed,
only the device file, it should be removed completely. Otherwise it 
messes up all the rest.

Cheers,

Albert

      reply	other threads:[~2011-03-04  7:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-19 11:13 mdadm ddf questions Albert Pauw
2011-02-22  7:41 ` Albert Pauw
2011-02-23  6:17   ` NeilBrown
2011-02-25 17:53     ` Albert Pauw
2011-03-02 22:31       ` NeilBrown
2011-03-10  8:34         ` More ddf container woes Albert Pauw
2011-03-11 11:50           ` Albert Pauw
2011-03-14  8:02             ` NeilBrown
2011-03-14  9:00               ` Albert Pauw
2011-03-15  4:43                 ` NeilBrown
2011-03-15 19:07                   ` Albert Pauw
2011-03-02 22:26   ` mdadm ddf questions NeilBrown
2011-03-02 22:11 ` NeilBrown
2011-03-04  7:52   ` Albert Pauw [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=4D709A39.9050804@gmail.com \
    --to=albert.pauw@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    /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).