Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [bug] btrfs fi df doesn't show raid type after balance
@ 2013-04-03  6:22 Anand Jain
  2013-04-03 16:58 ` Goffredo Baroncelli
  0 siblings, 1 reply; 3+ messages in thread
From: Anand Jain @ 2013-04-03  6:22 UTC (permalink / raw)
  To: linux-btrfs



Did something break.. ? we are not reporting raid type after balance.

-----------
# 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+


Thakns
Anand

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [bug] btrfs fi df doesn't show raid type after balance
  2013-04-03  6:22 [bug] btrfs fi df doesn't show raid type after balance Anand Jain
@ 2013-04-03 16:58 ` Goffredo Baroncelli
  2013-04-03 17:12   ` David Sterba
  0 siblings, 1 reply; 3+ messages in thread
From: Goffredo Baroncelli @ 2013-04-03 16:58 UTC (permalink / raw)
  To: Anand Jain; +Cc: linux-btrfs

On 04/03/2013 08:22 AM, Anand Jain wrote:
> 
> 
> Did something break.. ? we are not reporting raid type after balance.
> 
> -----------
> # 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.

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


-- 
gpg @keyserver.linux.it: Goffredo Baroncelli (kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D  17B2 0EDA 9B37 8B82 E0B5

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [bug] btrfs fi df doesn't show raid type after balance
  2013-04-03 16:58 ` Goffredo Baroncelli
@ 2013-04-03 17:12   ` David Sterba
  0 siblings, 0 replies; 3+ messages in thread
From: David Sterba @ 2013-04-03 17:12 UTC (permalink / raw)
  To: kreijack; +Cc: Anand Jain, linux-btrfs

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-03 17:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-03  6:22 [bug] btrfs fi df doesn't show raid type after balance Anand Jain
2013-04-03 16:58 ` Goffredo Baroncelli
2013-04-03 17:12   ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox