From unknown Fri Jun 20 07:25:35 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#39774 <39774@debbugs.gnu.org> To: bug#39774 <39774@debbugs.gnu.org> Subject: Status: guix incorrectly says "No space left on device" Reply-To: bug#39774 <39774@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:25:35 +0000 retitle 39774 guix incorrectly says "No space left on device" reassign 39774 guix submitter 39774 Jesse Gibbons severity 39774 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 24 22:01:55 2020 Received: (at submit) by debbugs.gnu.org; 25 Feb 2020 03:01:55 +0000 Received: from localhost ([127.0.0.1]:54319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6QTr-0000ti-BZ for submit@debbugs.gnu.org; Mon, 24 Feb 2020 22:01:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:44578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6QTo-0000ta-Uk for submit@debbugs.gnu.org; Mon, 24 Feb 2020 22:01:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44742) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6QTn-0007Vu-PM for bug-guix@gnu.org; Mon, 24 Feb 2020 22:01:52 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6QTm-0008Gb-Ol for bug-guix@gnu.org; Mon, 24 Feb 2020 22:01:51 -0500 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]:35391) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6QTm-0008G8-IE for bug-guix@gnu.org; Mon, 24 Feb 2020 22:01:50 -0500 Received: by mail-pg1-x52f.google.com with SMTP id 7so4068616pgr.2 for ; Mon, 24 Feb 2020 19:01:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:user-agent:mime-version :content-transfer-encoding; bh=mtroscbIusgJbke8OJajmp8pei6InPwLkYN9PA9hLuo=; b=N3Ca3zY7i1dvr5BVJentYlvZiCK+mQbBTHjEAATQU/gjN6llOnirzwUycqMoXnjlhE jqAwezi4UHpOaedPdzBtxB+BNPuVqeQdKa2wEw2zn+VYte1xxMrNExxN0WoLaSHxBjpx +R7fX4FDnknN8qS1618QXvjs2Bee5np7obdcSueaueT/eCj7u4aauHDbj1uvEIUe17TS uIrAEg+2l+E7k0Ta5VHWnxE7wMUM7gVtUwZg6aOHK3JHPEVIL2e0HRX5NnntvcfhEgap 4QsAhbGJeUMNO9OLDADaoJk5L53wL71Utzekejnz7LusA29IxBy4qDLHMvOE0OnSeWru h8fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:user-agent :mime-version:content-transfer-encoding; bh=mtroscbIusgJbke8OJajmp8pei6InPwLkYN9PA9hLuo=; b=QEqhQNd0udTEIQU28QSw1ptVje1h0fFnsLSkhBWEslVjZB3J4O+e5y186xuOYMf/t1 oXhoM4kfnCh8xo4o7Mn9WT+5Uekzm8k/mv31qGKulOmMDvpAHe9XFoVUJ5h9K60jIXhf RJ9pK7rskKT+tm3c3WksUYM64mNYVP3taw3Uxk01jKEaFbavDRdCrGzaRJQerZ1nN5bf muRje8xQZKVWFKn/1BloU/mzuh42zeEkVM+LBHzCuPkVqkZE8xGOfydcEKMgDjmztd7j rTthiD/8yKYmfLQUAXwJZ8UEL3YmXw7RTrSUUCmxq7z2KpFwSeduud2/QVn1CDrlXsP2 qWuQ== X-Gm-Message-State: APjAAAUGl+BOLgNvkc9fCXX06q+IC1xHPfJr9+V8sd4dgYdcNcXuK3mS hA6CmvIhhFOtv4cIB0p7vTEORBXZ X-Google-Smtp-Source: APXvYqxtMf8nlPCg4haq9KMqqte4d/7Ej6M2Gma/6IPgrRvcrS+flSWsUem+Ql8DWPehYila+9J6BA== X-Received: by 2002:a63:ae0a:: with SMTP id q10mr55834149pgf.178.1582599708354; Mon, 24 Feb 2020 19:01:48 -0800 (PST) Received: from [192.168.1.14] ([38.141.58.134]) by smtp.gmail.com with ESMTPSA id l15sm14088159pgi.31.2020.02.24.19.01.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2020 19:01:47 -0800 (PST) Message-ID: <6c750a5f65242c052a75df812123b95f94592b70.camel@gmail.com> Subject: guix incorrectly says "No space left on device" From: Jesse Gibbons To: bug-guix@gnu.org Date: Mon, 24 Feb 2020 20:01:45 -0700 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::52f X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) I have a laptop with two drives. A few days ago, when I ran `df -h` it outputs: Filesystem Size Used Avail Use% Mounted on none 16G 0 16G 0% /dev /dev/sdb1 229G 189G 29G 87% / /dev/sda1 458G 136G 299G 32% /gnu/store tmpfs 16G 0 16G 0% /dev/shm none 16G 64K 16G 1% /run/systemd none 16G 0 16G 0% /run/user cgroup 16G 0 16G 0% /sys/fs/cgroup tmpfs 3.2G 16K 3.2G 1% /run/user/983 tmpfs 3.2G 60K 3.2G 1% /run/user/1001 As you can see, /dev/sda1 is the drive mounted on /gnu/store. Everything in the store is written to it, and it has plenty of space available. Guix sometimes says there is "No space left on device". This always happens in particular when I try `guix gc --optimize`, but it sometimes happens when I call `guix pull` or `guix upgrade`. When guix pull or guix upgrade fails with this message, I can clear up more space by deleting ~/.cache and emtpying my trash and it works. Today I have also seen this happen when I'm trying to upgrade a large profile. It said it could not build anything because there was no more disk space, even after I cleaned up /dev/sdb1 to 40% use. It finally recognized the empty disk space when I called guix gc and it deleted a few of the dependencies needed for the upgrades. But it didn't take long to trigger this bug again. Here's the new output of `df -h`: Filesystem Size Used Avail Use% Mounted on none 16G 0 16G 0% /dev /dev/sdb1 229G 86G 131G 40% / /dev/sda1 458G 182G 253G 42% /gnu/store tmpfs 16G 0 16G 0% /dev/shm none 16G 80K 16G 1% /run/systemd none 16G 0 16G 0% /run/user cgroup 16G 0 16G 0% /sys/fs/cgroup tmpfs 3.2G 24K 3.2G 1% /run/user/983 tmpfs 3.2G 12K 3.2G 1% /run/user/1000 tmpfs 3.2G 60K 3.2G 1% /run/user/1001 Any clues why this happens and what can be done to fix it? Could it be related to how /dev/sdb1 is 229G large, and the total used space in / and /gnu/store is more than that? -Jesse From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 25 01:15:32 2020 Received: (at 39774) by debbugs.gnu.org; 25 Feb 2020 06:15:32 +0000 Received: from localhost ([127.0.0.1]:54365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6TVE-0005XI-8E for submit@debbugs.gnu.org; Tue, 25 Feb 2020 01:15:32 -0500 Received: from tobias.gr ([80.241.217.52]:60862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6TV8-0005X3-Ea for 39774@debbugs.gnu.org; Tue, 25 Feb 2020 01:15:30 -0500 Received: by tobias.gr (OpenSMTPD) with ESMTP id 878cd803 for <39774@debbugs.gnu.org>; Tue, 25 Feb 2020 06:15:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:references:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=7l69NhAjr/bNpb36sxJOLi /q/So3FNWRrt2OCVJSIow=; b=Yx9KXbPSdeuflcJDPU+1Azis/3ZZNzQdgXTefH K/1FtTdZCIAa/C9CBELAnXqeJWQP8KlFny7kSePh/7HfwfHpSABzRe1doC+Fr7DS /akfOatCD3nQ+tYX+Dn/JRkbzZvpopd+qhdrxB7wZGVUKelmiWi7nxQekwR6AC9/ p+7CM7fJJuzGH+T2OdqA0VeyqiPloRPPGNT3KX6oyM3m2vZ3A+7JmX3y/XPCj0XR BcEt2eaMD/d0ZdZKAedL0VgrNOTPP3xobUR1OTdajfN4hbNoK7lLdAIHEN5Q9eyH NHVZSEnoFKI4HNag5aAkWsIADbZ8/4o8P6tkd9AU9oGWTvjA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 2aaf4426 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <39774@debbugs.gnu.org>; Tue, 25 Feb 2020 06:15:23 +0000 (UTC) From: Tobias Geerinckx-Rice To: 39774@debbugs.gnu.org Subject: Re: bug#39774: guix says "No space left on device" References: <6c750a5f65242c052a75df812123b95f94592b70.camel@gmail.com> In-reply-to: <6c750a5f65242c052a75df812123b95f94592b70.camel@gmail.com> Date: Tue, 25 Feb 2020 07:15:47 +0100 Message-ID: <87wo8bry3w.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39774 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Jesse, Are you sure Guix is incorrect? $ df -i / /gnu/store If you're (almost) out of inodes on either, you'll have to delete=20 some files. In which case you can thank Unix for -ENOSPC meaning =E2=80=98you're out=20 of something; I won't tell you what=E2=80=99, but perhaps Guix could work=20 around its flaws by doing our own stat() and displaying a hint.=20 We already warn about low storage space. It makes sense to do the=20 same about inodes. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfo+u0AlEeO9y5k0W2Imw8BjFSTwFAl5Uu5MACgkQ2Imw8BjF STyPDw/+NGsqyILMMFJ5/AnNpCCbPSEuukdTRUfe086QnwCYHoDpl4QDi9SiOA3K ohwqYivUEVkE/0Kffv5i4bUkwfYsYNiBavFHTXaRJc1hvZEXSQh8sY/1Bz+K9e/F w3bmZbiJW5F3HtHjfMdspFzNL5eoYWhGJyBvuR4rEjttgs8ynMD4EzCukEZZ5fTH J9ZzsGDgd/PKd1kI2a+29QZmpZ1xJ2EMPGIspqCnAcOjjkABKUPW1Kmm4DobjXPM qCt7/ca7ldbmIV+nn63VGO9eO5FdeoI/NKt3woyd1lNem3Lw2fR5NmiTpGcrzDug jsD4S23VlsiSfD1kwpq7GYCHMVGQqbKgn1cebcerTlXnplc8TTRq/8xZlFE9w2/1 qTGmv1Y0v6kukdRjDKQUBCRuZD3so7KxgbKrw73QMgjqKCfT/YYLOR2V9wr7vFdB KLRTU+sQkOXa6HRl4AwiYR/8LzHnqpubw7kijnt8UCHheTb63JENAAPYPIZfXeSq 5yy6qg9xhc4/u1XKD/7GOSFwy1QbVmw1s9qoMZWKd/n2LHAQR7OyMP0ywfW8F/je yNRAtDhExEDlD5aZDQ1X4eqWpHdvyoT3bRRChwlJMLWsoZK4BFaRUSb0IjNnSmOy +781UiyRHRxFYLmSGfHLjatR/vEJ2BpDcjXQpTAxaBFcPNPDD1E= =G+9t -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 25 08:38:40 2020 Received: (at 39774) by debbugs.gnu.org; 25 Feb 2020 13:38:40 +0000 Received: from localhost ([127.0.0.1]:54573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6aQ4-0001Tx-Gg for submit@debbugs.gnu.org; Tue, 25 Feb 2020 08:38:40 -0500 Received: from lepiller.eu ([89.234.186.109]:58154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6aPy-0001Tj-SM for 39774@debbugs.gnu.org; Tue, 25 Feb 2020 08:38:38 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 37a014d0; Tue, 25 Feb 2020 13:38:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=CXSqJDnWmoNaWJw7nWx/vPy2vYZilgbS6bRkQSZrhxA=; b=LzE0IkuAt8Zb cGq7kJ+RqVD9UInW3mnfIabOOgFSdwCZmFym3FMD4w2ZneYwd3rcGVMEU0aD+6I6 ZFDxbF5scA3ZytRiLCa/JiNDVmbcmNADO4s4NfIpLCLeu29qFyhI2wqN2rxpNmmC 6OyfLSngrsC2m+fdHdO5UAWi/469DdFAPPl8u5Me733NIjFmDFsdE6XCd0j0vKUt yqG2VTHXesWe254MNCKzH302r3FDeEFEZgutBDrQyGgMDcs+8K62HENM72dzkXvi d/UiQB4gANe0SKW0Jce6XsOSmCpgEl8C1iMLJxjek8lCVOqKklp7z6GrY+UEBLzJ e6Dd069HtA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 23ded6db (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Tue, 25 Feb 2020 13:38:30 +0000 (UTC) Date: Mon, 24 Feb 2020 22:15:10 -0500 User-Agent: K-9 Mail for Android In-Reply-To: <6c750a5f65242c052a75df812123b95f94592b70.camel@gmail.com> References: <6c750a5f65242c052a75df812123b95f94592b70.camel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: bug#39774: guix incorrectly says "No space left on device" To: Jesse Gibbons ,39774@debbugs.gnu.org From: Julien Lepiller Message-ID: <31D6F2BA-A08C-49C4-AD20-6076036A215C@lepiller.eu> X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Le 24 février 2020 22:01:45 GMT-05:00, Jesse Gibbons a écrit : >I have a laptop with two drives. A few days ago, when I ran `df -h` it >outputs: >Filesystem Size Used Avail [...] Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 1.1 DATE_IN_PAST_06_12 Date: is 6 to 12 hours before Received: date 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: lepiller.eu] X-Debbugs-Envelope-To: 39774 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.1 (/) Le 24 f=C3=A9vrier 2020 22:01:45 GMT-05:00, Jesse Gibbons a =C3=A9crit : >I have a laptop with two drives=2E A few days ago, when I ran `df -h` it >outputs: >Filesystem Size Used Avail Use% Mounted on >none 16G 0 16G 0% /dev >/dev/sdb1 229G 189G 29G 87% / >/dev/sda1 458G 136G 299G 32% /gnu/store >tmpfs 16G 0 16G 0% /dev/shm >none 16G 64K 16G 1% /run/systemd >none 16G 0 16G 0% /run/user >cgroup 16G 0 16G 0% /sys/fs/cgroup >tmpfs 3=2E2G 16K 3=2E2G 1% /run/user/983 >tmpfs 3=2E2G 60K 3=2E2G 1% /run/user/1001 > >As you can see, /dev/sda1 is the drive mounted on /gnu/store=2E >Everything in the store is written to it, and it has plenty of space >available=2E > >Guix sometimes says there is "No space left on device"=2E This always >happens in particular when I try `guix gc --optimize`, but it sometimes >happens when I call `guix pull` or `guix upgrade`=2E When guix pull or >guix upgrade fails with this message, I can clear up more space by >deleting ~/=2Ecache and emtpying my trash and it works=2E > > >Today I have also seen this happen when I'm trying to upgrade a large >profile=2E It said it could not build anything because there was no more >disk space, even after I cleaned up /dev/sdb1 to 40% use=2E It finally >recognized the empty disk space when I called guix gc and it deleted a >few of the dependencies needed for the upgrades=2E But it didn't take >long to trigger this bug again=2E Here's the new output of `df -h`: > >Filesystem Size Used Avail Use% Mounted on >none 16G 0 16G 0% /dev >/dev/sdb1 229G 86G 131G 40% / >/dev/sda1 458G 182G 253G 42% /gnu/store >tmpfs 16G 0 16G 0% /dev/shm >none 16G 80K 16G 1% /run/systemd >none 16G 0 16G 0% /run/user >cgroup 16G 0 16G 0% /sys/fs/cgroup >tmpfs 3=2E2G 24K 3=2E2G 1% /run/user/983 >tmpfs 3=2E2G 12K 3=2E2G 1% /run/user/1000 >tmpfs 3=2E2G 60K 3=2E2G 1% /run/user/1001 > >Any clues why this happens and what can be done to fix it? Could it be >related to how /dev/sdb1 is 229G large, and the total used space in / >and /gnu/store is more than that? > >-Jesse There could be two explanations: you've run out of inodes or the filesyste= m that was out of space is not the one you think (maybe it was during a bui= ld and your /tmp is a tmpfs?)=2E Try `df -i`=2E From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 25 09:59:15 2020 Received: (at 39774) by debbugs.gnu.org; 25 Feb 2020 14:59:15 +0000 Received: from localhost ([127.0.0.1]:55933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6bg3-0003mo-B8 for submit@debbugs.gnu.org; Tue, 25 Feb 2020 09:59:15 -0500 Received: from mail-io1-f44.google.com ([209.85.166.44]:39337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6bg2-0003ma-DE for 39774@debbugs.gnu.org; Tue, 25 Feb 2020 09:59:14 -0500 Received: by mail-io1-f44.google.com with SMTP id c16so14467203ioh.6 for <39774@debbugs.gnu.org>; Tue, 25 Feb 2020 06:59:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=CNcyItPUvNVuiMvWwSOdezlkN8Eics6vHkL0afqh7nY=; b=HBGmhwSAmt/MlNxpR4iy1ohkUyqGfdIUhi5SQg9NQdXAsQdLmG8weV87vJnHK4koIl yCvVBetJO9eTFCZuVHZtUaGq+7O+FZeDKs+LLS3sXsne5BXdgs8rwcI4vvHQrbqy9/3L fCR7CzGPsvWEIE/rHuHWFw5YLcxL2DTxNVFvoLj73mMxBS2mk5BvhHLNvqWkQD8f0523 42O8ivj/HR9iPDqCpNQPAGtroTqhNi3k3hK+17Bsv9vNFPVpct/QlEcCHOhcDM6mWmFl ztOwuYRBYmCRCi8bFYFNqs52BwkzMgFvUXRbpxOcG90fziEtktpyQ129aTEQhe/2Nytz mEaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=CNcyItPUvNVuiMvWwSOdezlkN8Eics6vHkL0afqh7nY=; b=bVn/aYGwZJP3psB/3smdvqNHOetWQXtkpaVGto6oIWOd9GBVnfP5BiEUFgmaW587He BqfH00MXz2BELyA4RhxK71I9iKtiMkiVrK+i8P+k4wXQ8N8Hb3+yJ8pq1BN7k1lz0eaA ui7UGwEL38ewLQ5L2drjQz+lg8yXWmCz23kIHNeJ5YxNzFiY2CmRubzEFEfK9FdtXmBp 46PFtj5gLX+1YVchurG/t7/SFXkVa5taz3KwvSDTiR6Y6oNseUuGAdXvqsHJyPHgMDB4 r81/31j3MnnZluKQKUZHbqXmyCOPKmlOLvUKvXjBNO6ytpTO83Dy4DacOR//M1njmwA2 u73A== X-Gm-Message-State: APjAAAW3yu+eqU0QVSYBnJKK3KiXizPCI51Q7OXHgKSBLpB4snraPcsX S7fYWoC9G+U8jSx47rrEKJcDJ1Jv X-Google-Smtp-Source: APXvYqxNSFmIX+00K5W6GLHdpqtJQzlady5Xy1vHoTzi30AHyjq+HwPWqm1DwP4v9nhGrIxSdecdxw== X-Received: by 2002:a5d:9ad9:: with SMTP id x25mr51783882ion.253.1582642747674; Tue, 25 Feb 2020 06:59:07 -0800 (PST) Received: from [10.244.130.47] ([157.201.96.100]) by smtp.gmail.com with ESMTPSA id a4sm3777116ioa.20.2020.02.25.06.59.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 06:59:06 -0800 (PST) Message-ID: <4af517dc0f1203daabdf9b8053a8e302dbf811af.camel@gmail.com> Subject: Re: bug#39774: guix incorrectly says "No space left on device" From: Jesse Gibbons To: Julien Lepiller , 39774@debbugs.gnu.org Date: Tue, 25 Feb 2020 07:59:05 -0700 In-Reply-To: <31D6F2BA-A08C-49C4-AD20-6076036A215C@lepiller.eu> References: <6c750a5f65242c052a75df812123b95f94592b70.camel@gmail.com> <31D6F2BA-A08C-49C4-AD20-6076036A215C@lepiller.eu> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 39774 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) On Mon, 2020-02-24 at 22:15 -0500, Julien Lepiller wrote: > Le 24 février 2020 22:01:45 GMT-05:00, Jesse Gibbons < > jgibbons2357@gmail.com> a écrit : > > I have a laptop with two drives. A few days ago, when I ran `df -h` > > it > > outputs: > > Filesystem Size Used Avail Use% Mounted on > > none 16G 0 16G 0% /dev > > /dev/sdb1 229G 189G 29G 87% / > > /dev/sda1 458G 136G 299G 32% /gnu/store > > tmpfs 16G 0 16G 0% /dev/shm > > none 16G 64K 16G 1% /run/systemd > > none 16G 0 16G 0% /run/user > > cgroup 16G 0 16G 0% /sys/fs/cgroup > > tmpfs 3.2G 16K 3.2G 1% /run/user/983 > > tmpfs 3.2G 60K 3.2G 1% /run/user/1001 > > > > As you can see, /dev/sda1 is the drive mounted on /gnu/store. > > Everything in the store is written to it, and it has plenty of > > space > > available. > > > > Guix sometimes says there is "No space left on device". This always > > happens in particular when I try `guix gc --optimize`, but it > > sometimes > > happens when I call `guix pull` or `guix upgrade`. When guix pull > > or > > guix upgrade fails with this message, I can clear up more space by > > deleting ~/.cache and emtpying my trash and it works. > > > > > > Today I have also seen this happen when I'm trying to upgrade a > > large > > profile. It said it could not build anything because there was no > > more > > disk space, even after I cleaned up /dev/sdb1 to 40% use. It > > finally > > recognized the empty disk space when I called guix gc and it > > deleted a > > few of the dependencies needed for the upgrades. But it didn't take > > long to trigger this bug again. Here's the new output of `df -h`: > > > > Filesystem Size Used Avail Use% Mounted on > > none 16G 0 16G 0% /dev > > /dev/sdb1 229G 86G 131G 40% / > > /dev/sda1 458G 182G 253G 42% /gnu/store > > tmpfs 16G 0 16G 0% /dev/shm > > none 16G 80K 16G 1% /run/systemd > > none 16G 0 16G 0% /run/user > > cgroup 16G 0 16G 0% /sys/fs/cgroup > > tmpfs 3.2G 24K 3.2G 1% /run/user/983 > > tmpfs 3.2G 12K 3.2G 1% /run/user/1000 > > tmpfs 3.2G 60K 3.2G 1% /run/user/1001 > > > > Any clues why this happens and what can be done to fix it? Could it > > be > > related to how /dev/sdb1 is 229G large, and the total used space in > > / > > and /gnu/store is more than that? > > > > -Jesse > > There could be two explanations: you've run out of inodes or the > filesystem that was out of space is not the one you think (maybe it > was during a build and your /tmp is a tmpfs?). Try `df -i`. ~$ df -ih Filesystem Inodes IUsed IFree IUse% Mounted on none 4.0M 525 4.0M 1% /dev /dev/sdb1 15M 77K 15M 1% / /dev/sda1 30M 29M 1015K 97% /gnu/store tmpfs 4.0M 1 4.0M 1% /dev/shm none 4.0M 47 4.0M 1% /run/systemd none 4.0M 4 4.0M 1% /run/user cgroup 4.0M 11 4.0M 1% /sys/fs/cgroup tmpfs 4.0M 13 4.0M 1% /run/user/983 tmpfs 4.0M 24 4.0M 1% /run/user/1001 tmpfs 4.0M 1 4.0M 1% /run/user/1000 That makes sense now. /dev/sda1 (mounted on /gnu/store) was out of inodes. Is there a way to increase the maximum number of inodes a partition can use? Or perhaps divide the store among multiple partitions?