GNU bug report logs - #33374
[PATCH] doc: guix: Inform about deleting old system generations

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: swedebugia <swedebugia@HIDDEN>; Keywords: patch; dated Wed, 14 Nov 2018 08:22:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 33374 <at> debbugs.gnu.org:


Received: (at 33374) by debbugs.gnu.org; 3 Jan 2019 16:17:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 03 11:17:26 2019
Received: from localhost ([127.0.0.1]:45900 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gf5gS-0006AT-LY
	for submit <at> debbugs.gnu.org; Thu, 03 Jan 2019 11:17:26 -0500
Received: from mx1.riseup.net ([198.252.153.129]:44474)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <swedebugia@HIDDEN>) id 1gf5gQ-0006AL-Rv
 for 33374 <at> debbugs.gnu.org; Thu, 03 Jan 2019 11:17:23 -0500
Received: from piha.riseup.net (piha-pn.riseup.net [10.0.1.163])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (Client CN "*.riseup.net",
 Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK))
 by mx1.riseup.net (Postfix) with ESMTPS id 3CF3E1A0972;
 Thu,  3 Jan 2019 08:17:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;
 t=1546532242; bh=5ndFmriRx+0BjfBOfsfjvRs2Kgxeh0Ugei6PrPM/RCM=;
 h=Subject:From:To:References:Date:In-Reply-To:From;
 b=ric5RsnQsxJxClhqtP679OnXvPbv2Lp1iTZxfI9Ef7l2LS8R1Y+1HhMA8H/M5SeCX
 EFpMCHwgZ7vBcUMcQ8H7hU963As5Gfr02h/meOR23RFBOGlHwtFKAPCRF8FyPgfA+/
 kP121gso7jJEtTXOp45B2oeFFMxhkJ3FVNig4OEI=
X-Riseup-User-ID: CEF7209C5FAEF7197DC89A12353D81112770C7DE8F4AE77571681C14E393E124
Received: from [127.0.0.1] (localhost [127.0.0.1])
 by piha.riseup.net with ESMTPSA id C994B1C0AD9;
 Thu,  3 Jan 2019 08:17:17 -0800 (PST)
Subject: Re: [bug#33374] [PATCH] doc: guix: Inform about deleting old system
 generations
From: swedebugia <swedebugia@HIDDEN>
To: 33374 <at> debbugs.gnu.org, mail@HIDDEN, mhw@HIDDEN
References: <87muqiwwn1.fsf@HIDDEN>
 <351b7d95-8226-bbcb-eeaa-16ff2249783f@HIDDEN>
Message-ID: <83662888-071c-fc75-cae8-87927407d852@HIDDEN>
Date: Thu, 3 Jan 2019 17:24:00 +0100
MIME-Version: 1.0
In-Reply-To: <351b7d95-8226-bbcb-eeaa-16ff2249783f@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 33374
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

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@HIDDEN>
> To: swedebugia <swedebugia@HIDDEN>
> CC: Pierre Neidhardt <mail@HIDDEN>, Guix-Help <help-guix@HIDDEN>
> 
>>> Pierre Neidhardt <mail@HIDDEN> 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




Information forwarded to guix-patches@HIDDEN:
bug#33374; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Nov 2018 08:21:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 14 03:21:43 2018
Received: from localhost ([127.0.0.1]:50906 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gMqQh-0000jL-4B
	for submit <at> debbugs.gnu.org; Wed, 14 Nov 2018 03:21:43 -0500
Received: from eggs.gnu.org ([208.118.235.92]:39599)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <swedebugia@HIDDEN>) id 1gMqQf-0000j9-Tn
 for submit <at> debbugs.gnu.org; Wed, 14 Nov 2018 03:21:42 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <swedebugia@HIDDEN>) id 1gMqQZ-0002C7-IQ
 for submit <at> debbugs.gnu.org; Wed, 14 Nov 2018 03:21:36 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:59166)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <swedebugia@HIDDEN>)
 id 1gMqQZ-0002C1-Ev
 for submit <at> debbugs.gnu.org; Wed, 14 Nov 2018 03:21:35 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:49203)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <swedebugia@HIDDEN>) id 1gMqQY-0006h7-4Z
 for guix-patches@HIDDEN; Wed, 14 Nov 2018 03:21:35 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <swedebugia@HIDDEN>) id 1gMqQU-0002AE-UH
 for guix-patches@HIDDEN; Wed, 14 Nov 2018 03:21:34 -0500
Received: from mx1.riseup.net ([198.252.153.129]:45269)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <swedebugia@HIDDEN>)
 id 1gMqQU-00029j-Hn
 for guix-patches@HIDDEN; Wed, 14 Nov 2018 03:21:30 -0500
Received: from piha.riseup.net (piha-pn.riseup.net [10.0.1.163])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (Client CN "*.riseup.net",
 Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK))
 by mx1.riseup.net (Postfix) with ESMTPS id CC73D1A015E;
 Wed, 14 Nov 2018 00:21:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;
 t=1542183689; bh=TQaaXuC5WpL9DgO988yu3uDkUy0fyI8JNBWerkKl+KA=;
 h=Subject:References:To:From:Date:In-Reply-To:From;
 b=gflKyYsCgcpFhJPcuKdg3DjPd7AXON++6hob8mkV1xaRYWfpVOItwxm0vf85ajDXF
 +dnPlEPkvDuFo+s2SS43fRGOkGdvsrCMYQJ846UXZiVXO4kwLAGcYAr0m6J6n+HCGb
 gqmCr5QMeG2Q41rFiqR4i/zuCJBe+X2d6CIcriGM=
X-Riseup-User-ID: 90C71FA1251F33CB25E86D5C4148C8D4BB1D146626B47C8297E40474EF311CA9
Received: from [127.0.0.1] (localhost [127.0.0.1])
 by piha.riseup.net with ESMTPSA id A002B66824;
 Wed, 14 Nov 2018 00:21:26 -0800 (PST)
Subject: [PATCH] doc: guix: Inform about deleting old system generations
References: <87muqiwwn1.fsf@HIDDEN>
To: guix-patches@HIDDEN, Pierre Neidhardt <mail@HIDDEN>,
 Mark H Weaver <mhw@HIDDEN>
From: swedebugia <swedebugia@HIDDEN>
X-Forwarded-Message-Id: <87muqiwwn1.fsf@HIDDEN>
Message-ID: <351b7d95-8226-bbcb-eeaa-16ff2249783f@HIDDEN>
Date: Wed, 14 Nov 2018 09:21:24 +0100
MIME-Version: 1.0
In-Reply-To: <87muqiwwn1.fsf@HIDDEN>
Content-Type: multipart/mixed; boundary="------------FF741AFDA94617680B6BDF35"
Content-Language: en-US
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.1 (-----)

This is a multi-part message in MIME format.
--------------FF741AFDA94617680B6BDF35
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

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@HIDDEN>
To: swedebugia <swedebugia@HIDDEN>
CC: Pierre Neidhardt <mail@HIDDEN>, Guix-Help <help-guix@HIDDEN>

>> Pierre Neidhardt <mail@HIDDEN> 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

--------------FF741AFDA94617680B6BDF35
Content-Type: text/x-patch;
 name="0001-doc-guix-Inform-users-about-deleting-old-system-gene.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename*0="0001-doc-guix-Inform-users-about-deleting-old-system-gene.pa";
 filename*1="tch"

From 8825b2aa2a10c0fa536486cd52a488601a7846d3 Mon Sep 17 00:00:00 2001
From: swedebugia <swedebugia@HIDDEN>
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


--------------FF741AFDA94617680B6BDF35--




Acknowledgement sent to swedebugia <swedebugia@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#33374; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.