Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] System hangs when poweroff with NFS mounted
Date: Wed, 05 Feb 2014 00:15:37
Message-Id: CADPrc83n7oTtSiFHey72h9u2gQccMS+s4djGf2LO6t2FwFdwkA@mail.gmail.com
In Reply to: Re: [gentoo-user] System hangs when poweroff with NFS mounted by Amankwah
1 On Fri, Jan 31, 2014 at 7:04 PM, Amankwah <amankwah7@×××××.com> wrote:
2 > On Fri, Jan 24, 2014 at 11:24:46AM -0600, Canek Peláez Valdés wrote:
3 >> On Fri, Jan 24, 2014 at 9:45 AM, 刘洋 <amankwah7@×××××.com> wrote:
4 >> > journalctl --boot=-1
5 >> > -- Logs begin at Tuesday 2013-12-24 21:48:33 CST, end at Friday
6 >> > 2014-01-24 22:38:38 CST. --
7 >> > 1月 24 21:54:22 diamond systemd[3061]: Failed to open private bus
8 >> > connection: Failed to connect to socket
9 >> > /run/user/1000/dbus/user_bus_socket: No such file or directory
10 >> > 1月 24 21:54:22 diamond systemd[3061]: Mounted /sys/kernel/config.
11 >> > 1月 24 21:54:22 diamond systemd[3061]: Mounted /sys/fs/fuse/connections.
12 >> > 1月 24 21:54:22 diamond systemd[3061]: Stopped target Bluetooth.
13 >> > 1月 24 21:54:22 diamond systemd[3061]: Stopped target Sound Card.
14 >> > 1月 24 21:54:22 diamond systemd[3061]: Starting Default.
15 >> > 1月 24 21:54:22 diamond systemd[3061]: Reached target Default.
16 >> > 1月 24 21:54:22 diamond systemd[3061]: Startup finished in 419ms.
17 >> > 1月 24 21:54:31 diamond pulseaudio[3293]: [pulseaudio] pid.c: Daemon
18 >> > already running.
19 >> > 1月 24 21:54:31 diamond pulseaudio[3296]: [pulseaudio] pid.c: Daemon
20 >> > already running.
21 >> > 1月 24 21:54:31 diamond pulseaudio[3299]: [pulseaudio] pid.c: Daemon
22 >> > already running.
23 >> > 1月 24 21:54:31 diamond pulseaudio[3301]: [pulseaudio] pid.c: Daemon
24 >> > already running.
25 >> > 1月 24 21:55:01 diamond sudo[3362]: amankwah : TTY=pts/4 ;
26 >> > PWD=/home/amankwah ; USER=root ; COMMAND=/bin/sh
27 >> > 1月 24 22:34:32 diamond systemd[3061]: Stopping Default.
28 >> > 1月 24 22:34:32 diamond systemd[3061]: Stopped target Default.
29 >> > 1月 24 22:34:32 diamond systemd[3061]: Starting Shutdown.
30 >> > 1月 24 22:34:32 diamond systemd[3061]: Reached target Shutdown.
31 >> > 1月 24 22:34:49 diamond pulseaudio[3279]: [pulseaudio] core-util.c:
32 >> > Failed to create secure directory (/run/user/1000/pulse): No such file
33 >> > or directory
34 >> >
35 >> > These are the output of the command on my system after hangs. but why
36 >> > I saw nothing about my NFS directories?
37 >> >
38 >> > I added the script to the path, and the system shutdown correctly, but
39 >> > the time is too long, every NFS directory complained the timeout due
40 >> > to and then umounted, maybe it took about 10 minutes for choosing the
41 >> > shutdown under desktop to the system poweroff automatically.
42 >>
43 >> 10 minutes looks awfully long to me... and then I saw again your
44 >> fstab. You explicitly set a timeout of 10 milliseconds; but what if
45 >> there is a bug in systemd that parses 10ms (milliseconds) as 10m
46 >> (minutes)?
47 >>
48 >> Just to try, change your fstab to set x-systemd.device-timeout=5;
49 >> without a suffix, so the time specified should be in seconds.
50 >>
51 > It seems that takes my more than 10 minutes, too. I don't know why.
52 >
53 > And when I saw the shutdown screen, the WPA_** process was killed before
54 > the the NFS umounted. Maybe it the reason why all of the NFS filesystem
55 > umount process were running after the wireless connection closed.
56 >
57 > Maybe that's a BUG?
58
59 Or an order error in the related service unit files. OpenSuse has
60 something similar in [1] and [2].
61
62 [1] https://bugzilla.novell.com/show_bug.cgi?id=849387
63 [2] https://bugzilla.novell.com/show_bug.cgi?id=857031
64
65 You can override a unit file in /usr/lib by creating one in /etc with
66 the same name. Perhaps playing with After= and Requires= in the NFS
67 units will solve this.
68
69 I haven't used NFS in a long time. Are you using the service files
70 provided by the packages, or you got them from somewhere else?
71
72 Regards.
73 --
74 Canek Peláez Valdés
75 Posgrado en Ciencia e Ingeniería de la Computación
76 Universidad Nacional Autónoma de México