Re: unexpected raid1 behavior?

jean-philippe robichaud
2009-11-30T16:20:48Z

On Sun, Nov 29, 2009 at 4:28 PM, Jean-Philippe Robichaud
<jean.philippe.robichaud@gmail.com> wrote:
>
> On Sunday 29 November 2009 07:42:56 Sander wrote:
> > Hello Jean-Philippe,
> >
> > Jean-Philippe Robichaud wrote (ao):
> > > Is there a place in /sys or /proc where I could perhaps get 'stat=
s'
> > > about the btrfs volume?
> >
> > I think btrfs-show should help you there.
> >
> > =A0 =A0 =A0 With kind regards, Sander
> >
> Sure: here it goes:
>
> # sudo btrfs-show
> failed to read /dev/sr0
>
> Label: none =A0uuid: fb9270b4-8779-489f-a599-eaab299d4633
> =A0 =A0 =A0 =A0Total devices 2 FS bytes used 78.98GB
> =A0 =A0 =A0 =A0devid =A0 =A01 size 341.69GB used 146.03GB path /dev/s=
da5
> =A0 =A0 =A0 =A0devid =A0 =A02 size 341.69GB used 146.01GB path /dev/s=
db5
>

I'm not sure I actually understand how to read this.The size of each
device make sense (341GB) as it is the size of both partitions. Now
the FS-bytes-used also make sense as it is about the size of data that
I've copied, but the per-device used space seems strange to me and the
output of "df -h" is also hard to interpret:

=46ilesystem Size Used Avail Use% Mounted on
/dev/sda5 684G 79G 605G 12% /btrfs

I would have understood if the "Used" field would have been 160GB or
if "Avail" would have dropped to 520GB.

I guess that I'll come to a point where Used will be 340GB and Avail
will also be 340GB but I'll be getting No Space Left On Device errors?
--
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