On Wed, Apr 03, 2013 at 06:58:24PM +0200, Goffredo Baroncelli wrote:
> On 04/03/2013 08:22 AM, Anand Jain wrote:
> > Did something break.. ? we are not reporting raid type after balance.

fi df reports exactly what is on the filesystem.

> > -----------
> > # btrfs fi df /btrfs
> > Data, RAID0: total=2.00GB, used=2.03MB
> > Data: total=8.00MB, used=0.00
> > System, RAID0: total=16.00MB, used=4.00KB
> > System: total=4.00MB, used=0.00
> > Metadata, RAID0: total=2.00GB, used=216.00KB
> > Metadata: total=8.00MB, used=4.00KB
> > 
> > # btrfs bal /btrfs
> > Done, had to relocate 5 out of 5 chunks
> > 
> > # btrfs fi df /btrfs
> > Data: total=1.00GB, used=2.78MB
> > System: total=4.00MB, used=4.00KB
> > Metadata: total=1.00GB, used=276.00KB
> > #
> > -----------
> > 
> > btrfs-progs is at integration-20130321 and 3.8.0+
> 
> I already saw this. When the filesystem is empty a balance revert the
> RAID mode to the single one. If the filesystem is not empty I was not
> able to reproduce this.

Any unused raid profile is thrown away after full balance (except
system/single if it is there), because balance is currently implemented
that way. It does not check if there is a preferred allocation profile
to keep even if it is empty. The single profile is default and is
automatically picked after new data are being written.

I've seen this after creating a multi-device fs with raid0/1/10
profiles, filled with data, removed everyting, ran balance to unallocate
the blockgroups and found data group missing. I don't have an
explanation why the raid0 profiles got merged into the single profiles
in Anand's example.


david
--
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