Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496978 - net-fs/nfs-utils-1.2.9-r1 with sys-apps/systemd-208-r2 'systemctl start nfsd' hangs
Summary: net-fs/nfs-utils-1.2.9-r1 with sys-apps/systemd-208-r2 'systemctl start nfsd'...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-04 16:39 UTC by Juergen Rose
Modified: 2014-08-17 14:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2014-01-04 16:39:41 UTC
I can not start or restart nfsd. 'systemctl start nfsd'  and 'systemctl restart nfsd' hangs:

root@condor:/usr/local/portage/media-libs(42)# systemctl start nfsd
^C
root@condor:/usr/local/portage/media-libs(43)# systemctl status nfsd
nfsd.service - NFS server
   Loaded: loaded (/usr/lib64/systemd/system/nfsd.service; enabled)
   Active: activating (start-post) since Sa 2014-01-04 16:26:02 CET; 1h 11min ago
  Process: 31917 ExecStopPost=/usr/sbin/exportfs -a -u (code=exited, status=0/SUCCESS)
  Process: 8800 ExecStop=/usr/sbin/rpc.nfsd 0 (code=exited, status=0/SUCCESS)
  Process: 12262 ExecStart=/usr/sbin/rpc.nfsd $OPTS_RPC_NFSD (code=exited, status=0/SUCCESS)
 Main PID: 12262 (code=exited, status=0/SUCCESS);         : 12263 (exportfs)
   CGroup: /system.slice/nfsd.service
           └─control
             └─12263 /usr/sbin/exportfs -a

'journalctl; does not show any meaningfull message:

root@condor:/usr/local/portage/media-libs(44)# journalctl -xn

root@condor:/usr/local/portage/media-libs(44)# journalctl -xn
-- Logs begin at Mi 2013-09-18 23:23:38 CEST, end at Sa 2014-01-04 17:30:01 CET. --
Jan 04 16:25:53 condor systemd[1]: Stopped NFS server.
-- Subject: Unit nfsd.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/9d1aaa27d60140bd96365438aad20286
-- 
-- Unit nfsd.service has finished shutting down.
Jan 04 16:26:02 condor systemd[1]: Starting NFS server...
-- Subject: Unit nfsd.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit nfsd.service has begun starting up.
Jan 04 16:30:01 condor cron[12268]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons)
Jan 04 16:40:01 condor cron[12283]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons)
Jan 04 16:50:01 condor cron[12298]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons)
Jan 04 16:59:01 condor cron[12314]: (root) CMD (rm -f /var/spool/cron/lastrun/cron.hourly)
Jan 04 17:00:01 condor cron[12317]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons)
Jan 04 17:10:01 condor cron[12332]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons)
Jan 04 17:20:01 condor cron[12348]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons)
Jan 04 17:30:01 condor cron[12364]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons)
~
~
Comment 1 Pacho Ramos gentoo-dev 2014-01-07 15:32:02 UTC
What does occur with downgrading to 1.2.9? (you will need to either reboot or run "systemctl daemon-reload" to use new unit files after each installation)
Comment 2 Juergen Rose 2014-01-11 11:26:49 UTC
(In reply to Pacho Ramos from comment #1)
> What does occur with downgrading to 1.2.9? (you will need to either reboot
> or run "systemctl daemon-reload" to use new unit files after each
> installation)

I still not downgraded to 1.2.9. But there is an additional problem. When I try to reboot condor, I see the following messages:
[534375.773075] br0: port 1(vbox) entered disabled state
[...          ] br0: port 1(vbox) entered disabled state
[...          ] br0: port 2(eth0) entered disabled state
[             ] sky2 ...
[             ] device eth0 left promiscuous mode
[             ] br0: port2(eth0) entered disabled state
[             ] nfsd; non-standard errno: -4
Sending SIGTERM to remaining processes...
[             ] systemd-journald[2402]: Received SIGTERM
Sending SIGKILL to remaining processes...
Sending SIGKILL to PID 20579 (sshd)
Sending SIGKILL to PID 22382 (sleep)
Sending SIGKILL to PID 22304 (sleep)
Sending SIGKILL to PID 26040 (bash)
Unmounting filesystems
[             ] NFS: state manager: lease expired failed on NFSv4 Server impala with error 5
[             ] NFS: state manager: check lease failed on NFSv4 Server caiman.homenet with error 5
Unmounting /net/impala/usr/src_impala
[             ] NFS: state manager: lease expired failed on NFSv4 Server impala with error 5
[             ] nfs: server caiman.homenet not responding, timed out
...

It looks if the network interface is already disabled and the NFS shares are not unmounted. The systems waits several minutes for each timeout. So I am waiting already about one hour that the system will reboot.
Comment 3 SpanKY gentoo-dev 2014-06-20 06:23:21 UTC
nfs-utils-1.3.0 has completely new systemd stack (from upstream) ...