[SOLVED] BTRFS Pool not configuring correctly


Go to solution Solved by 1812,

Recommended Posts

6 1tb ssds

 

singe mode = 6tb

raid 0 = 6tb

raid 1 = 3tb

raid 5=5tb

raid 10 = 2tb???

 

file system df:

 

Data, RAID10: total=15.00GiB, used=0.00B
System, RAID10: total=480.00MiB, used=16.00KiB
Metadata, RAID10: total=3.09GiB, used=128.00KiB
GlobalReserve, single: total=3.25MiB, used=0.00B

 

but main tab shows:

 

227158468_ScreenShot2021-05-07at9_35_12PM.png.27d5e2f1a81aecc452202a0609002cc2.png

 

 

I've tried changing format to xfs and back to Btrfs. 

 

is this a glitch? because Btrfs-usage.txt shows

 

Quote

Pool: netdrive
Overall:
    Device size:           5.46TiB
    Device allocated:           8.25GiB
    Device unallocated:           5.45TiB
    Device missing:             0.00B
    Used:             288.00KiB
    Free (estimated):           2.73TiB    (min: 2.73TiB)
    Free (statfs, df):           1.82TiB
    Data ratio:                  2.00
    Metadata ratio:              2.00
    Global reserve:           3.25MiB    (used: 0.00B)
    Multiple profiles:                no
       

 

 

 

   Data    Metadata  System              
Id Path      RAID10  RAID10    RAID10   Unallocated
-- --------- ------- --------- -------- -----------
 1 /dev/sdh1 1.00GiB 352.00MiB 32.00MiB   930.14GiB
 2 /dev/sdc1 1.00GiB 352.00MiB 32.00MiB   930.14GiB
 3 /dev/sdg1 1.00GiB 352.00MiB 32.00MiB   930.14GiB
 4 /dev/sdd1 1.00GiB 352.00MiB 32.00MiB   930.14GiB
 5 /dev/sde1 1.00GiB 352.00MiB 32.00MiB   930.14GiB
 6 /dev/sdi1 1.00GiB 352.00MiB 32.00MiB   930.14GiB
-- --------- ------- --------- -------- -----------
   Total     3.00GiB   1.03GiB 96.00MiB     5.45TiB
   Used        0.00B 128.00KiB 16.00KiB            
 

 

I rolled back to 6.9.1 to check and it showed the same on the main tab as 6.9.2

 

in maintenance mode, filesystem check shows:

 

Quote

1/7] checking root items
[2/7] checking extents
[3/7] checking free space tree
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
Opening filesystem to check...
Checking filesystem on /dev/sdc1 UUID: fa2f83a8-7646-4620-8306-16720b67dc0f
cache and super generation don't match, space cache will be invalidated
found 147456 bytes used, no error found total csum bytes: 0
total tree bytes: 147456
total fs tree bytes: 32768
total extent tree bytes: 16384
btree space waste bytes: 138040
file data blocks allocated: 0
referenced 0

 

 

 

 

 

 

 

 

 

Paging Dr. @JorgeB!

b1-diagnostics-20210507-2313.zip

Edited by 1812
update to solved
Link to comment
3 hours ago, 1812 said:

    Free (estimated):           2.73TiB    (min: 2.73TiB)
    Free (statfs, df):           1.82TiB

Some configs have issues with free space, as is reported by df or statfs as you can see above (Unraid uses statfs), this happens for example with an odd number of devices in raid1 and apparently also happens with raid10 when not using multiples of 4 devices, you still have 3TB of usable space, as reported by btrfs fi usage, and as the pool gets filled free space should also get closer to correct, i.e., when you have 2TB used it should show close to 1TB free.

  • Thanks 1
Link to comment
  • Solution
5 hours ago, JorgeB said:

Some configs have issues with free space, as is reported by df or statfs as you can see above (Unraid uses statfs), this happens for example with an odd number of devices in raid1 and apparently also happens with raid10 when not using multiples of 4 devices, you still have 3TB of usable space, as reported by btrfs fi usage, and as the pool gets filled free space should also get closer to correct, i.e., when you have 2TB used it should show close to 1TB free.

 

maybe unraid should not use statfs..... but either way, THANK YOU!

 

  • Haha 1
Link to comment
  • 1812 changed the title to [SOLVED] BTRFS Pool not configuring correctly

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.