From owner-freebsd-arm@freebsd.org Wed Mar 9 00:21:05 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 09646AC8CBB; Wed, 9 Mar 2016 00:21:05 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 9EE0630E; Wed, 9 Mar 2016 00:21:04 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) IronPort-PHdr: 9a23:PMRkmxKWSE7wICny8tmcpTZWNBhigK39O0sv0rFitYgVKfXxwZ3uMQTl6Ol3ixeRBMOAu60C27ed6fmocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWC0ILniqvootX6WEZhunmUWftKNhK4rAHc5IE9oLBJDeIP8CbPuWZCYO9MxGlldhq5lhf44dqsrtY4q3wD89pozcNLUL37cqIkVvQYSW1+ayFmrPDtrgTJGAuT+mMHACJRlhtTHxOD4gv3U53qvm39rOU63SCbOcj/S/cwWC++7qFlT1jmkioKPSU1tWjNj59Mi/djqQ+l7zl2347ZesnBLPNjeovSZ9QfRHYHUsJQXWpfHsWxY5ZZXMQbOuMNlYj2pBMrpBC9AQSpTLf1zzZDhXv72IUn1Os8HAXe3EorFoRd4zzvsNzpOfJKAqiOx67SwGCGNqsO1A== X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2DQAQARa99W/61jaINcDoN+bQa6WAENgWkXCoUkSgKBfxQBAQEBAQEBAWMngi2CFAEBAQMBAQEBICsgCwULAgEIGAICDRkCAicBCSYCBAgHBAEcBId7CA6vT48oAQEBAQEBAQMBAQEBAQEBARQEe4UcgXuCR4QbAQEFFoMCgToFh1aGTj2ISYVjgnCCMpFkjlQCHgEBQoIDGYENWR4uAQaIRjR+AQEB X-IronPort-AV: E=Sophos;i="5.22,558,1449550800"; d="scan'208";a="269923465" Received: from nipigon.cs.uoguelph.ca (HELO zcs1.mail.uoguelph.ca) ([131.104.99.173]) by esa-jnhn.mail.uoguelph.ca with ESMTP; 08 Mar 2016 19:21:02 -0500 Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 50CD315F56D; Tue, 8 Mar 2016 19:21:02 -0500 (EST) Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id KJZ75w_GFmJ1; Tue, 8 Mar 2016 19:21:01 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id 114FA15F571; Tue, 8 Mar 2016 19:21:01 -0500 (EST) X-Virus-Scanned: amavisd-new at zcs1.mail.uoguelph.ca Received: from zcs1.mail.uoguelph.ca ([127.0.0.1]) by localhost (zcs1.mail.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id sfvBTfNRv_Xb; Tue, 8 Mar 2016 19:21:00 -0500 (EST) Received: from zcs1.mail.uoguelph.ca (zcs1.mail.uoguelph.ca [172.17.95.18]) by zcs1.mail.uoguelph.ca (Postfix) with ESMTP id E6BB715F56D; Tue, 8 Mar 2016 19:21:00 -0500 (EST) Date: Tue, 8 Mar 2016 19:21:00 -0500 (EST) From: Rick Macklem To: Paul Mather Cc: Ronald Klop , freebsd-fs@freebsd.org, freebsd-arm@freebsd.org Message-ID: <913974596.10122887.1457482860865.JavaMail.zimbra@uoguelph.ca> In-Reply-To: <08710728-3130-49BE-8BD7-AFE85A31C633@gromit.dlib.vt.edu> References: <3DAB3639-8FB8-43D3-9517-94D46EDEC19E@gromit.dlib.vt.edu> <1482595660.8940439.1457405756110.JavaMail.zimbra@uoguelph.ca> <08710728-3130-49BE-8BD7-AFE85A31C633@gromit.dlib.vt.edu> Subject: Re: Unstable NFS on recent CURRENT MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.95.10] X-Mailer: Zimbra 8.0.9_GA_6191 (ZimbraWebClient - FF44 (Win)/8.0.9_GA_6191) Thread-Topic: Unstable NFS on recent CURRENT Thread-Index: wFhsfjvkf8M3TtVVuwbPJgeedqxBkg== X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2016 00:21:05 -0000 Paul Mather wrote: > On Mar 7, 2016, at 9:55 PM, Rick Macklem wrote: > > > Paul Mather (forwarded by Ronald Klop) wrote: > >> On Sun, 06 Mar 2016 02:57:03 +0100, Paul Mather > >> wrote: > >> > >>> On my BeagleBone Black running 11-CURRENT (r296162) lately I have been > >>> having trouble with NFS. I have been doing a buildworld and buildkernel > >>> with /usr/src and /usr/obj mounted via NFS. Recently, this process has > >>> resulted in the buildworld failing at some point, with a variety of > >>> errors (Segmentation fault; Permission denied; etc.). Even a "ls -alR" > >>> of /usr/src doesn't manage to complete. It errors out thus: > >>> > >>> ===== > >>> [[...]] > >>> total 0 > >>> ls: ./.svn/pristine/fe: Permission denied > >>> > >>> ./.svn/pristine/ff: > >>> total 0 > >>> ls: ./.svn/pristine/ff: Permission denied > >>> ls: fts_read: Permission denied > >>> ===== > >>> > >>> On the console, I get the following: > >>> > >>> newnfs: server 'chumby.chumby.lan' error: fileid changed. fsid > >>> 94790777:a4385de: expected fileid 0x4, got 0x2. (BROKEN NFS SERVER OR > >>> MIDDLEWARE) > >>> I have no idea how the fileid (i-node# in old terminology) could change. I haven't heard anyone else reporting this, so I can't explain it (except for the exceeds 32bits case, which you note below isn't likely). > >>> > >>> I am using a FreeBSD/amd64 10.3-PRERELEASE (r296412) as the NFS server. > >>> On the BeagleBone Black, I am mounting /usr/src and /usr/obj via > >>> /etc/fstab as follows: > >>> > >>> chumby.chumby.lan:/build/src/head /usr/src nfs rw,nfsv4 0 0 > >>> chumby.chumby.lan:/build/obj/bbb /usr/obj nfs rw,nfsv4 0 0 > >>> > >>> > >>> /build/src/head and /build/obj/bbb are both ZFS file systems. > >>> > > Is it possible that a ZFS file system has gotten to the point where the > > i-node# exceeds 32bits? ZFS does support more than 32bits for i-node#s, > > but FreeBSD does not (it truncates to the low order 32bits). > > I know diddly about ZFS, so I don't know if you actually have to create > > more than 4billion files to get the i-node# to exceed 32bits or ??? > > > > There has been work done on making ino_t 64bits, but it hasn't made it > > into FreeBSD-current and I have no idea when it might. > > > > If you could try a build on newly created file systems (or UFS ones > > instead of ZFS), that would tell you if the above might be the problem. > > > I don't think I have that big of a ZFS pool (it's 2 TB). :-) > > It doesn't seem that there are excessive numbers of inodes, and the counts > match up between the NFS client and server sides. > > In the information below, chumby is the NFS server and beaglebone the client: > > pmather@beaglebone:~ % mount > /dev/mmcsd0s2a on / (ufs, local, noatime, soft-updates) > devfs on /dev (devfs, local) > /dev/mmcsd0s1 on /boot/msdos (msdosfs, local, noatime) > tmpfs on /tmp (tmpfs, local) > tmpfs on /var/log (tmpfs, local) > tmpfs on /var/tmp (tmpfs, local) > chumby.chumby.lan:/build/src/head on /usr/src (nfs, nfsv4acls) > chumby.chumby.lan:/build/obj/bbb on /usr/obj (nfs, nfsv4acls) > pmather@beaglebone:~ % df -i /usr/src /usr/obj > Filesystem 1K-blocks Used Avail Capacity iused > ifree %iused Mounted on > chumby.chumby.lan:/build/src/head 2097152 1344484 752668 64% 147835 > 1505336 9% /usr/src > chumby.chumby.lan:/build/obj/bbb 530875884 1949364 528926520 0% 70814 > 1057853040 0% /usr/obj > > > paul@chumby:/home/paul> df -i /build/src/head /build/obj/bbb > Filesystem 1K-blocks Used Avail Capacity iused > ifree %iused Mounted on > zroot/SHARED/build/src/head 2097152 1344484 752668 64% 147835 > 1505336 9% /build/src/head > zroot/SHARED/build/obj/bbb 530876268 1949364 528926904 0% 70814 > 1057853808 0% /build/obj/bbb > > > On the NFS client system, these are the only NFS-related settings I have in > /etc/rc.conf: > > nfsuserd_enable="YES" > nfscbd_enable="YES" > > > Would you recommend I try it with nfscbd_enable="NO"? > Unless you have enabled delegations, nfscbd isn't needed, so you can try this. However, I doubt it will make any difference. (Callbacks are only used for Delegations for NFSv4.0. As such, it doesn't matter if they are working unless delegations are enabled.) > I will try NFS from other clients to see whether it's just this FreeBSD/arm > system that's having problems. > There probably are few people using NFSv4 on arm (you may be the only one), so I wouldn't be surprised if there is some size/alignment bug in the client that arm finds. Trying non-arm clients may certainly be useful. You could also try an NFSv3 mount, since I would think others are using NFSv3 on arm. Good luck with it, rick > Cheers, > > Paul. > > > > > > rick > > > >>> Has anyone else encountered this? It has only started happening > >>> recently for me, it seems. Prior to this, I have been able to do a > >>> buildworld and buildkernel successfully over NFS. > >>> > >>> Cheers, > >>> > >>> Paul. > >> > >> I cc this to freebsd-fs for you. > >> > >> Ronald. > >> _______________________________________________ > >> freebsd-fs@freebsd.org mailing list > >> https://lists.freebsd.org/mailman/listinfo/freebsd-fs > >> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > >> > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > >