From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tru64 User Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Avoiding NFS clients Hang when NFS server dies Date: Wed, 23 Jul 2003 11:19:43 -0700 (PDT) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <20030723181943.24867.qmail@web40904.mail.yahoo.com> References: <20030723174546.9963.qmail@web40908.mail.yahoo.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1058984332 21027 80.91.224.249 (23 Jul 2003 18:18:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Jul 2003 18:18:52 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Jul 23 20:18:49 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19fOCO-0005Sh-00 for ; Wed, 23 Jul 2003 20:18:48 +0200 Original-Received: (qmail 9786 invoked by uid 5); 23 Jul 2003 18:19:51 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 9777 invoked by uid 49493); 23 Jul 2003 18:19:51 -0000 Original-Received: from tru64user@yahoo.com by sws1 by uid 49491 with qmail-scanner-1.16 (clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-1.0/5.0):. Processed in 0.578581 secs); 23 Jul 2003 18:19:51 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 23 Jul 2003 18:19:50 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HIH00GBKPKXRU@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 23 Jul 2003 14:19:49 -0400 (EDT) Original-Received: from web40904.mail.yahoo.com (web40904.mail.yahoo.com [66.218.78.201]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with SMTP id <0HIH0074JPKV3M@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 23 Jul 2003 14:19:44 -0400 (EDT) Original-Received: from [128.183.106.140] by web40904.mail.yahoo.com via HTTP; Wed, 23 Jul 2003 11:19:43 -0700 (PDT) In-reply-to: <20030723174546.9963.qmail@web40908.mail.yahoo.com> Original-To: tru64-unix-managers@ornl.gov Xref: main.gmane.org gmane.os.tru64.managers:4919 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4919 Thanks to the quick responses from Oisin McGuinness, Dr. Allan Rollow, David DeWolfe and Blake Brehl, all offering differing solutions that i have to pick from. I took the quick way out, adding "bg" to nfs mount options. Upon testing, found both "bg" & "soft" need to be inplace for df to work. It still, however, hangs for approx. 30 secs. before it lets go and retries in the background (bg). Other solutions where automounter, autofs (i have never implemented these, i know they exist out there....maybe its time i studied them); Adding option "df -n" which i have done....but it was getting out of hand......and what would take care of it altogether? Clustering.....(read below) ******** Interruptable is a useful intermediate option between "hard" and "soft" mounts. Attempts to access the remote file system will still hang, but they can be interrupted. There was a time when "soft" was very dangerous because application didn't gracefully handle I/Os failing. Applications that are part of the base system should handle this better. The only real solution is to not have the problem of the serving host becoming unavailable. The usual solution to that is a cluster of some sort. Tru64 UNIX V5.0A and later can support this. Before V5.0A, two hosts could be in a failover configuration; one host fails, the other host picks up the load. I'm sure the Linux community is working on the clustering problem, though it is hard done correctly. Failover might be an option, if full clustering isn't there. Mounting inside another directory helps for those things that have to traverse the root file system; pwd. **** --- Tru64 User wrote: > Hi All, > > My tru64 boxes (mostly v4.0G) are heavy > crossmounters > of disks served on other tru64 hosts and Linux. > > Problem is that if any one host goes down, all other > hosts hang with a df. Additionally, other programs > that utilize "df" (eg. our backups, ssh --when it > tries to generate random seed runs a number of > commands, including df) hang as well. > > I have read and implemented two "thought" solutions: > > 1. mounting inside a dir i.e. > mount -t nfs HOSTA:/dirAAA /HOSTA/dirAAA > instead of: > mount -t nfs HOSTA:/dirAAA /dirAAA > It is not suggested to mount nfs dirs under root. > > 2.Using the "soft" option for mounting > (default=hard). > > None of these are a cure. Any additional suggestions > out there? > > _Thanks > > Richard > > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site > design software > http://sitebuilder.yahoo.com ===== __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com