public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: jean-philippe robichaud <jean.philippe.robichaud@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: Re: unexpected raid1 behavior?
Date: Mon, 30 Nov 2009 11:20:48 -0500	[thread overview]
Message-ID: <679b1ea70911300820m37c04035p113cda74d380f6fc@mail.gmail.com> (raw)
In-Reply-To: <200911291628.26997.jean.philippe.robichaud@gmail.com>

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

      reply	other threads:[~2009-11-30 16:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-27 20:41 unexpected raid1 behavior? Jean-Philippe Robichaud
2009-11-27 21:04 ` Hugo Mills
2009-11-27 22:36   ` Jean-Philippe Robichaud
2009-11-29 12:42     ` Sander
2009-11-29 21:28       ` Jean-Philippe Robichaud
2009-11-30 16:20         ` jean-philippe robichaud [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=679b1ea70911300820m37c04035p113cda74d380f6fc@mail.gmail.com \
    --to=jean.philippe.robichaud@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox