linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Is it possible to recover data after resync?
@ 2006-07-19 18:40 Alex Davis
  2006-07-20  1:08 ` Neil Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Davis @ 2006-07-19 18:40 UTC (permalink / raw)
  To: linux-raid

Situation:

I accidentally killed the power to my 5-disk RAID 5 array. I then powered
it back up and rebooted the system. After reboot, however, I got the follow-
ing error when trying to assemble the array:

mdadm -A -amd /dev/md0 /dev/sd[a-e]
mdadm: /dev/md0 assembled from 2 drives - not enough to start the array.

I had read somewhere that it's possible to recover an array using the -C
option to mdadm. Unfortunately, I didn't specify 'missing', so instead of
recovering, it's resyncing. 

Is there any way to recover the original data?

I code, therefore I am

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

* Re: Is it possible to recover data after resync?
  2006-07-19 18:40 Is it possible to recover data after resync? Alex Davis
@ 2006-07-20  1:08 ` Neil Brown
  2006-07-20  2:27   ` Alex Davis
  0 siblings, 1 reply; 7+ messages in thread
From: Neil Brown @ 2006-07-20  1:08 UTC (permalink / raw)
  To: Alex Davis; +Cc: linux-raid

On Wednesday July 19, alex14641@yahoo.com wrote:
> Situation:
> 
> I accidentally killed the power to my 5-disk RAID 5 array. I then powered
> it back up and rebooted the system. After reboot, however, I got the follow-
> ing error when trying to assemble the array:
> 
> mdadm -A -amd /dev/md0 /dev/sd[a-e]
> mdadm: /dev/md0 assembled from 2 drives - not enough to start the array.
> 
> I had read somewhere that it's possible to recover an array using the -C
> option to mdadm. Unfortunately, I didn't specify 'missing', so instead of
> recovering, it's resyncing. 

--assemble --force is worth try first and is much safer.

> 
> Is there any way to recover the original data?

Well, if you got all the right devices in the right order, then your
data should be fine.  If not, I hope you have good backups, because
they are your only hope.

NeilBrown

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

* Re: Is it possible to recover data after resync?
  2006-07-20  1:08 ` Neil Brown
@ 2006-07-20  2:27   ` Alex Davis
  2006-07-20  3:14     ` Neil Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Davis @ 2006-07-20  2:27 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-raid



--- Neil Brown <neilb@suse.de> wrote:

> On Wednesday July 19, alex14641@yahoo.com wrote:
> > Situation:
> > 
> > I accidentally killed the power to my 5-disk RAID 5 array. I then powered
> > it back up and rebooted the system. After reboot, however, I got the follow-
> > ing error when trying to assemble the array:
> > 
> > mdadm -A -amd /dev/md0 /dev/sd[a-e]
> > mdadm: /dev/md0 assembled from 2 drives - not enough to start the array.
> > 
> > I had read somewhere that it's possible to recover an array using the -C
> > option to mdadm. Unfortunately, I didn't specify 'missing', so instead of
> > recovering, it's resyncing. 
> 
> --assemble --force is worth try first and is much safer.
> 
> > 
> > Is there any way to recover the original data?
> 
> Well, if you got all the right devices in the right order, then your
> data should be fine.  If not, I hope you have good backups, because
> they are your only hope.
> 
> NeilBrown
> 

So do I just keep doing mdadm -A /dev/md0 /dev/.... using different 
permutations of the devices until my data shows up?


I code, therefore I am

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

* Re: Is it possible to recover data after resync?
  2006-07-20  2:27   ` Alex Davis
@ 2006-07-20  3:14     ` Neil Brown
  2006-07-20  3:42       ` Alex Davis
  2006-07-20  3:54       ` Alex Davis
  0 siblings, 2 replies; 7+ messages in thread
From: Neil Brown @ 2006-07-20  3:14 UTC (permalink / raw)
  To: Alex Davis; +Cc: linux-raid

On Wednesday July 19, alex14641@yahoo.com wrote:
> > 
> > > 
> > > Is there any way to recover the original data?
> > 
> > Well, if you got all the right devices in the right order, then your
> > data should be fine.  If not, I hope you have good backups, because
> > they are your only hope.
> > 
> > NeilBrown
> > 
> 
> So do I just keep doing mdadm -A /dev/md0 /dev/.... using different 
> permutations of the devices until my data shows up?
> 

