linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Way to force allocation of more metadata?
@ 2017-02-16 20:13 E V
  2017-02-16 20:39 ` Austin S. Hemmelgarn
  2017-02-17  8:44 ` Duncan
  0 siblings, 2 replies; 3+ messages in thread
From: E V @ 2017-02-16 20:13 UTC (permalink / raw)
  To: linux-btrfs

It would be nice if there was an easy way to tell btrfs to allocate
another metadata chunk. For example, the below fs is full due to
exhausted metadata:

    Device size:                1013.28GiB
    Device allocated:           1013.28GiB
    Device unallocated:            2.00MiB
    Device missing:                  0.00B
    Used:                        981.94GiB
    Free (estimated):             15.16GiB      (min: 15.16GiB)
    Data ratio:                       2.00
    Metadata ratio:                   2.00
    Global reserve:              510.31MiB      (used: 0.00B)

             Data      Metadata  System
Id Path      RAID1     RAID1     RAID1    Unallocated
-- --------- --------- --------- -------- -----------
 1 /dev/sdv1 505.63GiB   1.00GiB  8.00MiB     1.00MiB
 2 /dev/sdw1 505.63GiB   1.00GiB  8.00MiB     1.00MiB
-- --------- --------- --------- -------- -----------
   Total     505.63GiB   1.00GiB  8.00MiB     2.00MiB
   Used      490.47GiB 510.88MiB 96.00KiB

I can delete a multi GB file and get several GB of unallocated space,
however if I try and copy big files to it again the same exact thing
happens. However, if I play with balance and deleting files and such
and manage to get it to allocate another metadata chunk while there is
unallocated space then the filesystem will happily fill up all of the
data chunks. Failing an automatic allocation out of global reserve, or
saving metadata as soon as unallocated space is available it would be
nice if I could just delete a file and then tell btrfs to allocate
more metadata immediately. Makes sense? No idea how easy this would be
to do, but seems like it should be a simple thing btrfs file could do.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-02-17  8:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-16 20:13 Way to force allocation of more metadata? E V
2017-02-16 20:39 ` Austin S. Hemmelgarn
2017-02-17  8:44 ` Duncan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).