Re: Raid5 with 2 bad drives

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

 



On Tue, 22 Feb 2005, Matthias Julius wrote:

> Hi,
>
> I have a raid5 out of 4 drives where 2 drives failed and were
> removed.  Since it happened during backup I would very much like to
> reactivate the array to rescue as much data as there are intact.
>
> When I try to assemble the array with mdadm it tells me that there are
> not enough devices.  Is there a way to convince mdadm to use the
> faulty drive to get a working array?

Try something like:

  mdadm --assemble /dev/mdY /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 \
	--run --force

Substitute the mdY and the /dev/sd?? for your devices as appropriate..

As for getting the data off, you have to be carefull you don't hit the bad
blocks again.. You might be able to mount it read-only, then tar up the
filesystem, directory at a time, hoping you don't hit a bad-block inside a
file.

Gordon


-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
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