From mboxrd@z Thu Jan 1 00:00:00 1970 From: Doug Ledford Subject: Re: RFC swap over raid1 Date: Fri, 02 Aug 2013 12:35:43 -0400 Message-ID: <51FBDFDF.70008@redhat.com> References: <51FAE985.1040809@redhat.com> <51FB63C8.2090300@hardwarefreak.com> <51FBD2DC.3010900@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-raid-owner@vger.kernel.org To: Roberto Spadim Cc: Stan Hoeppner , Linux-RAID List-Id: linux-raid.ids On 08/02/2013 11:59 AM, Roberto Spadim wrote: > nice good explanations thanks > > one more doubt.... > filesystem handle bad blocks > md handle bad blocks > > what happen when i have a filesystem over md? > does md report badblocks to filesystem? > If md can not repair the block and it is unable to get the data from some other device in the array, then and only then will it report the error back up to the filesystem layer on top of it. In that case, the filesystem will see the error and execute whatever the default behavior on error is, which is different from filesystem to filesystem, but in the past has commonly been to force the filesystem immediately into a read-only mode so no further damage can happen and attempts at repair can be made in rescue mode.