Skip to content
This repository has been archived by the owner on Aug 27, 2018. It is now read-only.

shut down cannot unmount /nix/store #126

Closed
maggesi opened this issue Mar 28, 2013 · 8 comments
Closed

shut down cannot unmount /nix/store #126

maggesi opened this issue Mar 28, 2013 · 8 comments

Comments

@maggesi
Copy link
Contributor

maggesi commented Mar 28, 2013

On several machines I get an error on shoutdown:

Could not unmount /nix/store: Device or resource busy
Not all file system unmounted, 1 left.
Cannot finalize remaining file systems and devices, giving up.
[ 859.088793] System halted.

And the computer do not turn off automatically.

@vcunat
Copy link
Member

vcunat commented Mar 28, 2013

I already encountered too short systemd timeouts (my filesystems are quite fragmented).

@viric
Copy link
Member

viric commented Mar 28, 2013

I think this was mentioned either in another issue, or in nix-dev. In any case, I experience this in every machine too.
'halt', as it doesn't power off, it's an easy way to see the related messages.

@viric
Copy link
Member

viric commented Apr 11, 2013

Btw, the error unmounting appears in a "[ OK ]" systemd line.

@modulistic
Copy link
Contributor

I feel this issue might come from the upstream kernels as it is happening
to me lately in some boxes running opensuse and ubuntu. I'm afraid I have
paid not much attention as these boxes are not in production.
On Mar 28, 2013 2:35 PM, "viric" notifications@github.com wrote:

I think this was mentioned either in another issue, or in nix-dev. In any
case, I experience this in every machine too.
'halt', as it doesn't power off, it's an easy way to see the related
messages.


Reply to this email directly or view it on GitHubhttps://github.com//issues/126#issuecomment-15588481
.

@edolstra
Copy link
Member

We should probably just patch systemd to ignore /nix/store (which obviously cannot be unmounted because systemd is running from it). It already ignores / and /usr:

                /* Skip / and /usr since we cannot unmount that
                 * anyway, since we are running from it. They have
                 * already been remounted ro. */
                if (path_equal(m->path, "/")
#ifndef HAVE_SPLIT_USR
                    || path_equal(m->path, "/usr")
#endif
                )
                        continue;

@viric
Copy link
Member

viric commented Apr 12, 2013

On Fri, Apr 12, 2013 at 03:31:21AM -0700, Eelco Dolstra wrote:

We should probably just patch systemd to ignore /nix/store (which obviously cannot be unmounted because systemd is running from it). It already ignores / and /usr:

Ah so they are mounted ro already, at that point?

@edolstra
Copy link
Member

