linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Reassembling RAID1 after good drive was offline [newbie]
@ 2015-01-01 17:40 Aryeh Leib Taurog
  2015-01-01 20:54 ` Robert L Mathews
  0 siblings, 1 reply; 13+ messages in thread
From: Aryeh Leib Taurog @ 2015-01-01 17:40 UTC (permalink / raw)
  To: linux-raid

I recently made a RAID1 array from a couple of extra usb drives:

$ mdadm --create --metadata 1.2 --verbose /dev/md/backup --level=mirror -n2 /dev/sd[cd]2

I'm using it for my backups.  I've run into a small problem though.
One of the drives for some reason hadn't come online when I tried to 
assemble the array.  Trying --assemble a second time after it came online 
apparently wasn't the right thing to do:

$ mdadm --assemble --scan
mdadm: /dev/md/backup has been started with 1 drive (out of 2).
$ mdadm --assemble --scan
mdadm: /dev/md/backup has been started with 1 drive (out of 2).
$ cat /proc/mdstat 
Personalities : [raid1] 
md126 : active (auto-read-only) raid1 sdc2[0]
      943587136 blocks super 1.2 [2/1] [U_]
      
md127 : active (auto-read-only) raid1 sdd2[1]
      943587136 blocks super 1.2 [2/1] [_U]


AFAIK both drives are healthy, but since that happened, it refuses to 
assemble them both in the array:

$ mdadm --assemble --force /dev/md/backup /dev/sd[db]2
mdadm: ignoring /dev/sdb2 as it reports /dev/sdd2 as failed
mdadm: /dev/md/backup has been started with 1 drive (out of 2).

I haven't mounted the volume, so I believe the drives are in sync.

Is there any way to put the array back together without having to 
resync?  It looks like I want something like --assume-clean, but that 
flag isn't valid in assemble mode.

Please cc responses to me.

Thanks,
Aryeh Leib Taurog

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-01-07  8:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-01 17:40 Reassembling RAID1 after good drive was offline [newbie] Aryeh Leib Taurog
2015-01-01 20:54 ` Robert L Mathews
2015-01-02 11:01   ` Anthonys Lists
2015-01-02 14:02     ` Aryeh Leib Taurog
2015-01-02 13:01   ` Aryeh Leib Taurog
2015-01-02 18:38     ` Robert L Mathews
2015-01-04 10:20       ` Aryeh Leib Taurog
2015-01-04 11:10         ` Peter Grandi
2015-01-04 21:07           ` Aryeh Leib Taurog
2015-01-04 21:45             ` Wols Lists
2015-01-05 17:25               ` Robert L Mathews
2015-01-05 18:54               ` NeilBrown
2015-01-07  8:30                 ` Aryeh Leib Taurog

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).