Size reported differently between profiles
Hello,
«btrfs fi usage» report size differently between single,RAID0,RAID1,RAID5,RAID6 and RAID10.
The test is done with 2 files of 1.4GiB each on 4x10GiB devices. I used balance to get size between profiles.
Data,single: Size:4.00GiB, Used:2.85GiB
/dev/sdb 1.00GiB
/dev/sdc 1.00GiB
/dev/sdd 1.00GiB
/dev/sde 1.00GiB
Data,RAID0: Size:8.00GiB, Used:2.85GiB
/dev/sdb 2.00GiB
/dev/sdc 2.00GiB
/dev/sdd 2.00GiB
/dev/sde 2.00GiB
Data,RAID1: Size:4.00GiB, Used:2.85GiB
/dev/sdb 2.00GiB /dev/sdc 2.00GiB /dev/sdd 2.00GiB /dev/sde 2.00GiB
Data,RAID5: Size:6.00GiB, Used:2.85GiB
/dev/sdb 2.00GiB /dev/sdc 2.00GiB /dev/sdd 2.00GiB /dev/sde 2.00GiB
Data,RAID6: Size:6.00GiB, Used:2.85GiB
/dev/sdb 3.00GiB /dev/sdc 3.00GiB /dev/sdd 3.00GiB /dev/sde 3.00GiB
Data,RAID10: Size:4.00GiB, Used:2.85GiB
/dev/sdb 1.00GiB /dev/sdc 1.00GiB /dev/sdd 1.00GiB /dev/sde 1.00GiB
For single,RAID0,RAID10 profiles, the sum of device sizes is equal to total size. Like total size is the "byte allocated size" for all devices.
For RAID1,RAID5,RAID6 profiles, sum of devices sizes is more than the total size. Looks like the redundancy was subtracted from the total. Like total size is the "profile size allocated".
So, why RAID1 and RAID10 are reporting their sizes differently? This confuse me.
Cheers,
Signature · 3 lines
Sébastien "Seblu" Luttringer https://seblu.net | Twitter: @seblu42 GPG: 0x2072D77A
17.07.2016 05:09, Sébastien Luttringer пишет:
Quoted 48 lines
Hello,
«btrfs fi usage» report size differently between single,RAID0,RAID1,RAID5,RAID6 and RAID10.
The test is done with 2 files of 1.4GiB each on 4x10GiB devices. I used balance to get size between profiles.
Data,single: Size:4.00GiB, Used:2.85GiB
/dev/sdb 1.00GiB /dev/sdc 1.00GiB /dev/sdd 1.00GiB /dev/sde 1.00GiBData,RAID0: Size:8.00GiB, Used:2.85GiB
/dev/sdb 2.00GiB /dev/sdc 2.00GiB /dev/sdd 2.00GiB /dev/sde 2.00GiBData,RAID1: Size:4.00GiB, Used:2.85GiB
/dev/sdb 2.00GiB /dev/sdc 2.00GiB /dev/sdd 2.00GiB /dev/sde 2.00GiBData,RAID5: Size:6.00GiB, Used:2.85GiB
/dev/sdb 2.00GiB /dev/sdc 2.00GiB /dev/sdd 2.00GiB /dev/sde 2.00GiBData,RAID6: Size:6.00GiB, Used:2.85GiB
/dev/sdb 3.00GiB /dev/sdc 3.00GiB /dev/sdd 3.00GiB /dev/sde 3.00GiBData,RAID10: Size:4.00GiB, Used:2.85GiB
/dev/sdb 1.00GiB /dev/sdc 1.00GiB /dev/sdd 1.00GiB /dev/sde 1.00GiBFor single,RAID0,RAID10 profiles, the sum of device sizes is equal to total size. Like total size is the "byte allocated size" for all devices.
Quoted 7 lines
For RAID1,RAID5,RAID6 profiles, sum of devices sizes is more than the total size. Looks like the redundancy was subtracted from the total. Like total size is the "profile size allocated".
So, why RAID1 and RAID10 are reporting their sizes differently? This confuse me.
In your example only RAID10 is different. RAID1 shows 4GiB on 8GiB total disks which matches "redundancy subtracted". But yes, I also wonder why RAID10 does not respect it.