On Thu, Apr 6, 2017 at 6:47 PM, John Petrini <jpetr...@coredial.com> wrote:

> sudo btrfs fi df /mnt/storage-array/
> Data, RAID10: total=10.72TiB, used=10.72TiB
> System, RAID0: total=128.00MiB, used=944.00KiB
> Metadata, RAID10: total=14.00GiB, used=12.63GiB
> GlobalReserve, single: total=512.00MiB, used=0.00B

The third line is kinda scary. System chunk is raid0, so ostensibly a
single device failure means the entire array is lost.

The fastest way to fix it is:

btrfs balance start -mconvert=raid10,soft <mountpoint>

That will make the system chunk raid10.


>
> sudo btrfs fi usage /mnt/storage-array/
> Overall:
>     Device size:   49.12TiB
>     Device allocated:   21.47TiB
>     Device unallocated:   27.65TiB
>     Device missing:      0.00B
>     Used:   21.45TiB
>     Free (estimated):   13.83TiB (min: 13.83TiB)
>     Data ratio:       2.00
>     Metadata ratio:       2.00
>     Global reserve:  512.00MiB (used: 0.00B)
>
> Data,RAID10: Size:10.72TiB, Used:10.71TiB

This is saying you have 10.72T of data. But because it's raid10, it
will take up 2x that much space. This is what's reflected by the
Overall: Used: value of 21.45T, plus some extra for metadata which is
also 2x.




-- 
Chris Murphy
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to