All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josh Durgin <josh.durgin@dreamhost.com>
To: Martin Wilderoth <martin.wilderoth@linserv.se>
Cc: ceph-devel <ceph-devel@vger.kernel.org>
Subject: Re: Data distribution
Date: Mon, 27 Jun 2011 12:19:51 -0700	[thread overview]
Message-ID: <4E08D7D7.4070704@dreamhost.com> (raw)
In-Reply-To: <1793430427.17772.1309060138965.JavaMail.root@mail.linserv.se>

On 06/25/2011 08:48 PM, Martin Wilderoth wrote:
> Hello
>
> I have a ceph cluster of 6 osd 146gb each. I have copied a lot of data
> filling to 87%. Between the osd's the data is not evenly distributed
>
> host1
> /dev/sdb              137G  119G   15G  90% /data/osd0
> /dev/sdc              137G  126G  7.4G  95% /data/osd1
>
> host2
> /dev/sdc              137G  114G   21G  85% /data/osd2
> /dev/sdd              137G  130G  3.6G  98% /data/osd3
>
> host3
> /dev/sdb              137G  107G   27G  81% /data/osd4
> /dev/sdc              137G   98G   36G  74% /data/osd5
>
> During the copy i got I/O error, but after restarting the cluster it seems fine.
>
> By some reason osd3 seems to have much more data than osd5. Is there a way of geting the data distributed better ?.

Hi Martin,

Since the distribution is pseudo-random, you'll get some variance from 
an even split. You can reweight the osds manually with:

ceph osd reweight osd3 new_weight

or use the more automatic:

ceph osd reweight-by-utilization 110

This reduces the weight of all osds that have a utilization that is more 
than 110% of the average utilization.

Josh

  reply	other threads:[~2011-06-27 19:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <344660039.17770.1309060083991.JavaMail.root@mail.linserv.se>
2011-06-26  3:48 ` Data distribution Martin Wilderoth
2011-06-27 19:19   ` Josh Durgin [this message]
2011-06-27 19:23     ` Gregory Farnum

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=4E08D7D7.4070704@dreamhost.com \
    --to=josh.durgin@dreamhost.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=martin.wilderoth@linserv.se \
    /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.