Re: 3 way mirror

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

 



On 11/09/2022 10:08, Gandalf Corvotempesta wrote:
let's assume a 3 way mirror (raid1 with 3 disks)
One disk got a bad sector detrcted by smartd
what happens trying to read or write to that sector?

I'm guessing when linux goes to read the data, the read will fail.

is md smart enough to read from the other 2 disks and serve consistant data?

Very much so, PROVIDED linux returns a read error for the disk.

in other words, can i delay the disk replacement for a couple of days
(i've ordered the disk today, will came tuesday) ?

What sort of error? A new disk *may* be overkill ...


Firstly, this is a disk level problem. The whole point of raid is to protect your data from disk level problems :-)

Secondly, this is a disk level problem. The dodgy sector might not even be in use, so there's no data there to lose.

Thirdly, this is a disk level problem. It may be a simple case of the disk needs to rewrite the data and relocate the sector and everything will be hunky-dory again. BUT IT CAN'T DO THAT UNTIL LINUX GIVES IT NEW FRESH DATA.

So you need to quiesce the disk (basically, shut down as many processes as you can, maybe do this overnight), and run a scrub. That will tell you if linux/mdraid thinks there's a problem.

Then re-run smartd and see if it's fixed the problem.

Then look at the smartd output and ask yourself "do I really need a new disk?". I wouldn't send the new one back. Depending on how well you are off for disk space and SATA ports, now you've got the new disk, if the old one is still good I'd go for a 3-disk raid-5 plus spare. That's my current setup.

Cheers,
Wol



[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