All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roman Mamedov <rm@romanrm.net>
To: Reindl Harald <h.reindl@thelounge.net>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: BTRF: no free space
Date: Sun, 22 Oct 2023 19:50:06 +0500	[thread overview]
Message-ID: <20231022195006.7915ea1a@nvm> (raw)
In-Reply-To: <2856c6f2-8d3c-412b-a012-a8151a4b1392@thelounge.net>

On Sun, 22 Oct 2023 12:43:57 +0200
Reindl Harald <h.reindl@thelounge.net> wrote:

> this is a *new* filesystem and somewhere in the middle of the night at 
> 10% usage a large rsync stopped because BTRF thinks the filesystem is 
> full - how is this possible in 2023?
> 
> Metadata, DUP: total=1.00GiB, used=945.61MiB
> 
> -----------------
> 
> defaults,noatime,compress-force=zstd:15,ssd,ssd_spread,nodiscard,nobarrier,noexec,nosuid,nodev,commit=60
> 
> adding "clear_cache" which solved such issues in the past eve refuses to 
> mount it
> 
> [root@arrakisvm:~]$ mount /mnt/fileserver-backup/
> mount: /mnt/fileserver-backup: mount(2) system call failed: No space 
> left on device.
> 
> -----------------
> 
> [root@arrakisvm:~]$ df
> Filesystem     Type   Size  Used Avail Use% Mounted on
> /dev/sdd1      btrfs  2.0T  209G     0 100% /mnt/fileserver-backup
> 
> [root@arrakisvm:~]$ btrfs fi df /mnt/fileserver-backup
> Data, single: total=1.95TiB, used=207.05GiB
> System, DUP: total=8.00MiB, used=224.00KiB
> Metadata, DUP: total=1.00GiB, used=945.61MiB
> GlobalReserve, single: total=512.00MiB, used=0.00B

1) Report your kernel version

2) Retry without "ssd" and especially without "ssd_spread". The weird thing
here is that it appears the FS has allocated the entire unused space as "data"
chunks, leaving no space for any new metadata chunk. Personally I don't have
any other guess for the cause aside from the rarely-used (and little-tested?)
ssd_spread option. Of course still a bug even if so.

-- 
With respect,
Roman

  reply	other threads:[~2023-10-22 14:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-22 10:43 BTRF: no free space Reindl Harald
2023-10-22 14:50 ` Roman Mamedov [this message]
2023-10-22 15:40   ` Reindl Harald
2023-10-22 15:49     ` Roman Mamedov
2023-10-22 21:33 ` Qu Wenruo
2023-10-23  6:55   ` Reindl Harald
2023-10-23  7:06     ` Qu Wenruo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231022195006.7915ea1a@nvm \
    --to=rm@romanrm.net \
    --cc=h.reindl@thelounge.net \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.