* [bug#33374] [PATCH] doc: guix: Inform about deleting old system generations
[not found] <87muqiwwn1.fsf@netris.org>
@ 2018-11-14 8:21 ` swedebugia
2019-01-03 16:24 ` swedebugia
2022-04-07 11:56 ` zimoun
0 siblings, 2 replies; 4+ messages in thread
From: swedebugia @ 2018-11-14 8:21 UTC (permalink / raw)
To: 33374, mail, mhw
[-- Attachment #1: Type: text/plain, Size: 808 bytes --]
Note the FIXME.
-------- Forwarded Message --------
Subject: Re: Ever-growing store with --gc-keep-outputs?
Date: Fri, 09 Nov 2018 02:13:43 -0500
From: Mark H Weaver <mhw@netris.org>
To: swedebugia <swedebugia@riseup.net>
CC: Pierre Neidhardt <mail@ambrevar.xyz>, Guix-Help <help-guix@gnu.org>
>> Pierre Neidhardt <mail@ambrevar.xyz> writes:
snip
>> When I want to free up some disk space, I do the following steps:
>>
>> (1) update my user profiles and delete old generations
>> (2) delete older generations in /var/guix/profiles (but always
>> keeping the one referenced by /run/booted-system!)
>> (3) reconfigure the system to remove the old system profiles from
>> grub.cfg
>> (4) guix gc
> This would be nice to have in the manual I think.
Would you like to propose a patch?
Mark
[-- Attachment #2: 0001-doc-guix-Inform-users-about-deleting-old-system-gene.patch --]
[-- Type: text/x-patch, Size: 3699 bytes --]
From 8825b2aa2a10c0fa536486cd52a488601a7846d3 Mon Sep 17 00:00:00 2001
From: swedebugia <swedebugia@riseup.net>
Date: Wed, 14 Nov 2018 09:13:25 +0100
Subject: [PATCH] doc: guix: Inform users about deleting old system generations
to save space
* guix/scripts.scm: Expand error message. FIXME: we should hide this from
non-GuixSD-users.
* doc/guix.texi (GNU System Distribution): New section: Managing free space.
---
doc/guix.texi | 37 +++++++++++++++++++++++++++++++++++++
guix/scripts.scm | 9 +++++++--
2 files changed, 44 insertions(+), 2 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index 0ba034e82..dd507cbc4 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -212,6 +212,7 @@ GNU Distribution
* Documentation:: Browsing software user manuals.
* Installing Debugging Files:: Feeding the debugger.
* Security Updates:: Deploying security fixes quickly.
+* Managing free space:: Delete unused files from the store.
* Package Modules:: Packages from the programmer's viewpoint.
* Packaging Guidelines:: Growing the distribution.
* Bootstrapping:: GNU/Linux built from scratch.
@@ -8894,6 +8895,7 @@ For information on porting to other architectures or kernels,
* Documentation:: Browsing software user manuals.
* Installing Debugging Files:: Feeding the debugger.
* Security Updates:: Deploying security fixes quickly.
+* Managing free space:: Delete unused files from the store.
* Package Modules:: Packages from the programmer's viewpoint.
* Packaging Guidelines:: Growing the distribution.
* Bootstrapping:: GNU/Linux built from scratch.
@@ -23511,6 +23513,41 @@ Lastly, to check which Bash running processes are using, you can use the
lsof | grep /gnu/store/.*bash
@end example
+@node Managing free space
+@section Managing free space
+
+@cindex free up space
+@cindex delete system generations
+
+Garbage collection in GuixSD is done the same way as in Guix for package
+profiles. System generations cannot yet be deleted with the @command{guix system}
+command. We recommend you to follow this procedure when freeing up space in
+GuixSD:
+
+@table @asis
+
+@item 1)
+@command{guix package -p ~s --delete-generations=1m}
+
+@item 2)
+Manually delete old system generations symlinks in
+@file{/var/guix/profiles}, but always keeping at least the one referenced by
+@file{/run/booted-system}! We recommend keeping at least the current and the
+former generation to make roll-back possible, see @pxref{Invoking guix system}.
+
+If you would like to help implementing a guix command for
+this step, see @pxref{Contributing}.
+
+@item 3)
+Reconfigure the system to remove the deleted system profiles from
+grub.cfg, see @pxref{Invoking guix system}
+
+@item 4)
+Lastly finish cleaning up with @command{guix gc}.
+
+@end table
+
+
@node Package Modules
@section Package Modules
diff --git a/guix/scripts.scm b/guix/scripts.scm
index 5e20ecd92..702855a33 100644
--- a/guix/scripts.scm
+++ b/guix/scripts.scm
@@ -215,8 +215,13 @@ available."
generations and collecting garbage, along these lines:
@example
-guix package -p ~s --delete-generations=1m
-guix gc
+1) $ guix package -p ~s --delete-generations=1m
+2) also consider manually deleting old system generations symlinks in
+/var/guix/profiles (but always keeping the one referenced by
+/run/booted-system!
+3) reconfigure the system to remove the old system profiles from grub.cfg
+4) lastly clean up with:
+$ guix gc
@end example\n")
profile))
(display-hint (G_ "Consider running @command{guix gc} to free
--
2.18.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#33374] [PATCH] doc: guix: Inform about deleting old system generations
2018-11-14 8:21 ` [bug#33374] [PATCH] doc: guix: Inform about deleting old system generations swedebugia
@ 2019-01-03 16:24 ` swedebugia
2022-04-07 11:56 ` zimoun
1 sibling, 0 replies; 4+ messages in thread
From: swedebugia @ 2019-01-03 16:24 UTC (permalink / raw)
To: 33374, mail, mhw
On 2018-11-14 09:21, swedebugia wrote:
> Note the FIXME.
>
>
> -------- Forwarded Message --------
> Subject: Re: Ever-growing store with --gc-keep-outputs?
> Date: Fri, 09 Nov 2018 02:13:43 -0500
> From: Mark H Weaver <mhw@netris.org>
> To: swedebugia <swedebugia@riseup.net>
> CC: Pierre Neidhardt <mail@ambrevar.xyz>, Guix-Help <help-guix@gnu.org>
>
>>> Pierre Neidhardt <mail@ambrevar.xyz> writes:
>
> snip
>
>>> When I want to free up some disk space, I do the following steps:
>>>
>>> (1) update my user profiles and delete old generations
>>> (2) delete older generations in /var/guix/profiles (but always
>>> keeping the one referenced by /run/booted-system!)
>>> (3) reconfigure the system to remove the old system profiles from
>>> grub.cfg
>>> (4) guix gc
>> This would be nice to have in the manual I think.
>
> Would you like to propose a patch?
>
> Mark
Ping
--
Cheers Swedebugia
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#33374] [PATCH] doc: guix: Inform about deleting old system generations
2018-11-14 8:21 ` [bug#33374] [PATCH] doc: guix: Inform about deleting old system generations swedebugia
2019-01-03 16:24 ` swedebugia
@ 2022-04-07 11:56 ` zimoun
2022-05-19 21:28 ` zimoun
1 sibling, 1 reply; 4+ messages in thread
From: zimoun @ 2022-04-07 11:56 UTC (permalink / raw)
To: swedebugia; +Cc: mhw, 33374, mail
Hi,
Look at old patches, I hit this patch#33374:
<http://issues.guix.gnu.org/issue/33374>
On Wed, 14 Nov 2018 at 09:21, swedebugia <swedebugia@riseup.net> wrote:
> -------- Forwarded Message --------
> Subject: Re: Ever-growing store with --gc-keep-outputs?
> Date: Fri, 09 Nov 2018 02:13:43 -0500
> From: Mark H Weaver <mhw@netris.org>
> To: swedebugia <swedebugia@riseup.net>
> CC: Pierre Neidhardt <mail@ambrevar.xyz>, Guix-Help <help-guix@gnu.org>
>
>>> Pierre Neidhardt <mail@ambrevar.xyz> writes:
>
> snip
>
>>> When I want to free up some disk space, I do the following steps:
>>>
>>> (1) update my user profiles and delete old generations
>>> (2) delete older generations in /var/guix/profiles (but always
>>> keeping the one referenced by /run/booted-system!)
>>> (3) reconfigure the system to remove the old system profiles from
>>> grub.cfg
>>> (4) guix gc
>> This would be nice to have in the manual I think.
>
> Would you like to propose a patch?
>
> Mark
From my point of the view, this submission should be for the Cookbook.
WDYT?
Cheers,
simon
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#33374] [PATCH] doc: guix: Inform about deleting old system generations
2022-04-07 11:56 ` zimoun
@ 2022-05-19 21:28 ` zimoun
0 siblings, 0 replies; 4+ messages in thread
From: zimoun @ 2022-05-19 21:28 UTC (permalink / raw)
To: swedebugia; +Cc: mhw, 33374, mail
Hi,
On Thu, 07 Apr 2022 at 13:56, zimoun <zimon.toutoune@gmail.com> wrote:
> Look at old patches, I hit this patch#33374:
>
> <http://issues.guix.gnu.org/issue/33374>
>
>
> On Wed, 14 Nov 2018 at 09:21, swedebugia <swedebugia@riseup.net> wrote:
>> Date: Fri, 09 Nov 2018 02:13:43 -0500
> From my point of the view, this submission should be for the Cookbook.
Well, no answer. Therefore, I am closing. If I am missing, feel free
to reopen.
Cheers,
simon
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-05-19 21:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <87muqiwwn1.fsf@netris.org>
2018-11-14 8:21 ` [bug#33374] [PATCH] doc: guix: Inform about deleting old system generations swedebugia
2019-01-03 16:24 ` swedebugia
2022-04-07 11:56 ` zimoun
2022-05-19 21:28 ` zimoun
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).