I'm using btrfs for my home directory, which spans multiple devices. In total I should have around 7.3TB of space - and that's what df
shows, but I ran out of space after using only 5.7TB of data:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdd3 7.3T 5.7T 63G 99% /home
btrfs has this to say for itself:
# btrfs fi df /home
Data, RAID0: total=5.59TB, used=5.59TB
System, RAID1: total=8.00MB, used=328.00KB
System: total=4.00MB, used=0.00
Metadata, RAID1: total=11.50GB, used=8.22GB
Which is weird, because there should have been enough partitions to support 7.3TB (also, the btrfs data configuration should have been "single" and not RAID0).
Here is what btrfs show
says:
# btrfs fi show
Label: none uuid: 2dd4a2b6-c672-49b1-856b-3abdc12d56a5
Total devices 9 FS bytes used 5.59TB
devid 2 size 303.22GB used 303.22GB path /dev/sdb1
devid 3 size 303.22GB used 303.22GB path /dev/sdb2
devid 4 size 325.07GB used 324.50GB path /dev/sdb3
devid 1 size 2.73TB used 1.11TB path /dev/sdc1
devid 5 size 603.62GB used 589.05GB path /dev/sdd1
devid 6 size 632.22GB used 617.65GB path /dev/sdd2
devid 7 size 627.18GB used 612.61GB path /dev/sdd3
devid 8 size 931.51GB used 931.51GB path /dev/sde1
devid 9 size 931.51GB used 931.51GB path /dev/sde2
As you can see, devid 1 (which is the last disk I added) has only 1.11TB used out of 2.73TB available in the partition (its a supposedly 3TB drive, but only 2.7TB usable :-[ ).
I've searched far and wide but couldn't figure out how to make btrfs use more of the partition. What am I missing?
Notes:
- I'm using Ubuntu 12.04.2 with the current kernel 3.2.0-23.
- This is after I've ran
btrfs fi resize max /home
andbtrfs fi balance /home
btrfs
, never trust df/di output. You are supposed to be usingbtrfs filesystem df /path
.2nd, it is important to let others know the btrfs file system was created, I mean, for your
/home
. For example, number of block devices, how metadata (RAID 1 whichi is default) and data (RAID 0 from what I can see) span across devices.btrfs fi df
in the question. Also, the filesystem in question has no snapshots. – Guss Apr 22 '13 at 10:50Install [3fyotdy2] Btrfs filesystem reports no free space when there is.
– Terry Wang May 26 '13 at 23:183.2.0-41-generic
, kspliceuptrack
automatically (I set it to be) applied the kernel patch to it. If you are running3.2.0-44-generic
it should have included the fix. – Terry Wang May 27 '13 at 23:01btrfs fi df
is completely different, so the answer in #170044 (that relies on that piece of data) is not applicable here. I was familiar with #170044 and still decided to ask this question. – Guss May 11 '14 at 07:53