Return-Path: linux-nfs-owner@vger.kernel.org Received: from mail-ie0-f174.google.com ([209.85.223.174]:63083 "EHLO mail-ie0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754064Ab2KGBFw convert rfc822-to-8bit (ORCPT ); Tue, 6 Nov 2012 20:05:52 -0500 Received: by mail-ie0-f174.google.com with SMTP id k13so1620277iea.19 for ; Tue, 06 Nov 2012 17:05:52 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <1351760297.5369.1.camel@localhost> Date: Wed, 7 Nov 2012 09:05:51 +0800 Message-ID: Subject: Re: hang problem when umount a nfs point From: Jack Wang To: =?UTF-8?Q?Mart=C3=ADn_Cigorraga?= Cc: dahai_tian@usish.com, linux-nfs@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-nfs-owner@vger.kernel.org List-ID: 2012/11/7 Martín Cigorraga : > On Mon, Nov 5, 2012 at 10:27 PM, Jack Wang > wrote: >> >> Hi all, >> >> Anyone who can kindly give some suggestion? or we just put question to >> the wrong list? >> >> Thanks. >> >> Jack >> >> 2012/11/1 dahai_tian : >> > Hi all: >> > I mount a local directory to a nfs server. When nfs server is >> > stopped >> > for some accidental cause, I try to umount the mount point, the umount >> > command will hang and 'time out' messages are continually printed in the >> > terminal. How can I avoid hanging in this case? BTW, This issue does not >> > exist when I changed nfs version from 4 to 3. >> > Look forward to your response, thanks! > > Hi Jack, use the -l (lazy) switch: > # umount -l {your mounted nfs share} > > Also, I wouldn't recommend 'just to kill' the NFS proces(ses) as it (them) > may leave shared memory a mess. > (And I would like to see how do you make to mount any NFS share again > without booting) Thanks Martin for kindly help. umount -l did work, but why nfsv3 do not have this problem? Jack