public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Lukas Razik <linux@razik.name>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: Jim Rees <rees@umich.edu>,
	Trond Myklebust <Trond.Myklebust@netapp.com>,
	Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: Re: [BUG?] Maybe NFS bug since 2.6.37 on SPARC64
Date: Sun, 13 Nov 2011 22:19:13 +0000 (GMT)	[thread overview]
Message-ID: <1321222753.13412.YahooMailNeo@web24707.mail.ird.yahoo.com> (raw)
In-Reply-To: <1321219739.17997.YahooMailNeo@web24711.mail.ird.yahoo.com>

> [ 1764.189975] ADDRCONF(NETDEV_UP): eth0: link is not ready

> [ 1765.212110] IP-Config: Complete:
> [ 1765.212180]      device=eth0, addr=137.226.167.242, mask=255.255.255.224, 
> gw=137.226.167.225,
> [ 1765.212383]      host=137.226.167.242, domain=, nis-domain=(none),
> [ 1765.212498]      bootserver=255.255.255.255, rootserver=137.226.167.241, 
> rootpath=
> [ 1765.212943] VFS: 1. attempt to mount root fs via NFS.
> [ 1765.212992] Root-NFS: nfsroot=/srv/nfs/cluster2
> [ 1765.213265] NFS: nfs mount opts='udp,nolock,addr=137.226.167.241'
> [ 1765.213315] NFS:   parsing nfs mount option 'udp'
> [ 1765.213353] NFS:   parsing nfs mount option 'nolock'
> [ 1765.213399] NFS:   parsing nfs mount option 'addr=137.226.167.241'
> [ 1765.213467] NFS: MNTPATH: '/srv/nfs/cluster2'
> [ 1765.213501] NFS: sending MNT request for 137.226.167.241:/srv/nfs/cluster2
> [ 1766.298480] e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: 
> Rx
> [ 1766.318949] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> [ 1800.284325] NFS: failed to create MNT RPC client, status=-60
> [ 1800.284435] NFS: unable to mount server 137.226.167.241, error -60
> [ 1800.284571] VFS: 2. attempt to mount root fs via NFS.
> [ 1800.284682] Root-NFS: nfsroot=/srv/nfs/cluster2
> [ 1800.285051] NFS: nfs mount 
> opts='udp,nolock,addr=137.226.167.241,nolock,addr=137.226.167.241'
> [ 1800.285167] NFS:   parsing nfs mount option 'udp'
> [ 1800.285233] NFS:   parsing nfs mount option 'nolock'
> [ 1800.285337] NFS:   parsing nfs mount option 'addr=137.226.167.241'
> [ 1800.285455] NFS:   parsing nfs mount option 'nolock'
> [ 1800.285531] NFS:   parsing nfs mount option 'addr=137.226.167.241'

Chuck, I've seen that it's wrong to wrap mount_nfs_root() with while() because then we get a multiple occurrence of some mount options. Hence I've edited mount_nfs_root() itself so that the options will be set only once.
Maybe that's better?
--- linux-2.6.39.4/init/do_mounts.c        2011-08-03 21:43:28.000000000 +0200
+++ linux-2.6.39.4-fix/init/do_mounts.c     2011-11-13 23:05:13.000000000 +0100
@@ -363,12 +363,18 @@
 static int __init mount_nfs_root(void)
 {
        char *root_dev, *root_data;
+       char attempt;
 
        if (nfs_root_data(&root_dev, &root_data) != 0)
                return 0;
-       if (do_mount_root(root_dev, "nfs", root_mountflags, root_data) != 0)
-               return 0;
-       return 1;
+
+       for(attempt = 1; attempt <= 3; attempt++) {
+               printk(KERN_INFO "VFS: %d. attempt to mount root fs via NFS.\n", attempt);
+               if (do_mount_root(root_dev, "nfs", root_mountflags, root_data) == 0)
+                       return 1;
+       }
+
+       return 0;
 }
 #endif

--
Regards,
Lukas


