NFS corruption in recent HEAD.

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun Nov 27 11:37:17 UTC 2011


On Sat, Nov 26, 2011 at 09:03:46PM -0500, Rick Macklem wrote:
> Pawel Jakub Dawidek wrote:
> > Hi.
> > 
> > I'm booting machine over the network using new NFS client and I'm
> > getting those warnings on boot:
> > 
> > /etc/rc.subr: 666: Syntax error: "(" unexpected (expecting ";;")
[...]
> Oh, and maybe you could try reverting r227543 in the client (assuming
> the client is post-r227543). Maybe that file's vnode type isn't set to
> VREG early in the diskless booting and needs the ncl_flush() for some
> reason.
> 
> I don't actually have a bug that needs r227543 to fix it. It just seemed
> incorrect to flush non-VREG files (particularily VDIR). As such, reverting
> it wouldn't be a big deal.

I haven't tried reverting anything yet, but I think I was able to
reproduce this with old NFS client as well. The problem goes away when I
comment out root mount point from /etc/fstab or remove mntudp from mount
options. NFS root is mounted using TCP, AFAIK and it probably happens
when startup scripts (rc.d/mountcritremote) remounts root with mntudp
flag. The rc.subr warning starts to appear just after mountcritremote is
called.

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
FreeBSD committer                         http://www.FreeBSD.org
Am I Evil? Yes, I Am!                     http://yomoli.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20111127/addc0b0e/attachment.pgp


More information about the freebsd-fs mailing list