linux-mips
[Top] [All Lists]

Re: root-nfs hang and error

To: werkt@csh.rit.edu
Subject: Re: root-nfs hang and error
From: Atsushi Nemoto <nemoto@toshiba-tops.co.jp>
Date: Tue, 03 Sep 2002 16:37:11 +0900 (JST)
Cc: linux-mips@linux-mips.org, debian-mips@lists.debian.org
In-reply-to: <Pine.SOL.4.31.0209021634320.24635-100000@fury.csh.rit.edu>
Organization: TOSHIBA Personal Computer System Corporation
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <Pine.SOL.4.31.0209021634320.24635-100000@fury.csh.rit.edu>
Sender: linux-mips-bounce@linux-mips.org
>>>>> On Mon, 2 Sep 2002 16:43:55 -0400 (EDT), George Gensure 
>>>>> <werkt@csh.rit.edu> said:
werkt> When trying to mount an nfs to install to, I end up with about
werkt> a 5 minute hang (afterwards, though, all file transfer is
werkt> seamless).

It seems the mount is waiting for lockd.  On diskless install,
dbootstrap try to mount nfs partition without "nolock" option.  For
workaround, you can do "Execute a Shell" and type

 # mount -o nolock server:/path /target

instead of "Mount a Previously-Initialized Partition" on diskless
install.

Isn't this a bug of dbootstrap ?  Here is a patch.

diff -u boot-floppies.org/utilities/dbootstrap/partition_config.c 
boot-floppies/utilities/dbootstrap/partition_config.c
--- boot-floppies.org/utilities/dbootstrap/partition_config.c   Mon Sep  2 
15:33:34 2002
+++ boot-floppies/utilities/dbootstrap/partition_config.c       Mon Sep  2 
19:34:02 2002
@@ -862,6 +862,13 @@
     if(strcmp(type,"msdos")==0 && !is_filesystem_supported("vfat"))
        type="vfat";
     INFOMSG("Mounting %s partition %s on %s", type, partition->name, 
real_mount_point);
+#ifdef NFSROOT
+    if (!strncmp(type, "nfs", 4))
+      snprintf(prtbuf, sizeof(prtbuf),
+              "mount -t nfs -o nolock,rsize=8192,wsize=8192 %s %s",
+              partition->name, real_mount_point);
+    else
+#endif
     snprintf(prtbuf, sizeof(prtbuf), "mount -t %s %s %s", type, 
partition->name, real_mount_point);
     status = execlog(prtbuf, LOG_INFO);
   }
--- ---

---
Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>