Re: raid 5 out of sync won't mount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 18, 2002 at 06:15:49PM +0200, Luca Berra wrote:
> On Tue, Jun 18, 2002 at 08:45:45AM -0600, Monty Charlton wrote:
> > Hello all,
> > 
> > I've got a helluva problem and I'm hoping someone here can possibly help 
> > out.
> > 
> > I've got raid5 (sdb1,sbc1,sdd1) on a partition, and one of the drives 
> > (sdd1) went bad.  So I (stupidly) hit the reset button on the computer, 
> > but now the partition won't mount.  Raid complains that one drive is bad 
> > (which it is), and that the other is out of sync.  See part of dmesg 
> > below...
> > 
> > Am I hosed?  Can I fake out raid by commenting out some of the code that 
> > tries to determine whether or not the drive is fresh?
> edit /etc/raidtab
> mark the drive you know as bad as
> failed-disk instead of raid-disk
> run mkraid --force on the array
> read the message you get and do as instructed.

Yes, that is exactly the way to do it.

If you mark the right disk as failed, everything will succeed and you
will not lose your data even though mkraid claims that you will.

If you, however, mark the wrong disk as failed, or forget to mark a
disk as failed, no amount of magic is going to bring those data back.

If it is really important data, it might be advisable to do a raw copy
of the individual partitions to some other machine - just in case. But
again, if you do it right, there's no problem  ;)

-- 
................................................................
:   jakob@unthought.net   : And I see the elder races,         :
:.........................: putrid forms of man                :
:   Jakob Østergaard      : See him rise and claim the earth,  :
:        OZ9ABN           : his downfall is at hand.           :
:.........................:............{Konkhra}...............:
-
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

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux