FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 05-11-2012, 10:45 PM
Will Woods
 
Default dracut: use nfs3 by default (#811242)

For some unknown reason, nfs-root installs will hang after a couple of
minutes if you're using nfs4. This doesn't happen with nfs3, so force
nfs3 by default.

This breaks the normal fallback to nfs2, so if nfs3 doesn't work you'll
need to change your repo arg to something like 'nfs:vers=2:SERVER:PATH'.
I'm told that nfs2-only servers should be pretty rare at this point, so
I think this is a reasonable requirement.
---
dracut/anaconda-netroot.sh | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/dracut/anaconda-netroot.sh b/dracut/anaconda-netroot.sh
index c7d528a..043a51f 100755
--- a/dracut/anaconda-netroot.sh
+++ b/dracut/anaconda-netroot.sh
@@ -25,6 +25,13 @@ case $repo in
. /lib/nfs-lib.sh
info "anaconda mounting NFS repo at $repo"
str_starts "$repo" "nfsiso:" && repo=nfs:${repo#nfsiso:}
+ # HACK: work around some Mysterious NFS4 Badness (#811242 and friends)
+ # by defaulting to nfsvers=3 when no version is requested
+ nfs_to_var $repo $netif
+ if [ "$nfs" != "nfs4" ] && ! strstr "$options" "vers="; then
+ repo="nfs:$options,nfsvers=3:$server:$path"
+ fi
+ # END HACK. FIXME: Figure out what is up with nfs4, jeez
if [ "${repo%.iso}" == "$repo" ]; then
mount_nfs "$repo" "$repodir" "$netif" || warn "Couldn't mount $repo"
anaconda_live_root_dir $repodir
--
1.7.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-11-2012, 11:48 PM
"Brian C. Lane"
 
Default dracut: use nfs3 by default (#811242)

On Fri, May 11, 2012 at 06:45:57PM -0400, Will Woods wrote:
> For some unknown reason, nfs-root installs will hang after a couple of
> minutes if you're using nfs4. This doesn't happen with nfs3, so force
> nfs3 by default.
>
> This breaks the normal fallback to nfs2, so if nfs3 doesn't work you'll
> need to change your repo arg to something like 'nfs:vers=2:SERVER:PATH'.
> I'm told that nfs2-only servers should be pretty rare at this point, so
> I think this is a reasonable requirement.
> ---
> dracut/anaconda-netroot.sh | 7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/dracut/anaconda-netroot.sh b/dracut/anaconda-netroot.sh
> index c7d528a..043a51f 100755
> --- a/dracut/anaconda-netroot.sh
> +++ b/dracut/anaconda-netroot.sh
> @@ -25,6 +25,13 @@ case $repo in
> . /lib/nfs-lib.sh
> info "anaconda mounting NFS repo at $repo"
> str_starts "$repo" "nfsiso:" && repo=nfs:${repo#nfsiso:}
> + # HACK: work around some Mysterious NFS4 Badness (#811242 and friends)
> + # by defaulting to nfsvers=3 when no version is requested
> + nfs_to_var $repo $netif
> + if [ "$nfs" != "nfs4" ] && ! strstr "$options" "vers="; then
> + repo="nfs:$options,nfsvers=3:$server:$path"
> + fi
> + # END HACK. FIXME: Figure out what is up with nfs4, jeez
> if [ "${repo%.iso}" == "$repo" ]; then
> mount_nfs "$repo" "$repodir" "$netif" || warn "Couldn't mount $repo"
> anaconda_live_root_dir $repodir
> --
> 1.7.7.6

Ack

--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 02:07 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org