I''m trying to remove some files on a btrfs filesystem which has 26 GB free: /dev/sdb4 336G 310G 26G 93% /mnt/btrfs Unfortunately, removing some of the files fails, due to "No space left on device": root@dom:/mnt/btrfs# rm -rfv postgresql-noindex removed `postgresql-noindex/postgresql/8.4/main/base/16384/16508.6'' removed `postgresql-noindex/postgresql/8.4/main/base/16384/16508.7'' rm: cannot remove `postgresql-noindex/postgresql/8.4/main/base/16384/16508.8'': No space left on device removed `postgresql-noindex/postgresql/8.4/main/base/16384/16508.9'' removed `postgresql-noindex/postgresql/8.4/main/base/16384/16508_fsm'' removed `postgresql-noindex/postgresql/8.4/main/base/16384/16511'' removed `postgresql-noindex/postgresql/8.4/main/base/16384/16513'' removed `postgresql-noindex/postgresql/8.4/main/base/16384/16516'' removed `postgresql-noindex/postgresql/8.4/main/base/16384/16516_fsm'' removed `postgresql-noindex/postgresql/8.4/main/base/16384/16521'' This is a snapshot of a different directory (with some changes). Is it expected? I''m running 2.6.39.1 kernel. -- Tomasz Chmielewski http://wpkg.org -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 12 June 2011 00:32, Tomasz Chmielewski <mangoo@wpkg.org> wrote:> I''m trying to remove some files on a btrfs filesystem which has 26 GB free: > > /dev/sdb4 336G 310G 26G 93% /mnt/btrfs > > > Unfortunately, removing some of the files fails, due to "No space left on device": > > root@dom:/mnt/btrfs# rm -rfv postgresql-noindex > removed `postgresql-noindex/postgresql/8.4/main/base/16384/16508.6'' > removed `postgresql-noindex/postgresql/8.4/main/base/16384/16508.7'' > rm: cannot remove `postgresql-noindex/postgresql/8.4/main/base/16384/16508.8'': No space left on device > removed `postgresql-noindex/postgresql/8.4/main/base/16384/16508.9'' > removed `postgresql-noindex/postgresql/8.4/main/base/16384/16508_fsm'' > removed `postgresql-noindex/postgresql/8.4/main/base/16384/16511'' > removed `postgresql-noindex/postgresql/8.4/main/base/16384/16513'' > removed `postgresql-noindex/postgresql/8.4/main/base/16384/16516'' > removed `postgresql-noindex/postgresql/8.4/main/base/16384/16516_fsm'' > removed `postgresql-noindex/postgresql/8.4/main/base/16384/16521'' > > This is a snapshot of a different directory (with some changes). > > Is it expected? I''m running 2.6.39.1 kernel. > > -- > Tomasz ChmielewskiCheck out the btrfs FAQ about space usage: https://btrfs.wiki.kernel.org/index.php/FAQ#Why_are_there_so_many_ways_to_check_the_amount_of_free_space.3F and try these command too: btrfs filesystem df /mnt/btrfs btrfs filesystem show /dev/sdb4 I''m no btrfs expert but it''s worth trying to delete one file and syncing the fs, then repeating. Mike -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 12.06.2011 10:27, Mike Fleetwood wrote:> Check out the btrfs FAQ about space usage: > https://btrfs.wiki.kernel.org/index.php/FAQ#Why_are_there_so_many_ways_to_check_the_amount_of_free_space.3F > > and try these command too: > btrfs filesystem df /mnt/btrfs > btrfs filesystem show /dev/sdb4 > > I''m no btrfs expert but it''s worth trying to delete one file and > syncing the fs, then repeating.Yes, I know this FAQ. I''ve deleted around 40 GB files, but still occasionally see "No space left on device" when removing files, or when copying new files to btrfs filesystem (i.e. copying one file fails with "No space left on the device", while there is ~70 GB free on btrfs filesystem; and copying some other files, with similar or bigger size, succeeds). -- Tomasz Chmielewski http://wpkg.org -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html