From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben DJ Subject: NFSv4 Kernel-server requires 2x manual restart after reboot? Maybe a timing problem? Date: Fri, 23 Oct 2009 10:07:23 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 To: linux-nfs@vger.kernel.org Return-path: Received: from mail-px0-f171.google.com ([209.85.216.171]:52842 "EHLO mail-px0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752685AbZJWRHi (ORCPT ); Fri, 23 Oct 2009 13:07:38 -0400 Received: by pxi1 with SMTP id 1so3984540pxi.33 for ; Fri, 23 Oct 2009 10:07:43 -0700 (PDT) Sender: linux-nfs-owner@vger.kernel.org List-ID: I've installed NFSv4 as nfs-kernel-server. I'm slowly figuring out how to get it to configured and working. After a system reboot, if I try to mount an export, mount -t nfs4 192.168.1.2:/test /mnt/test it just "sits there", never mounting. So I 1st check what's running, ps ax | egrep -i "idmapd|mountd|statd|nfsd|sm-notify" 3731 ? Ss 0:00 /usr/sbin/rpc.idmapd 3732 ? Ss 0:00 /usr/sbin/rpc.idmapd 3753 ? Ss 0:00 /usr/sbin/rpc.statd --no-notify 3758 ? S< 0:00 [nfsd4] 3759 ? S< 0:00 [nfsd] 3760 ? S< 0:00 [nfsd] 3761 ? S< 0:00 [nfsd] 3762 ? S< 0:00 [nfsd] 3772 ? Ss 0:00 /usr/sbin/rpc.mountd and that looks OK. After some experiments, I've discovered if I CTRL-C the mount attempt and restart the server TWICE, service nfsserver restart Shutting down kernel based NFS server: nfsd statd mountd done Starting kernel based NFS server: idmapdexportfs: Warning: /nfs/test does not support NFS export. mountd statd nfsd sm-notify done service nfsserver restart Shutting down kernel based NFS server: nfsd statd mountd done Starting kernel based NFS server: idmapd mountd statd nfsd sm-notify done Notice that the 2nd time the "idmapd" appears to be re-started. then repeat the mount attempt, mount -t nfs4 192.168.1.2:/test /mnt/test it now works. Checking what's running again, ps ax | egrep -i "idmapd|mountd|statd|nfsd|sm-notify" 3731 ? Ss 0:00 /usr/sbin/rpc.idmapd 3732 ? Ss 0:00 /usr/sbin/rpc.idmapd 5213 ? S