Re: faulty mdstat

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

 



On Thursday August 7, ebenard@free.fr wrote:
> Hi,
> 
> here is what /proc/mdstat gives to me after a crash of the server.
> 2 drives (one on md1 and one on md4 have de (F).
> 
> This means they are faulty.
> 
> Should I do :
> mdadm /dev/md1 -a /dev/ide/host2/bus0/target0/lun0/part5
> mdadm /dev/md4 -a /dev/ide/host2/bus0/target0/lun0/part7
> 
> or is there an other way to solve the problem ?

Depends.  If the drive is really faulty, you want to replace it.
However it is was a transient error you need to remove and then re-add
the devices:

 mdadm /dev/md1 -r /dev/ide/host2/bus0/target0/lun0/part5
 mdadm /dev/md4 -r /dev/ide/host2/bus0/target0/lun0/part7

 mdadm /dev/md1 -a /dev/ide/host2/bus0/target0/lun0/part5
 mdadm /dev/md4 -a /dev/ide/host2/bus0/target0/lun0/part7

> 
> Concerning md5 (raid 5), 3 drives are used. I assume the one marked [3] is not 
> used. What can it be used for ?

Hot spare.

NeilBrown
-
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