Re: Problem with disk

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

 



Ric Wheeler wrote:
I think that MD will do the right thing if the IO terminates with an error condition. If the error is silent (and that can happen during a write), then it clearly cannot recover.

The condition I've described results in silent loss of data. Depending on type and implementation, LLDD might be able to detect the condition (PHY RDY status changed for SATA), but the event happens after the affected writes are completed successfully. For example,

1. fs issues writes for block #x, #y and then barrier #b.
2. #x gets written to the write-back cache and completed successfully
3. power glitch occurs while #y is in progress. LLDD detects the condition, recovers the drive and retries #y.
4. #y gets written to the write-back cache and completed successfully
4. barrier #b gets executed and #y gets written to the media, but #x is lost and nobody knows about it.

I'm worried about the problem because, with libata, hotplug is becoming available to the masses and when average Joe hot plugs a new drive into his machine which has $8 power supply (really, they sell 300w ATX power at 8000 KRW which is about $8), this is going to happen. I had a pretty decent power supply from a reputable maker but I still got hit by the problem.

Maybe the correct approach is to establish a warm-plug protocol. Kernel provides a way to plug IOs and user helper program plugs all IOs until the new device settles.

Thanks.

--
tejun
-
: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux