From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Urlichs Subject: Re-map disk sectors in userspace when rewriting after read errors Date: Tue, 15 Sep 2009 06:23:33 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Sender: linux-raid-owner@vger.kernel.org To: linux-raid@vger.kernel.org List-Id: linux-raid.ids Hi, my problem is that I have a bunch of crappy disks which seem unable to reliably remap bad areas after a read error. This obviously makes the read error rewrite feature of our beloved RAID5/6 code somewhat less than useful. What I would like to do is to re-map these sectors in userspace -- either by browbeating the disk into it, or by using the Device Mapper. So I'd need a way to tell a userspace daemon "this device+block is unreadable", and wait until said daemon tells the RAID core to go ahead. I can do the userspace side easily, but my time to dig through the RAID code and implement that sort of channel in a maintainable way is somewhat limited. (Plus, I need that code sooner rather than later.) Would somebody be able to help out? There may be some money in it ... -- Matthias Urlichs