[Pkg-systemd-maintainers] Bug#719945: Bug#719945: systemd: Hangs during shutdown (likely NFS-related)
Sam Morris
sam at robots.org.uk
Thu Jan 23 09:33:52 GMT 2014
On Wed, Jan 22, 2014 at 10:45:58PM +0100, Zbigniew Jędrzejewski-Szmek wrote:
> On Wed, Jan 22, 2014 at 11:59:27AM +0000, Sam Morris wrote:
> > Package: systemd
> > Version: 204-6
> > Followup-For: Bug #719945
> >
> > I'm seeing this bug. Adding _netdev to the fstab entry doesn't help.
> > I'm able to fiddle with configuration if you need my help to debug this
> > further.
> >
> > /etc/fstab:
> >
> > gaia:/home /home nfs rw,nosuid,nodev,nfsvers=3,hard,intr,sloppy,_netdev 0 0
> >
> > Generator output after adding _netdev:
> >
> > diff --git i/home.mount w/home.mount
> > index a3741bf..3d42691 100644
> > --- i/home.mount
> > +++ w/home.mount
> > @@ -16,4 +16,4 @@ What=gaia:/home
> > Where=/home
> > Type=nfs
> > FsckPassNo=0
> > -Options=rw,nosuid,nodev,nfsvers=3,hard,intr,sloppy
> > +Options=rw,nosuid,nodev,nfsvers=3,hard,intr,sloppy,_netdev
> >
> >
> > $ systemctl show home.mount
> > Id=home.mount
> > Names=home.mount
> > Requires=-.mount
> > Wants=network-online.target
> > Conflicts=umount.target
> > Before=local-fs.target umount.target remote-fs.target
> This is wrong. The dependency for local-fs.target should not be there.
> It'll cause the fs to be kept around until after the network is gone.
Here's the full home.mount from the generator:
[Unit]
SourcePath=/etc/fstab
DefaultDependencies=no
After=remote-fs-pre.target
After=network.target
After=network-online.target
Wants=network-online.target
Conflicts=umount.target
Before=umount.target
Before=remote-fs.target
[Mount]
What=gaia:/home
Where=/home
Type=nfs
FsckPassNo=0
Options=rw,nosuid,nodev,nfsvers=3,hard,sloppy
Not sure where Before=local-fs.target comes from.
--
Sam Morris
https://robots.org.uk/
PGP key id 1024D/5EA01078
3412 EA18 1277 354B 991B C869 B219 7FDB 5EA0 1078
More information about the Pkg-systemd-maintainers
mailing list