From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heinz Mauelshagen Subject: Re: [PATCH 2/2] Disable partition scan Date: Wed, 05 Aug 2009 15:17:05 +0200 Message-ID: <1249478225.17021.48.camel@o> References: <20090722080129.E9393D340B@pentland.suse.de> <1248281597.14407.171.camel@breeves.fab.redhat.com> Reply-To: heinzm@redhat.com, device-mapper development Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1248281597.14407.171.camel@breeves.fab.redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development List-Id: dm-devel.ids On Wed, 2009-07-22 at 17:53 +0100, Bryn M. Reeves wrote: > On Wed, 2009-07-22 at 10:01 +0200, Hannes Reinecke wrote: > > Worse, it might trigger I/O errors as the partition table might not > > be accessible (eg for the passive path of a multipath device) or > > even invalid (eg for RAID0 dmraid). > > Not that it removes the need or motivation for this patch but the case > of an array partition table being mis-interpreted by the kernel for a > RAID member device should no longer trigger I/O errors. Kernels since > 2.6.27 should truncate any over-size partitions to the size of the > device: > > commit ac0d86f5809598ddcd6bfa0ea8245ccc910e9eac > Author: Kay Sievers > Date: Wed Oct 15 22:04:21 2008 -0700 > > block: sanitize invalid partition table entries > > We currently follow blindly what the partition table lies about the > disk, and let the kernel create block devices which can not be > accessed. > Trying to identify the device leads to kernel logs full of: > sdb: rw=0, want=73392, limit=28800 > attempt to access beyond end of device > [snip] > > I've tested this patch with a few dmraid setups that previously spat I/O > errors whenever something probed a member device. Although this isn't > exactly a solution it does quiet down the log noise (I'd thought about > submitting a patch to dmraid to issue a BLKPG_DEL_PARTITION for each > partition on each member device that it discovers but didn't get around > to doing anything about it yet). We've got that in RHEL/Fedora dmraid already with option "--rm_partitions". Regards, Heinz > > Regards, > Bryn. > > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel