From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f48.google.com ([209.85.214.48]:52047 "EHLO mail-it0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727099AbeH1TUj (ORCPT ); Tue, 28 Aug 2018 15:20:39 -0400 Received: by mail-it0-f48.google.com with SMTP id e14-v6so3262341itf.1 for ; Tue, 28 Aug 2018 08:28:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Noah Massey Date: Tue, 28 Aug 2018 11:27:51 -0400 Message-ID: Subject: Re: 14Gb of space lost after distro upgrade on BTFS root partition (long thread with logs) To: menion@gmail.com Cc: Chris Murphy , linux-btrfs Content-Type: text/plain; charset="UTF-8" Sender: linux-btrfs-owner@vger.kernel.org List-ID: On Tue, Aug 28, 2018 at 10:59 AM Menion wrote: > > [sudo] password for menion: > ID gen top level path > -- --- --------- ---- > 257 600627 5 /@ > 258 600626 5 /@home > 296 599489 5 > /@apt-snapshot-release-upgrade-bionic-2018-08-27_15:29:55 > 297 599489 5 > /@apt-snapshot-release-upgrade-bionic-2018-08-27_15:30:08 > 298 599489 5 > /@apt-snapshot-release-upgrade-bionic-2018-08-27_15:33:30 > > So, there are snapshots, right? The time stamp is when I have launched > do-release-upgrade, but it didn't ask anything about snapshot, neither > I asked for it. This is an Ubuntu thing `apt show apt-btrfs-snapshot` which "will create a btrfs snapshot of the root filesystem each time that apt installs/removes/upgrades a software package." > During the do-release-upgrade I got some issues due to the (very) bad > behaviour of the script in remote terminal, then I have fixed > everything manually and now the filesystem is operational in bionic > version > If it is confirmed, how can I remove the unwanted snapshot, keeping > the current "visible" filesystem contents By default, the package runs a weekly cron job to cleanup old snapshots. (Defaults to 90d, but you can configure that in APT::Snapshots::MaxAge) Alternatively, you can cleanup with the command yourself. Run `sudo apt-btrfs-snapshot list`, and then `sudo apt-btrfs-snapshot delete ` ~ Noah