GNU bug report logs -
#62986
Guix System cannot shutdown when there are NFS mounts
Previous Next
To reply to this bug, email your comments to 62986 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#62986
; Package
guix
.
(Fri, 21 Apr 2023 03:54:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Fri, 21 Apr 2023 03:54:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello,
This has been reported by others in #guix as well, although we're
currently short on details.
When an NFS mount is active at the time a shutdown is requested, the
system hangs, and doesn't shut down. The power button must be
long-pressed to power off the machine.
--
Thanks,
Maxim
Information forwarded
to
bug-guix <at> gnu.org
:
bug#62986
; Package
guix
.
(Thu, 18 May 2023 18:14:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 62986 <at> debbugs.gnu.org (full text, mbox):
Hi Maxim,
On 2023-04-21 04:53, Maxim Cournoyer wrote:
> Hello,
>
> This has been reported by others in #guix as well, although we're
> currently short on details.
>
> When an NFS mount is active at the time a shutdown is requested, the
> system hangs, and doesn't shut down. The power button must be
> long-pressed to power off the machine.
I suspect this is because 'networking is disengaged before the NFS mount is unmounted.
Supposing that a NFS volume is mounted at /x/y/z (either manually or via a shepherd service),
probably what's happening is that the parent shepherd service of that path (be it /x/y, /x or /)
never unmounts due to the NFS child path.
It can't unmount the NFS path because:
a. manual NFS mount, 'networking has no knowledge of this and is already gone;
b. if provisioned through operating-system, since it doesn't support adding arbitrary shepherd dependencies
and it does not add 'networking to its 'requires' field, 'networking is already gone by the time it reaches here. [1]
If the NFS volume is manually unmounted (or there's some mechanism in place to unmount it before 'networking)
then no hang should occur.
[1]: Though it's tempting to simply add a 'networking dependency to any file-system-type = “nfs”, this
is not the best idea since:
a. not every service has a way to indicate that 'networking is ready (NFS mounts will fail to be automatically
mounted but in theory they should be able to unmount without interaction)
b. Interfaces that are configured outside of the 'networking service (be it manually, via custom shepherd service, etc.)
or that do not “depend” on the general idea of 'networking, such as NFS mounts using interface scoped Link-Local addresses.
Cheers,
Bruno
This bug report was last modified 1 year and 300 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.