* [gentoo-user] System hangs when poweroff with NFS mounted
@ 2014-01-19 15:40 Amankwah
2014-01-20 5:16 ` Canek Peláez Valdés
0 siblings, 1 reply; 6+ messages in thread
From: Amankwah @ 2014-01-19 15:40 UTC (permalink / raw
To: gentoo-user
Hi all,
I swithed to Gnome3 last week, and the systemd is needed by
gnome3.8, so I used systemd to replace the openrc now. Howerver, my
system always hangs when I try to poweroff.
I have NFSv3 filesystem mounted via WiFi, it's managed by the
Networkmanager. so it seemed that the wireless connection was cut off
before the NFS was unmounted? I searched this problem and modified my
fstab line like this:
NAS:/data /media/NAS nfs
_netdev,x-systemd.automount,x-systemd.device-timeout=10ms,rw,soft,vers=3
0 0
It's worked under the wired connnection, but the wireless connection
still hangs, Is there any thing should be changed? Or is it a bug?
I have to umount the NFS before poweroff everytime. Please tell me what can I do to
resove this problem?
Thx
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] System hangs when poweroff with NFS mounted
2014-01-19 15:40 [gentoo-user] System hangs when poweroff with NFS mounted Amankwah
@ 2014-01-20 5:16 ` Canek Peláez Valdés
2014-01-24 15:45 ` 刘洋
0 siblings, 1 reply; 6+ messages in thread
From: Canek Peláez Valdés @ 2014-01-20 5:16 UTC (permalink / raw
To: gentoo-user
On Sun, Jan 19, 2014 at 9:40 AM, Amankwah <amankwah7@gmail.com> wrote:
> Hi all,
> I swithed to Gnome3 last week, and the systemd is needed by
> gnome3.8, so I used systemd to replace the openrc now. Howerver, my
> system always hangs when I try to poweroff.
> I have NFSv3 filesystem mounted via WiFi, it's managed by the
> Networkmanager. so it seemed that the wireless connection was cut off
> before the NFS was unmounted? I searched this problem and modified my
> fstab line like this:
>
> NAS:/data /media/NAS nfs
> _netdev,x-systemd.automount,x-systemd.device-timeout=10ms,rw,soft,vers=3
> 0 0
>
> It's worked under the wired connnection, but the wireless connection
> still hangs, Is there any thing should be changed? Or is it a bug?"
I think it's a bug; systemd should stop NetworkManager.service only
after all remote filesystems have been umounted. Could you boot up
your machine after it hanged, and send the contents from "journalctl
--boot=-1". That will give us the logs from the previous boot; perhaps
we can see the problem.
> I have to umount the NFS before poweroff everytime. Please tell me what can I do to
> resove this problem?
I think it's a bug, but in the meantime (as a workaround) you can put
the following script in
/usr/lib/systemd/system-shutdown/nfs-force-umount:
---------------------------------
#!/bin/sh
/bin/umount -l /media/NAS
---------------------------------
Make sure the script is executable.
Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] System hangs when poweroff with NFS mounted
2014-01-20 5:16 ` Canek Peláez Valdés
@ 2014-01-24 15:45 ` 刘洋
2014-01-24 17:24 ` Canek Peláez Valdés
0 siblings, 1 reply; 6+ messages in thread
From: 刘洋 @ 2014-01-24 15:45 UTC (permalink / raw
To: gentoo-user
journalctl --boot=-1
-- Logs begin at Tuesday 2013-12-24 21:48:33 CST, end at Friday
2014-01-24 22:38:38 CST. --
1月 24 21:54:22 diamond systemd[3061]: Failed to open private bus
connection: Failed to connect to socket
/run/user/1000/dbus/user_bus_socket: No such file or directory
1月 24 21:54:22 diamond systemd[3061]: Mounted /sys/kernel/config.
1月 24 21:54:22 diamond systemd[3061]: Mounted /sys/fs/fuse/connections.
1月 24 21:54:22 diamond systemd[3061]: Stopped target Bluetooth.
1月 24 21:54:22 diamond systemd[3061]: Stopped target Sound Card.
1月 24 21:54:22 diamond systemd[3061]: Starting Default.
1月 24 21:54:22 diamond systemd[3061]: Reached target Default.
1月 24 21:54:22 diamond systemd[3061]: Startup finished in 419ms.
1月 24 21:54:31 diamond pulseaudio[3293]: [pulseaudio] pid.c: Daemon
already running.
1月 24 21:54:31 diamond pulseaudio[3296]: [pulseaudio] pid.c: Daemon
already running.
1月 24 21:54:31 diamond pulseaudio[3299]: [pulseaudio] pid.c: Daemon
already running.
1月 24 21:54:31 diamond pulseaudio[3301]: [pulseaudio] pid.c: Daemon
already running.
1月 24 21:55:01 diamond sudo[3362]: amankwah : TTY=pts/4 ;
PWD=/home/amankwah ; USER=root ; COMMAND=/bin/sh
1月 24 22:34:32 diamond systemd[3061]: Stopping Default.
1月 24 22:34:32 diamond systemd[3061]: Stopped target Default.
1月 24 22:34:32 diamond systemd[3061]: Starting Shutdown.
1月 24 22:34:32 diamond systemd[3061]: Reached target Shutdown.
1月 24 22:34:49 diamond pulseaudio[3279]: [pulseaudio] core-util.c:
Failed to create secure directory (/run/user/1000/pulse): No such file
or directory
These are the output of the command on my system after hangs. but why
I saw nothing about my NFS directories?
I added the script to the path, and the system shutdown correctly, but
the time is too long, every NFS directory complained the timeout due
to and then umounted, maybe it took about 10 minutes for choosing the
shutdown under desktop to the system poweroff automatically.
2014/1/20 Canek Peláez Valdés <caneko@gmail.com>:
> On Sun, Jan 19, 2014 at 9:40 AM, Amankwah <amankwah7@gmail.com> wrote:
>> Hi all,
>> I swithed to Gnome3 last week, and the systemd is needed by
>> gnome3.8, so I used systemd to replace the openrc now. Howerver, my
>> system always hangs when I try to poweroff.
>> I have NFSv3 filesystem mounted via WiFi, it's managed by the
>> Networkmanager. so it seemed that the wireless connection was cut off
>> before the NFS was unmounted? I searched this problem and modified my
>> fstab line like this:
>>
>> NAS:/data /media/NAS nfs
>> _netdev,x-systemd.automount,x-systemd.device-timeout=10ms,rw,soft,vers=3
>> 0 0
>>
>> It's worked under the wired connnection, but the wireless connection
>> still hangs, Is there any thing should be changed? Or is it a bug?"
>
> I think it's a bug; systemd should stop NetworkManager.service only
> after all remote filesystems have been umounted. Could you boot up
> your machine after it hanged, and send the contents from "journalctl
> --boot=-1". That will give us the logs from the previous boot; perhaps
> we can see the problem.
>
>> I have to umount the NFS before poweroff everytime. Please tell me what can I do to
>> resove this problem?
>
> I think it's a bug, but in the meantime (as a workaround) you can put
> the following script in
> /usr/lib/systemd/system-shutdown/nfs-force-umount:
>
> ---------------------------------
> #!/bin/sh
> /bin/umount -l /media/NAS
> ---------------------------------
>
> Make sure the script is executable.
>
> Regards.
> --
> Canek Peláez Valdés
> Posgrado en Ciencia e Ingeniería de la Computación
> Universidad Nacional Autónoma de México
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] System hangs when poweroff with NFS mounted
2014-01-24 15:45 ` 刘洋
@ 2014-01-24 17:24 ` Canek Peláez Valdés
2014-02-01 1:04 ` Amankwah
0 siblings, 1 reply; 6+ messages in thread
From: Canek Peláez Valdés @ 2014-01-24 17:24 UTC (permalink / raw
To: gentoo-user
On Fri, Jan 24, 2014 at 9:45 AM, 刘洋 <amankwah7@gmail.com> wrote:
> journalctl --boot=-1
> -- Logs begin at Tuesday 2013-12-24 21:48:33 CST, end at Friday
> 2014-01-24 22:38:38 CST. --
> 1月 24 21:54:22 diamond systemd[3061]: Failed to open private bus
> connection: Failed to connect to socket
> /run/user/1000/dbus/user_bus_socket: No such file or directory
> 1月 24 21:54:22 diamond systemd[3061]: Mounted /sys/kernel/config.
> 1月 24 21:54:22 diamond systemd[3061]: Mounted /sys/fs/fuse/connections.
> 1月 24 21:54:22 diamond systemd[3061]: Stopped target Bluetooth.
> 1月 24 21:54:22 diamond systemd[3061]: Stopped target Sound Card.
> 1月 24 21:54:22 diamond systemd[3061]: Starting Default.
> 1月 24 21:54:22 diamond systemd[3061]: Reached target Default.
> 1月 24 21:54:22 diamond systemd[3061]: Startup finished in 419ms.
> 1月 24 21:54:31 diamond pulseaudio[3293]: [pulseaudio] pid.c: Daemon
> already running.
> 1月 24 21:54:31 diamond pulseaudio[3296]: [pulseaudio] pid.c: Daemon
> already running.
> 1月 24 21:54:31 diamond pulseaudio[3299]: [pulseaudio] pid.c: Daemon
> already running.
> 1月 24 21:54:31 diamond pulseaudio[3301]: [pulseaudio] pid.c: Daemon
> already running.
> 1月 24 21:55:01 diamond sudo[3362]: amankwah : TTY=pts/4 ;
> PWD=/home/amankwah ; USER=root ; COMMAND=/bin/sh
> 1月 24 22:34:32 diamond systemd[3061]: Stopping Default.
> 1月 24 22:34:32 diamond systemd[3061]: Stopped target Default.
> 1月 24 22:34:32 diamond systemd[3061]: Starting Shutdown.
> 1月 24 22:34:32 diamond systemd[3061]: Reached target Shutdown.
> 1月 24 22:34:49 diamond pulseaudio[3279]: [pulseaudio] core-util.c:
> Failed to create secure directory (/run/user/1000/pulse): No such file
> or directory
>
> These are the output of the command on my system after hangs. but why
> I saw nothing about my NFS directories?
>
> I added the script to the path, and the system shutdown correctly, but
> the time is too long, every NFS directory complained the timeout due
> to and then umounted, maybe it took about 10 minutes for choosing the
> shutdown under desktop to the system poweroff automatically.
10 minutes looks awfully long to me... and then I saw again your
fstab. You explicitly set a timeout of 10 milliseconds; but what if
there is a bug in systemd that parses 10ms (milliseconds) as 10m
(minutes)?
Just to try, change your fstab to set x-systemd.device-timeout=5;
without a suffix, so the time specified should be in seconds.
Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] System hangs when poweroff with NFS mounted
2014-01-24 17:24 ` Canek Peláez Valdés
@ 2014-02-01 1:04 ` Amankwah
2014-02-05 0:15 ` Canek Peláez Valdés
0 siblings, 1 reply; 6+ messages in thread
From: Amankwah @ 2014-02-01 1:04 UTC (permalink / raw
To: gentoo-user
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 3059 bytes --]
On Fri, Jan 24, 2014 at 11:24:46AM -0600, Canek Pel¨¢ez Vald¨¦s wrote:
> On Fri, Jan 24, 2014 at 9:45 AM, ÁõÑó <amankwah7@gmail.com> wrote:
> > journalctl --boot=-1
> > -- Logs begin at Tuesday 2013-12-24 21:48:33 CST, end at Friday
> > 2014-01-24 22:38:38 CST. --
> > 1ÔÂ 24 21:54:22 diamond systemd[3061]: Failed to open private bus
> > connection: Failed to connect to socket
> > /run/user/1000/dbus/user_bus_socket: No such file or directory
> > 1ÔÂ 24 21:54:22 diamond systemd[3061]: Mounted /sys/kernel/config.
> > 1ÔÂ 24 21:54:22 diamond systemd[3061]: Mounted /sys/fs/fuse/connections.
> > 1ÔÂ 24 21:54:22 diamond systemd[3061]: Stopped target Bluetooth.
> > 1ÔÂ 24 21:54:22 diamond systemd[3061]: Stopped target Sound Card.
> > 1ÔÂ 24 21:54:22 diamond systemd[3061]: Starting Default.
> > 1ÔÂ 24 21:54:22 diamond systemd[3061]: Reached target Default.
> > 1ÔÂ 24 21:54:22 diamond systemd[3061]: Startup finished in 419ms.
> > 1ÔÂ 24 21:54:31 diamond pulseaudio[3293]: [pulseaudio] pid.c: Daemon
> > already running.
> > 1ÔÂ 24 21:54:31 diamond pulseaudio[3296]: [pulseaudio] pid.c: Daemon
> > already running.
> > 1ÔÂ 24 21:54:31 diamond pulseaudio[3299]: [pulseaudio] pid.c: Daemon
> > already running.
> > 1ÔÂ 24 21:54:31 diamond pulseaudio[3301]: [pulseaudio] pid.c: Daemon
> > already running.
> > 1ÔÂ 24 21:55:01 diamond sudo[3362]: amankwah : TTY=pts/4 ;
> > PWD=/home/amankwah ; USER=root ; COMMAND=/bin/sh
> > 1ÔÂ 24 22:34:32 diamond systemd[3061]: Stopping Default.
> > 1ÔÂ 24 22:34:32 diamond systemd[3061]: Stopped target Default.
> > 1ÔÂ 24 22:34:32 diamond systemd[3061]: Starting Shutdown.
> > 1ÔÂ 24 22:34:32 diamond systemd[3061]: Reached target Shutdown.
> > 1ÔÂ 24 22:34:49 diamond pulseaudio[3279]: [pulseaudio] core-util.c:
> > Failed to create secure directory (/run/user/1000/pulse): No such file
> > or directory
> >
> > These are the output of the command on my system after hangs. but why
> > I saw nothing about my NFS directories?
> >
> > I added the script to the path, and the system shutdown correctly, but
> > the time is too long, every NFS directory complained the timeout due
> > to and then umounted, maybe it took about 10 minutes for choosing the
> > shutdown under desktop to the system poweroff automatically.
>
> 10 minutes looks awfully long to me... and then I saw again your
> fstab. You explicitly set a timeout of 10 milliseconds; but what if
> there is a bug in systemd that parses 10ms (milliseconds) as 10m
> (minutes)?
>
> Just to try, change your fstab to set x-systemd.device-timeout=5;
> without a suffix, so the time specified should be in seconds.
>
It seems that takes my more than 10 minutes, too. I don't know why.
And when I saw the shutdown screen, the WPA_** process was killed before
the the NFS umounted. Maybe it the reason why all of the NFS filesystem
umount process were running after the wireless connection closed.
Maybe that's a BUG?
> Regards.
> --
> Canek Pel¨¢ez Vald¨¦s
> Posgrado en Ciencia e Ingenier¨ªa de la Computaci¨®n
> Universidad Nacional Aut¨®noma de M¨¦xico
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] System hangs when poweroff with NFS mounted
2014-02-01 1:04 ` Amankwah
@ 2014-02-05 0:15 ` Canek Peláez Valdés
0 siblings, 0 replies; 6+ messages in thread
From: Canek Peláez Valdés @ 2014-02-05 0:15 UTC (permalink / raw
To: gentoo-user
On Fri, Jan 31, 2014 at 7:04 PM, Amankwah <amankwah7@gmail.com> wrote:
> On Fri, Jan 24, 2014 at 11:24:46AM -0600, Canek Peláez Valdés wrote:
>> On Fri, Jan 24, 2014 at 9:45 AM, 刘洋 <amankwah7@gmail.com> wrote:
>> > journalctl --boot=-1
>> > -- Logs begin at Tuesday 2013-12-24 21:48:33 CST, end at Friday
>> > 2014-01-24 22:38:38 CST. --
>> > 1月 24 21:54:22 diamond systemd[3061]: Failed to open private bus
>> > connection: Failed to connect to socket
>> > /run/user/1000/dbus/user_bus_socket: No such file or directory
>> > 1月 24 21:54:22 diamond systemd[3061]: Mounted /sys/kernel/config.
>> > 1月 24 21:54:22 diamond systemd[3061]: Mounted /sys/fs/fuse/connections.
>> > 1月 24 21:54:22 diamond systemd[3061]: Stopped target Bluetooth.
>> > 1月 24 21:54:22 diamond systemd[3061]: Stopped target Sound Card.
>> > 1月 24 21:54:22 diamond systemd[3061]: Starting Default.
>> > 1月 24 21:54:22 diamond systemd[3061]: Reached target Default.
>> > 1月 24 21:54:22 diamond systemd[3061]: Startup finished in 419ms.
>> > 1月 24 21:54:31 diamond pulseaudio[3293]: [pulseaudio] pid.c: Daemon
>> > already running.
>> > 1月 24 21:54:31 diamond pulseaudio[3296]: [pulseaudio] pid.c: Daemon
>> > already running.
>> > 1月 24 21:54:31 diamond pulseaudio[3299]: [pulseaudio] pid.c: Daemon
>> > already running.
>> > 1月 24 21:54:31 diamond pulseaudio[3301]: [pulseaudio] pid.c: Daemon
>> > already running.
>> > 1月 24 21:55:01 diamond sudo[3362]: amankwah : TTY=pts/4 ;
>> > PWD=/home/amankwah ; USER=root ; COMMAND=/bin/sh
>> > 1月 24 22:34:32 diamond systemd[3061]: Stopping Default.
>> > 1月 24 22:34:32 diamond systemd[3061]: Stopped target Default.
>> > 1月 24 22:34:32 diamond systemd[3061]: Starting Shutdown.
>> > 1月 24 22:34:32 diamond systemd[3061]: Reached target Shutdown.
>> > 1月 24 22:34:49 diamond pulseaudio[3279]: [pulseaudio] core-util.c:
>> > Failed to create secure directory (/run/user/1000/pulse): No such file
>> > or directory
>> >
>> > These are the output of the command on my system after hangs. but why
>> > I saw nothing about my NFS directories?
>> >
>> > I added the script to the path, and the system shutdown correctly, but
>> > the time is too long, every NFS directory complained the timeout due
>> > to and then umounted, maybe it took about 10 minutes for choosing the
>> > shutdown under desktop to the system poweroff automatically.
>>
>> 10 minutes looks awfully long to me... and then I saw again your
>> fstab. You explicitly set a timeout of 10 milliseconds; but what if
>> there is a bug in systemd that parses 10ms (milliseconds) as 10m
>> (minutes)?
>>
>> Just to try, change your fstab to set x-systemd.device-timeout=5;
>> without a suffix, so the time specified should be in seconds.
>>
> It seems that takes my more than 10 minutes, too. I don't know why.
>
> And when I saw the shutdown screen, the WPA_** process was killed before
> the the NFS umounted. Maybe it the reason why all of the NFS filesystem
> umount process were running after the wireless connection closed.
>
> Maybe that's a BUG?
Or an order error in the related service unit files. OpenSuse has
something similar in [1] and [2].
[1] https://bugzilla.novell.com/show_bug.cgi?id=849387
[2] https://bugzilla.novell.com/show_bug.cgi?id=857031
You can override a unit file in /usr/lib by creating one in /etc with
the same name. Perhaps playing with After= and Requires= in the NFS
units will solve this.
I haven't used NFS in a long time. Are you using the service files
provided by the packages, or you got them from somewhere else?
Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-02-05 0:15 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-19 15:40 [gentoo-user] System hangs when poweroff with NFS mounted Amankwah
2014-01-20 5:16 ` Canek Peláez Valdés
2014-01-24 15:45 ` 刘洋
2014-01-24 17:24 ` Canek Peláez Valdés
2014-02-01 1:04 ` Amankwah
2014-02-05 0:15 ` Canek Peláez Valdés
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox