From: Tomasz Chmielewski Subject: Re: how to check if file locking is working? Date: Thu, 26 Apr 2007 14:19:20 +0200 Message-ID: <463098C8.8010900@wpkg.org> References: <46308D00.5040109@wpkg.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: nfs@lists.sourceforge.net Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1Hh2yh-0005PJ-Aa for nfs@lists.sourceforge.net; Thu, 26 Apr 2007 05:21:39 -0700 Received: from mail.syneticon.net ([213.239.212.131] helo=mail2.syneticon.net) by mail.sourceforge.net with esmtp (Exim 4.44) id 1Hh2yi-0002Dh-Ep for nfs@lists.sourceforge.net; Thu, 26 Apr 2007 05:21:42 -0700 Received: from localhost (localhost [127.0.0.1]) by mail2.syneticon.net (Postfix) with ESMTP id 4F4A45AE87 for ; Thu, 26 Apr 2007 14:21:38 +0200 (CEST) Received: from mail2.syneticon.net ([127.0.0.1]) by localhost (linux [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30339-05 for ; Thu, 26 Apr 2007 14:20:23 +0200 (CEST) Received: from postfix1.syneticon.net (postfix1.syneticon.net [192.168.112.6]) by mail2.syneticon.net (Postfix) with ESMTP for ; Thu, 26 Apr 2007 14:19:47 +0200 (CEST) Received: from localhost (filter1.syneticon.net [192.168.113.3]) by postfix1.syneticon.net (Postfix) with ESMTP id E672594EA for ; Thu, 26 Apr 2007 14:29:20 +0200 (CEST) Received: from postfix1.syneticon.net ([192.168.113.4]) by localhost (mx03.syneticon.net [192.168.113.3]) (amavisd-new, port 10025) with ESMTP id 6Cf8f1ElTzFZ for ; Thu, 26 Apr 2007 12:15:23 +0000 (UTC) Received: from [192.168.10.145] (xdsl-87-79-223-24.netcologne.de [87.79.223.24]) by postfix1.syneticon.net (Postfix) with ESMTP for ; Thu, 26 Apr 2007 14:29:17 +0200 (CEST) In-Reply-To: <46308D00.5040109@wpkg.org> List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net Tomasz Chmielewski wrote: > How can I check if file locking is working? > > I have a NFS4 server (Linux x86) and a NFS4 client (Linux ARM). > > > NFS4 server exports a Debian-ARM root filesystem (/bin, /etc, /usr... a > complete OS). > > I want to "upgrade" the Debian-ARM root filesystem in a NFS4 chroot, but > it fails - dpkg claims that: > > debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by > another process > > It's not true, as that export is only used by that one client. > > So what comes to my mind, is that file locking is somehow broken. > > How can I check if NFS4 file locking works properly, or is broken? I changed the client to use NFSv3 instead of NFSv4, and suddenly, the things started to work... Ideas what I might be missing? Why locking works if I use NFSv3 on the client, but doesn't when I use NFSv4 on the client (other than NFS version, nothing else changed). Kernel option on a client or server, export options on the server, mount options on the client etc.? -- Tomasz Chmielewski http://wpkg.org ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs