Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754315Ab0HPOW5 (ORCPT ); Mon, 16 Aug 2010 10:22:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51009 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754250Ab0HPOW4 (ORCPT ); Mon, 16 Aug 2010 10:22:56 -0400 Date: Mon, 16 Aug 2010 15:22:46 +0100 From: Alasdair G Kergon To: Zdenek Kabelac Cc: device-mapper development , lkml , Jeff Chua , lvm-devel@redhat.com Subject: Re: [lvm-devel] [dm-devel] linux-2.6.35+ causes LVM to fail with " device-mapper: version ioctl failed: Inappropriate ioctl for device" Message-ID: <20100816142246.GA11907@agk-dp.fab.redhat.com> Mail-Followup-To: Zdenek Kabelac , device-mapper development , lkml , Jeff Chua , lvm-devel@redhat.com References: <20100814155401.GJ26032@agk-dp.fab.redhat.com> <20100815130336.GA24055@agk-dp.fab.redhat.com> <4C6943A0.9030708@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C6943A0.9030708@redhat.com> Organization: Red Hat UK Ltd. Registered in England and Wales, number 03798903. Registered Office: Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE. User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1634 Lines: 35 On Mon, Aug 16, 2010 at 03:56:48PM +0200, Zdenek Kabelac wrote: > Dne 15.8.2010 16:13, Jeff Chua napsal(a): > > With 2.6.35++, /dev/mapper/control has moved from 60 to 236! The latest LVM package made an assumption that it would be set up correctly by udev (or manually in your case). We are updating the userspace libdevmapper code to handle your circumstances automatically. > > # vgchange -a n vg01 > > Internal error: Maps lock 14217216 < unlock 14221312 > > Internal error: Maps lock 14221312 < unlock 14225408 > > Internal error: Maps lock 14225408 < unlock 14229504 > > Internal error: Maps lock 14229504 < unlock 14233600 > > Internal error: Maps lock 14233600 < unlock 14237696 > > Internal error: Maps lock 14237696 < unlock 14241792 > > 0 logical volume(s) in volume group "vg01" now active > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=d7824370e26325c881b665350ce64fb0a4fde24a For those interested, originally we used mlockall() but in non-C locales on some distributions glibc is configured to map 80MB+ of locale data into memory without offering any way to unmap it. We don't need that data locked and it increased the minimum memory required to install a distribution as well as slowing down the LVM tools! So we had to write a customised version that tries to skip locking unnecessary pages like those. Alasdair -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/