From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f169.google.com ([209.85.213.169]:36925 "EHLO mail-ig0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757375AbcAKAYi (ORCPT ); Sun, 10 Jan 2016 19:24:38 -0500 Received: by mail-ig0-f169.google.com with SMTP id h5so62641837igh.0 for ; Sun, 10 Jan 2016 16:24:38 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <20160109202659.GC6060@carfax.org.uk> Date: Sun, 10 Jan 2016 17:24:37 -0700 Message-ID: Subject: Re: 6TB partition, Data only 2TB - aka When you haven't hit the "usual" problem From: Chris Murphy To: "cheater00 ." Cc: Henk Slager , Btrfs BTRFS , Hugo Mills , Chris Murphy Content-Type: text/plain; charset=UTF-8 Sender: linux-btrfs-owner@vger.kernel.org List-ID: On Sun, Jan 10, 2016 at 4:47 PM, cheater00 . wrote: > On Sun, Jan 10, 2016 at 3:14 PM, Henk Slager wrote: > buggy fs ("Media"): > Data, single: total=1.98TiB, used=1.98TiB > System, DUP: total=8.00MiB, used=240.00KiB > System, single: total=4.00MiB, used=0.00B > Metadata, DUP: total=5.50GiB, used=3.49GiB > Metadata, single: total=8.00MiB, used=0.00B > GlobalReserve, single: total=512.00MiB, used=0.00B > >> What you could try is to create an image+'copy' of the fs with >> btrfs-image just after you get ENOSPC abd then do various tests with >> that (make sure unmount or even better unplug the physical hdd!). Like >> mounting and then try to add a file, convert all metadata + system >> from dup to single and then try to add a file. It all doesn't give >> real space, but it might give hints to what could be wrong. > > I can't do that because I would have to buy an extra disk which is 300 euro. You have 4TB unused on that disk. You could shrink the fs to ~3TB, and then change partition size to match and create a 2nd partition with whatever FS you want as the target for btrfs-image. After that, migrate your data from the broken fs to the new one. If you use Btrfs for the new volume on that 2nd partition you can use btrfs send-receive for this. After it's successful, you can wipefs the 1st partition, and then add it as an additional device to the new volume. -- Chris Murphy