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: Fri, 24 Jan 2014 17:24:54
Message-Id: CADPrc805JxLha8Gxa17F1G7ch_C9Vi=5rO-wxO5x62RaBZ4mSw@mail.gmail.com
In Reply to: Re: [gentoo-user] System hangs when poweroff with NFS mounted by "刘洋"
1 On Fri, Jan 24, 2014 at 9:45 AM, 刘洋 <amankwah7@×××××.com> wrote:
2 > journalctl --boot=-1
3 > -- Logs begin at Tuesday 2013-12-24 21:48:33 CST, end at Friday
4 > 2014-01-24 22:38:38 CST. --
5 > 1月 24 21:54:22 diamond systemd[3061]: Failed to open private bus
6 > connection: Failed to connect to socket
7 > /run/user/1000/dbus/user_bus_socket: No such file or directory
8 > 1月 24 21:54:22 diamond systemd[3061]: Mounted /sys/kernel/config.
9 > 1月 24 21:54:22 diamond systemd[3061]: Mounted /sys/fs/fuse/connections.
10 > 1月 24 21:54:22 diamond systemd[3061]: Stopped target Bluetooth.
11 > 1月 24 21:54:22 diamond systemd[3061]: Stopped target Sound Card.
12 > 1月 24 21:54:22 diamond systemd[3061]: Starting Default.
13 > 1月 24 21:54:22 diamond systemd[3061]: Reached target Default.
14 > 1月 24 21:54:22 diamond systemd[3061]: Startup finished in 419ms.
15 > 1月 24 21:54:31 diamond pulseaudio[3293]: [pulseaudio] pid.c: Daemon
16 > already running.
17 > 1月 24 21:54:31 diamond pulseaudio[3296]: [pulseaudio] pid.c: Daemon
18 > already running.
19 > 1月 24 21:54:31 diamond pulseaudio[3299]: [pulseaudio] pid.c: Daemon
20 > already running.
21 > 1月 24 21:54:31 diamond pulseaudio[3301]: [pulseaudio] pid.c: Daemon
22 > already running.
23 > 1月 24 21:55:01 diamond sudo[3362]: amankwah : TTY=pts/4 ;
24 > PWD=/home/amankwah ; USER=root ; COMMAND=/bin/sh
25 > 1月 24 22:34:32 diamond systemd[3061]: Stopping Default.
26 > 1月 24 22:34:32 diamond systemd[3061]: Stopped target Default.
27 > 1月 24 22:34:32 diamond systemd[3061]: Starting Shutdown.
28 > 1月 24 22:34:32 diamond systemd[3061]: Reached target Shutdown.
29 > 1月 24 22:34:49 diamond pulseaudio[3279]: [pulseaudio] core-util.c:
30 > Failed to create secure directory (/run/user/1000/pulse): No such file
31 > or directory
32 >
33 > These are the output of the command on my system after hangs. but why
34 > I saw nothing about my NFS directories?
35 >
36 > I added the script to the path, and the system shutdown correctly, but
37 > the time is too long, every NFS directory complained the timeout due
38 > to and then umounted, maybe it took about 10 minutes for choosing the
39 > shutdown under desktop to the system poweroff automatically.
40
41 10 minutes looks awfully long to me... and then I saw again your
42 fstab. You explicitly set a timeout of 10 milliseconds; but what if
43 there is a bug in systemd that parses 10ms (milliseconds) as 10m
44 (minutes)?
45
46 Just to try, change your fstab to set x-systemd.device-timeout=5;
47 without a suffix, so the time specified should be in seconds.
48
49 Regards.
50 --
51 Canek Peláez Valdés
52 Posgrado en Ciencia e Ingeniería de la Computación
53 Universidad Nacional Autónoma de México

Replies

Subject Author
Re: [gentoo-user] System hangs when poweroff with NFS mounted Amankwah <amankwah7@×××××.com>