Hard to say without precise details.  Maybe it's worth a try, maybe
not.

NeilBrown

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

* Re: Is it possible to recover data after resync?
  2006-07-20  3:14     ` Neil Brown
@ 2006-07-20  3:42       ` Alex Davis
  2006-07-20  3:54       ` Alex Davis
  1 sibling, 0 replies; 7+ messages in thread
From: Alex Davis @ 2006-07-20  3:42 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-raid



--- Neil Brown <neilb@suse.de> wrote:

> On Wednesday July 19, alex14641@yahoo.com wrote:
> > > 
> > > > 
> > > > Is there any way to recover the original data?
> > > 
> > > Well, if you got all the right devices in the right order, then your
> > > data should be fine.  If not, I hope you have good backups, because
> > > they are your only hope.
> > > 
> > > NeilBrown
> > > 
> > 
> > So do I just keep doing mdadm -A /dev/md0 /dev/.... using different 
> > permutations of the devices until my data shows up?
> > 
> 
> Hard to say without precise details.  Maybe it's worth a try, maybe
> not.

What details are needed?


> NeilBrown
> 


I code, therefore I am

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

* Re: Is it possible to recover data after resync?
  2006-07-20  3:14     ` Neil Brown
  2006-07-20  3:42       ` Alex Davis
@ 2006-07-20  3:54       ` Alex Davis
  1 sibling, 0 replies; 7+ messages in thread
From: Alex Davis @ 2006-07-20  3:54 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-raid



--- Neil Brown <neilb@suse.de> wrote:

> On Wednesday July 19, alex14641@yahoo.com wrote:
> > > 
> > > > 
> > > > Is there any way to recover the original data?
> > > 
> > > Well, if you got all the right devices in the right order, then your
> > > data should be fine.  If not, I hope you have good backups, because
> > > they are your only hope.
> > > 
> > > NeilBrown
> > > 
> > 
> > So do I just keep doing mdadm -A /dev/md0 /dev/.... using different 
> > permutations of the devices until my data shows up?
> > 
> 
> Hard to say without precise details.  Maybe it's worth a try, maybe
> not.

Ignore my previous message. Typing 

mdadm -C -amd -l5 -n5 -c128 /dev/md0 /dev/sde /dev/sdd /dev/sdc /dev/sdb missing

seems to have done the trick. I'll do an add of /dev/sda and an fsck and report
my results later.

> NeilBrown
> 


I code, therefore I am

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

* Re: Is it possible to recover data after resync?
@ 2006-07-20 13:49 Alex Davis
  0 siblings, 0 replies; 7+ messages in thread
From: Alex Davis @ 2006-07-20 13:49 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-raid



--- Alex Davis <alex14641@yahoo.com> wrote:

> 
> 
> --- Neil Brown <neilb@suse.de> wrote:
> 
> > On Wednesday July 19, alex14641@yahoo.com wrote:
> > > > 
> > > > > 
> > > > > Is there any way to recover the original data?
> > > > 
> > > > Well, if you got all the right devices in the right order, then your
> > > > data should be fine.  If not, I hope you have good backups, because
> > > > they are your only hope.
> > > > 
> > > > NeilBrown
> > > > 
> > > 
> > > So do I just keep doing mdadm -A /dev/md0 /dev/.... using different 
> > > permutations of the devices until my data shows up?
> > > 
> > 
> > Hard to say without precise details.  Maybe it's worth a try, maybe
> > not.
> 
> Ignore my previous message. Typing 
> 
> mdadm -C -amd -l5 -n5 -c128 /dev/md0 /dev/sde /dev/sdd /dev/sdc /dev/sdb missing
> 
> seems to have done the trick. I'll do an add of /dev/sda and an fsck and report
> my results later.
>

mdadm --add was successful. fsck showed no errors.

Life is good.

-Alex

I code, therefore I am

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

end of thread, other threads:[~2006-07-20 13:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-19 18:40 Is it possible to recover data after resync? Alex Davis
2006-07-20  1:08 ` Neil Brown
2006-07-20  2:27   ` Alex Davis
2006-07-20  3:14     ` Neil Brown
2006-07-20  3:42       ` Alex Davis
2006-07-20  3:54       ` Alex Davis
  -- strict thread matches above, loose matches on Subject: below --
2006-07-20 13:49 Alex Davis

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