Yes. However, remounting ro might not work correctly if people have /nix/store as a separate filesystem and nix.readOnlyStore enabled (since systemd won't be able to remount the underlying mount point).

edolstra added a commit to NixOS/nixpkgs that referenced this issue Apr 12, 2013
wkennington pushed a commit to wkennington/systemd that referenced this issue Apr 5, 2014
They'll still be remounted read-only.

NixOS/nixos#126
wkennington pushed a commit to wkennington/systemd that referenced this issue Apr 5, 2014
They'll still be remounted read-only.

NixOS/nixos#126
wkennington pushed a commit to wkennington/systemd that referenced this issue Apr 6, 2014
They'll still be remounted read-only.

NixOS/nixos#126
Mathnerd314 pushed a commit to Mathnerd314/systemd that referenced this issue Jul 14, 2014
They'll still be remounted read-only.

NixOS/nixos#126
Mathnerd314 pushed a commit to Mathnerd314/systemd that referenced this issue Jul 14, 2014
They'll still be remounted read-only.

NixOS/nixos#126
@CMCDragonkai
Copy link
Member

@edolstra Does still happen? Because I'm seeing this error too: NixOS/nixpkgs#3280

Maybe the fix is only in the master branch?

wkennington pushed a commit to wkennington/systemd that referenced this issue Apr 17, 2015
They'll still be remounted read-only.

NixOS/nixos#126
wkennington pushed a commit to wkennington/systemd that referenced this issue Apr 27, 2015
They'll still be remounted read-only.

NixOS/nixos#126
edolstra added a commit to NixOS/systemd that referenced this issue Aug 24, 2015
They'll still be remounted read-only.

NixOS/nixos#126
edolstra added a commit to NixOS/systemd that referenced this issue Sep 7, 2015
They'll still be remounted read-only.

NixOS/nixos#126
edolstra added a commit to NixOS/systemd that referenced this issue Sep 8, 2015
They'll still be remounted read-only.

NixOS/nixos#126
edolstra added a commit to NixOS/systemd that referenced this issue Oct 7, 2015
They'll still be remounted read-only.

NixOS/nixos#126
dezgeg pushed a commit to dezgeg/systemd that referenced this issue Nov 21, 2015
They'll still be remounted read-only.

NixOS/nixos#126
edolstra added a commit to NixOS/systemd that referenced this issue Dec 7, 2015
They'll still be remounted read-only.

NixOS/nixos#126
edolstra added a commit to NixOS/systemd that referenced this issue Feb 12, 2016
They'll still be remounted read-only.

NixOS/nixos#126
wkennington pushed a commit to triton/systemd that referenced this issue May 24, 2016
They'll still be remounted read-only.

NixOS/nixos#126
edolstra added a commit to NixOS/systemd that referenced this issue May 26, 2016
They'll still be remounted read-only.

NixOS/nixos#126
wkennington pushed a commit to triton/systemd that referenced this issue May 27, 2016
They'll still be remounted read-only.

NixOS/nixos#126
wkennington pushed a commit to triton/systemd that referenced this issue Jul 26, 2016
They'll still be remounted read-only.

NixOS/nixos#126
edolstra added a commit to NixOS/systemd that referenced this issue Jul 28, 2016
They'll still be remounted read-only.

NixOS/nixos#126
wkennington pushed a commit to triton/systemd that referenced this issue Nov 4, 2016
They'll still be remounted read-only.

NixOS/nixos#126
wkennington pushed a commit to triton/systemd that referenced this issue Mar 2, 2017
They'll still be remounted read-only.

NixOS/nixos#126
globin pushed a commit to mayflower/systemd that referenced this issue Mar 30, 2017
They'll still be remounted read-only.

NixOS/nixos#126
Mic92 pushed a commit to Mic92/systemd that referenced this issue May 28, 2017
They'll still be remounted read-only.

NixOS/nixos#126
Mic92 pushed a commit to Mic92/systemd that referenced this issue Jun 5, 2017
They'll still be remounted read-only.

NixOS/nixos#126
Mic92 pushed a commit to Mic92/systemd that referenced this issue Jun 5, 2017
They'll still be remounted read-only.

NixOS/nixos#126
Mic92 pushed a commit to Mic92/systemd that referenced this issue Jun 10, 2017
They'll still be remounted read-only.

NixOS/nixos#126
Mic92 pushed a commit to Mic92/systemd that referenced this issue Jun 18, 2017
They'll still be remounted read-only.

NixOS/nixos#126
Mic92 pushed a commit to Mic92/systemd that referenced this issue Jun 24, 2017
They'll still be remounted read-only.

NixOS/nixos#126
Mic92 pushed a commit to Mic92/systemd that referenced this issue Jun 28, 2017
They'll still be remounted read-only.

NixOS/nixos#126
Mic92 pushed a commit to Mic92/systemd that referenced this issue Jul 12, 2017
They'll still be remounted read-only.

NixOS/nixos#126
Mic92 pushed a commit to Mic92/systemd that referenced this issue Jul 12, 2017
They'll still be remounted read-only.

NixOS/nixos#126
Mic92 pushed a commit to Mic92/systemd that referenced this issue Jul 23, 2017
They'll still be remounted read-only.

NixOS/nixos#126
Mic92 pushed a commit to Mic92/systemd that referenced this issue Aug 24, 2017
They'll still be remounted read-only.

NixOS/nixos#126
NeQuissimus pushed a commit to NeQuissimus/systemd that referenced this issue Oct 21, 2017
They'll still be remounted read-only.

NixOS/nixos#126
flokli pushed a commit to flokli/systemd that referenced this issue Oct 22, 2017
They'll still be remounted read-only.

NixOS/nixos#126
flokli pushed a commit to flokli/systemd that referenced this issue Oct 22, 2017
They'll still be remounted read-only.

NixOS/nixos#126
Mic92 pushed a commit to Mic92/systemd that referenced this issue Feb 26, 2018
They'll still be remounted read-only.

NixOS/nixos#126
fpletz pushed a commit to NixOS/systemd that referenced this issue Mar 22, 2018
They'll still be remounted read-only.

NixOS/nixos#126
abbradar pushed a commit to abbradar/systemd that referenced this issue Mar 23, 2018
They'll still be remounted read-only.

NixOS/nixos#126
fpletz pushed a commit to NixOS/systemd that referenced this issue Aug 3, 2018
They'll still be remounted read-only.

NixOS/nixos#126
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants