All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomasz Chmielewski <tch@virtall.com>
To: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: "btrfs device delete missing" - why does it write on healthy device?
Date: Fri, 30 Aug 2013 03:01:32 +0800	[thread overview]
Message-ID: <20130830030132.0cfafc94@virtall.com> (raw)

So I've removed a missing device, which took some time:

# time btrfs device delete missing /home

real    1512m33.763s
user    0m0.000s
sys     121m37.740s

OK, it needs time, fine.


And shifted quite large amounts of data:

Device:            tps    MB_read/s    MB_wrtn/s    MB_read    MB_wrtn
sda             347.00         0.37        16.24      34050    1512249
sdb             910.89        13.46        18.77    1252768    1747442


New device was sda - so it's expected it wrote quite a lot of data
there.

But why did it write so much on sdb (even more than on sda)? With
software RAID-1, when replacing a failed device, the amount of reads
from one drive is equal to the writes on the other drive; there is no
writing on the healthy drive.


# btrfs filesystem show
Label: 'test-btrfs'  uuid: 60f1759c-45f6-4484-9f60-66a4e9bbf2b6
        Total devices 2 FS bytes used 1.19TB
        devid    3 size 2.56TB used 1.19TB path /dev/sdb4
        devid    4 size 2.56TB used 1.19TB path /dev/sda4

Btrfs v0.20-rc1-324-g650e656



-- 
Tomasz Chmielewski
http://wpkg.org

             reply	other threads:[~2013-08-29 19:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-29 19:01 Tomasz Chmielewski [this message]
2013-08-29 19:13 ` "btrfs device delete missing" - why does it write on healthy device? Chris Murphy

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=20130830030132.0cfafc94@virtall.com \
    --to=tch@virtall.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.