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 <can...@gmail.com>:
> On Sun, Jan 19, 2014 at 9:40 AM, Amankwah <amankw...@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
>

Reply via email to