Jump to content

BTRFS 3-disk RAID1 only having partial capacity


Recommended Posts

I am unable to get the full capacity of BTRFS 3-disk RAID1, which in my case (3x400GB) should yield 600GB of available space according to https://carfax.org.uk/btrfs-usage/.

 

Oddly enough, the attached screenshot shows the array size as 600GB as it should, however, the used space does not correlate with the "progress bar" and the free space only states 400GB, as if one of the disks were not in use.

1217823187_Screenshot2021-05-11112629.png.2d4cd9382c17013c698c7302bf7f80ac.png

 

I looked at df which showed the same:

 

Filesystem			Size	Used	Avail	Use%	Mounted on
/dev/mapper/sdd1  	559G  	1.2G  	374G   	1% 		/mnt/cache

I also confirmed that it is in fact RAID1 for data and metadata:

Quote

Data, RAID1: total=25.00GiB, used=24.88GiB
System, RAID1: total=32.00MiB, used=16.00KiB
Metadata, RAID1: total=1.00GiB, used=28.91MiB
GlobalReserve, single: total=23.72MiB, used=0.00B

In case it was purely a visual bug, I attempted to write data to the array, however it used up disk space and did not show the true available disk space.

287115253_Screenshot2021-05-11112737.png.bc71231564b84eef6bec428a51254ebc.png

 

Edited by Gasur
Link to comment
1 hour ago, Gasur said:

am unable to get the full capacity of BTRFS 3-disk RAID1

It's a known btrfs bug with an odd number of devices in raid1, but just the reported free space is wrong, you can still use the full capacity, and free space will be less wrong as the pool gets filled.

  • Like 1
Link to comment

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.

×
×
  • Create New...