PS: That's the new behaviour:
[ 4416.829621] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 4417.851657] IP-Config: Complete:
[ 4417.851729]      device=eth0, addr=137.226.167.242, mask=255.255.255.224, gw=137.226.167.225,
[ 4417.851931]      host=137.226.167.242, domain=, nis-domain=(none),
[ 4417.852045]      bootserver=255.255.255.255, rootserver=137.226.167.241, rootpath=
[ 4417.852493] Root-NFS: nfsroot=/srv/nfs/cluster2
[ 4417.852539] VFS: 1. attempt to mount root fs via NFS.
[ 4417.852814] NFS: nfs mount opts='udp,nolock,addr=137.226.167.241'
[ 4417.852893] NFS:   parsing nfs mount option 'udp'
[ 4417.852930] NFS:   parsing nfs mount option 'nolock'
[ 4417.852977] NFS:   parsing nfs mount option 'addr=137.226.167.241'
[ 4417.853073] NFS: MNTPATH: '/srv/nfs/cluster2'
[ 4417.853137] NFS: sending MNT request for 137.226.167.241:/srv/nfs/cluster2
[ 4418.933894] e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx
[ 4418.954252] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 4452.967331] NFS: failed to create MNT RPC client, status=-60
[ 4452.967441] NFS: unable to mount server 137.226.167.241, error -60
[ 4452.967577] VFS: 2. attempt to mount root fs via NFS.
[ 4452.967978] NFS: nfs mount opts='udp,nolock,addr=137.226.167.241'
[ 4452.968085] NFS:   parsing nfs mount option 'udp'
[ 4452.968150] NFS:   parsing nfs mount option 'nolock'
[ 4452.968197] NFS:   parsing nfs mount option 'addr=137.226.167.241'
[ 4452.968333] NFS: MNTPATH: '/srv/nfs/cluster2'
[ 4452.968397] NFS: sending MNT request for 137.226.167.241:/srv/nfs/cluster2
[ 4452.974480] NFS: received 1 auth flavors
[ 4452.974543] NFS:   auth flavor[0]: 1
[ 4452.974723] NFS: MNT request succeeded
[ 4452.974785] NFS: using auth flavor 1
[ 4452.979498] VFS: Mounted root (nfs filesystem) on device 0:13.
INIT: version 2.88 booting

  reply	other threads:[~2011-11-13 22:19 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-03 19:43 [BUG?] Maybe NFS bug since 2.6.37 on SPARC64 Lukas Razik
2011-11-03 20:54 ` Trond Myklebust
2011-11-03 21:10   ` Chuck Lever
2011-11-03 21:11   ` Jim Rees
2011-11-03 21:16     ` Chuck Lever
2011-11-03 21:37       ` Lukas Razik
2011-11-03 21:51         ` Chuck Lever
2011-11-03 23:09           ` Lukas Razik
2011-11-03 23:59             ` Jim Rees
2011-11-04  0:59               ` Lukas Razik
2011-11-04  1:06             ` Chuck Lever
2011-11-04  1:33               ` Lukas Razik
2011-11-04  9:44               ` Lukas Razik
2011-11-04 13:20                 ` Jim Rees
2011-11-04 14:01                   ` Chuck Lever
2011-11-04 14:09                     ` Myklebust, Trond
2011-11-04 14:24                       ` J. Bruce Fields
2011-11-04 14:46                     ` Jim Rees
2011-11-04 15:02                       ` Lukas Razik
2011-11-04 15:18                       ` Myklebust, Trond
2011-11-04 15:46                       ` Lukas Razik
2011-11-04 22:55                         ` Chuck Lever
2011-11-04 23:17                           ` Lukas Razik
2011-11-04 13:54                 ` Chuck Lever
2011-11-04 14:57                   ` Lukas Razik
2011-11-04 16:56                   ` Lukas Razik
2011-11-04 17:55                   ` Lukas Razik
2011-11-04 23:15                     ` NFSROOT mount fails on SPARC after 2.6.37 Chuck Lever
2011-11-05  2:03                       ` David Miller
2011-11-05  2:38                         ` Trond Myklebust
2011-11-04 23:40                   ` [BUG?] Maybe NFS bug since 2.6.37 on SPARC64 Lukas Razik
2011-11-05  1:19                     ` Trond Myklebust
2011-11-05  1:52                       ` Lukas Razik
2011-11-05  2:14                       ` Lukas Razik
2011-11-05  2:30                         ` Trond Myklebust
2011-11-05  2:31                         ` Trond Myklebust
2011-11-05  2:31                         ` Trond Myklebust
2011-11-05  3:51                           ` Lukas Razik
2011-11-05 13:05                             ` Jim Rees
2011-11-12 11:35                               ` Lukas Razik
2011-11-12 18:49                                 ` Jim Rees
2011-11-12 21:06                                   ` Chuck Lever
2011-11-13  1:03                                     ` Lukas Razik
2011-11-13 19:32                                       ` Chuck Lever
2011-11-13 21:28                                         ` Lukas Razik
2011-11-13 22:19                                           ` Lukas Razik [this message]
2011-11-14 15:31                                             ` Chuck Lever
2011-11-03 21:18   ` Lukas Razik
2011-11-03 21:38     ` Jim Rees
2011-11-03 21:58       ` Lukas Razik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1321222753.13412.YahooMailNeo@web24707.mail.ird.yahoo.com \
    --to=linux@razik.name \
    --cc=Trond.Myklebust@netapp.com \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=rees@umich.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox