Re: Problem: nfsd producing stales when restarting too fast

From: Neil Brown
Date: Tue Aug 03 2004 - 05:40:10 EST


On Tuesday August 3, fsteiner-mail@xxxxxxxxxxxxxx wrote:
>
> Btw, it's not a problem with the init script, I can also
> produce this behaviour manually by
> /usr/sbin/exportfs -au
> killall -9 nfsd
> killall -9 /usr/sbin/rpc.mountd
> [sleep 5]
> /usr/sbin/exportfs -r
> /usr/sbin/rpc.nfsd
> /usr/sbin/rpc.mountd
>
> Without the sleep, everything stales. With the sleep, it works
> fine.

Try doing the "exportfs -au" *after* killing nfsd.
Unexporting active filesystems while nfsd is running almost guarantees stale
file handles.

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/