From: Matthieu Dalstein <matthieu.dalstein@dalmat.net>
To: linux-btrfs@vger.kernel.org
Subject: Ability to free space on a full btrfs filesystem
Date: Sun, 25 Aug 2013 18:23:20 +0200 [thread overview]
Message-ID: <521A2F78.908@dalmat.net> (raw)
Hello,
I'm currently experiencing some space issue on btrfs with linux kernel 3.10.
My btrfs partition is full and I fail to remove any data to give some
free space:
athena:~# rm -f /mnt/storage/current/backup/slash/var/log/syslog
rm: cannot remove `/mnt/storage/current/backup/slash/var/log/syslog': No
space left on device
athena:~# true > /mnt/storage/current/backup/slash/var/log/syslog
bash: /mnt/storage/current/backup/slash/var/log/syslog: No space left on
device
I tried to follow the wiki page
https://btrfs.wiki.kernel.org/index.php/Problem_FAQ#I_get_.22No_space_left_on_device.22_errors.2C_but_df_says_I.27ve_got_lots_of_space
but the balance operation fails due to lack of space:
athena:~# btrfs fi balance start -dusage=5 /mnt/storage/
ERROR: error during balancing '/mnt/storage/' - No space left on device
[ Kernel logs ] btrfs: 138 enospc errors during balance
I guess this scenario is not expected, or I am probably missing something.
Is there any way I can free some space and get back a writable filesystem ?
Some more info:
Mount options used for the recovery (from
https://btrfs.wiki.kernel.org/index.php/Ubuntu_support#ENOSPC.2C_no_space_left_on_device)
/dev/sdb1 on /mnt/storage type btrfs
(rw,relatime,nodatasum,nodatacow,nospace_cache,clear_cache)
athena:~# btrfs fi show
Label: none uuid: 8fa5ecc2-fff6-4ad1-a6bb-e384ea2086cb
Total devices 1 FS bytes used 475.19GB
devid 1 size 619.33GB used 619.33GB path /dev/sdb1
athena:~# btrfs fi df /mnt/storage/
Data: total=613.30GB, used=472.69GB
System, DUP: total=8.00MB, used=72.00KB
System: total=4.00MB, used=0.00
Metadata, DUP: total=3.00GB, used=2.50GB
Metadata: total=8.00MB, used=0.00
Thanks in advance
--
Matthieu
next reply other threads:[~2013-08-25 16:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-25 16:23 Matthieu Dalstein [this message]
2013-08-25 16:29 ` Ability to free space on a full btrfs filesystem Marc MERLIN
2013-08-25 19:29 ` Chris Murphy
2013-08-26 21:43 ` Matthieu Dalstein
2013-08-27 0:16 ` Chris Murphy
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=521A2F78.908@dalmat.net \
--to=matthieu.dalstein@dalmat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox