All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miquel van Smoorenburg <mikevs@xs4all.net>
To: linux-raid@vger.kernel.org
Subject: replaced disk in RAID1 imsi array - how to activate?
Date: Thu, 9 Aug 2012 15:42:06 +0200	[thread overview]
Message-ID: <20120809134201.GA14931@xs4all.net> (raw)

Setup: kernel 3.2.21 (debian testing), mdadm 3.2.5.

I created a RAID1 imsi array on a supermicro server for testing
purposes. I'm trying to see what happens if I hot-remove disks,
hot-add them, reboot, etc to test the resiliency of this setup.

So I removed (by pulling it out) one disk, then simulated adding
a blank replacement disk by putting it back in and running
mdadm --zero-superblock on it.

I re-added it to the container with mdadm /dev/md127 --add /dev/sda..
and now it just sits there. How do I get the RAID1 array (dev/md126)
to start using this disk? The manpage says:

       -a, --add
              hot-add  listed  devices.  If a device appears to have recently
              been part of the array (possibly it failed or was removed)  the
              device  is  re-added  as  described in the next point.  If that
              fails or the device was never part of the array, the device  is
              added  as a hot-spare.  If the array is degraded, it will imme‐
              diately start to rebuild data onto that spare.

However, nothing is happening:

root@server3-b05-tpb:~/tmp# cat /proc/mdstat
Personalities : [raid1] 
md126 : active raid1 sdb[0]
      31457280 blocks super external:/md127/0 [2/1] [_U]
      
md127 : inactive sda[1](S) sdb[0](S)
      6306 blocks super external:imsm
       

Thanks,

Mike.
--
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:[~2012-08-09 13:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-09 13:42 Miquel van Smoorenburg [this message]
2012-08-09 13:47 ` replaced disk in RAID1 imsi array - how to activate? Roberto Spadim
2012-08-09 14:17   ` replaced disk in RAID1 imsm " Miquel van Smoorenburg
2012-08-09 17:56     ` Miquel van Smoorenburg

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=20120809134201.GA14931@xs4all.net \
    --to=mikevs@xs4all.net \
    --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 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.