Package: coreutils
Version: 8.13-3.2

Create a RAID1 btrfs from two LVs, each is 1TB:

    mkfs.btrfs -m raid1 -d raid1 /dev/mapper/vg00-btrfsvol0_[01]

Mount the filesystem:

    mount /dev/mapper/vg00-btrfsvol0_0 /mnt/btrfs0

Now copy 25GB of files onto the volume

Finally, check it with df:

df -lh /mnt/btrfs0
Filesystem                    Size  Used Avail Use% Mounted on
/dev/mapper/vg00-btrfsvol0_0  1.9T   51G  1.8T   3% /mnt/btrfs0


Notice that:

Size should be 1TB (df report 1.9T)

Used should be 25GB

This seems to be something to do with the way btrfs reports space in a
RAID1 volume.  The command `btrfs fi df` shows only 25GB is used.
However, other scripts and applications that rely on the output of df
may fail or behave unexpectedly.


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to