* root-nfs hang and error
@ 2002-09-02 20:43 George Gensure
2002-09-02 20:43 ` George Gensure
2002-09-03 7:37 ` Atsushi Nemoto
0 siblings, 2 replies; 6+ messages in thread
From: George Gensure @ 2002-09-02 20:43 UTC (permalink / raw)
To: linux-mips
I've got a problem with a diskless install on an Indy.
When trying to mount an nfs to install to, I end up with about a 5 minute
hang (afterwards, though, all file transfer is seamless). When rebooting
to boot from that nfs root I get an rpc error from the Indy and it refuses
to mount the root. (obviously it panics). The kernel is 2.4.16 and has
nfs v2 and v3 installed, as well as root nfs support. Anyone have any
suggestions for getting this root to mount correctly?
-George
werkt@csh.rit.edu
^ permalink raw reply [flat|nested] 6+ messages in thread
* root-nfs hang and error
2002-09-02 20:43 root-nfs hang and error George Gensure
@ 2002-09-02 20:43 ` George Gensure
2002-09-03 7:37 ` Atsushi Nemoto
1 sibling, 0 replies; 6+ messages in thread
From: George Gensure @ 2002-09-02 20:43 UTC (permalink / raw)
To: linux-mips
I've got a problem with a diskless install on an Indy.
When trying to mount an nfs to install to, I end up with about a 5 minute
hang (afterwards, though, all file transfer is seamless). When rebooting
to boot from that nfs root I get an rpc error from the Indy and it refuses
to mount the root. (obviously it panics). The kernel is 2.4.16 and has
nfs v2 and v3 installed, as well as root nfs support. Anyone have any
suggestions for getting this root to mount correctly?
-George
werkt@csh.rit.edu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: root-nfs hang and error
2002-09-02 20:43 root-nfs hang and error George Gensure
2002-09-02 20:43 ` George Gensure
@ 2002-09-03 7:37 ` Atsushi Nemoto
2002-09-03 21:16 ` George Gensure
1 sibling, 1 reply; 6+ messages in thread
From: Atsushi Nemoto @ 2002-09-03 7:37 UTC (permalink / raw)
To: werkt; +Cc: linux-mips, debian-mips
>>>>> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: root-nfs hang and error
2002-09-03 7:37 ` Atsushi Nemoto
@ 2002-09-03 21:16 ` George Gensure
2002-09-04 1:36 ` Atsushi Nemoto
0 siblings, 1 reply; 6+ messages in thread
From: George Gensure @ 2002-09-03 21:16 UTC (permalink / raw)
To: Atsushi Nemoto, linux-mips
>
>
> # mount -o nolock server:/path /target
>
>
>
gotcha. That solves the install hang, but the bigger problem is this
panic at boot, when all of my portmap calls return 128 (lockd, nfsd, and
mountd) on the client. I have no idea why this kernel is able to mount
nfs partitions in the install, but not at boot time.
-George
werkt@csh.rit.edu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: root-nfs hang and error
2002-09-03 21:16 ` George Gensure
@ 2002-09-04 1:36 ` Atsushi Nemoto
2002-09-04 21:19 ` George Gensure
0 siblings, 1 reply; 6+ messages in thread
From: Atsushi Nemoto @ 2002-09-04 1:36 UTC (permalink / raw)
To: werkt; +Cc: linux-mips
>>>>> On Tue, 03 Sep 2002 17:16:08 -0400, George Gensure <werkt@csh.rit.edu> said:
werkt> I have no idea why this kernel is able to mount nfs partitions
werkt> in the install, but not at boot time.
On install, rootfs is ramdisk and you will be prompted network
parameters by the installer. On diskless boot, kernel ip pnp will be
used to configure network. So "ip=" and "nfsroot=" options may be
required on diskless boot. But I do not know how to specify these
options on Indy boot loader.
---
Atsushi Nemoto
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: root-nfs hang and error
2002-09-04 1:36 ` Atsushi Nemoto
@ 2002-09-04 21:19 ` George Gensure
0 siblings, 0 replies; 6+ messages in thread
From: George Gensure @ 2002-09-04 21:19 UTC (permalink / raw)
To: Atsushi Nemoto, linux-mips
>
>
>So "ip=" and "nfsroot=" options may be
>required on diskless boot.
>
I'm actually good for that, I'm using nfsroot=<server ip>:<path> and the
errors that come back correspond to the right host. I know the ramdisk
is used on the install, but I'm wondering if your nolock solution
corresponds to the problem with the kernel mounting the nfsroot (i.e. it
doesn't use it). BTW, the root mounted flawlessly onto target, thanks
for the nolock option.
-George
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-09-04 17:21 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-02 20:43 root-nfs hang and error George Gensure
2002-09-02 20:43 ` George Gensure
2002-09-03 7:37 ` Atsushi Nemoto
2002-09-03 21:16 ` George Gensure
2002-09-04 1:36 ` Atsushi Nemoto
2002-09-04 21:19 ` George Gensure
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox