[Bug 1227370] Re: ceph osd weight get reset to 1 on daemon restart
Sage Weil
1227370 at bugs.launchpad.net
Wed Sep 18 22:56:30 UTC 2013
This is fixed/changed in newer versions. The current releases will
weight based on df reported size. Or, weighting on start can simply be
diasabled... That is probably the thing to do for 0.48.
James Troup <james.troup at canonical.com> wrote:
>The upstart job is shipped by the charm, not in the package.
>Retargeting to the charm.
>
>** Changed in: ceph (Ubuntu)
> Status: New => Invalid
>
>--
>You received this bug notification because you are subscribed to ceph
>in
>Ubuntu.
>Matching subscriptions: ceph
>https://bugs.launchpad.net/bugs/1227370
>
>Title:
> ceph osd weight get reset to 1 on daemon restart
>
>Status in “ceph” package in Ubuntu:
> Invalid
>Status in “ceph” package in Juju Charms Collection:
> New
>
>Bug description:
> AFAIK, the documented¹ way to set weights for an OSD is with:
>
> ceph osd crush reweight {osd-id} {weight}
>
> And this works... but only for as long as the ceph-osd daemon is
> running. Because, with ceph 0.48.3-0ubuntu1~cloud0 from the Folsom
> pocket of the Ubuntu Cloud Archive on Ubuntu 12.04 LTS, the weight
> gets reset to 1 every time the daemon is (re)started by the upstart
> job.
>
> The problem is the upstart job does this:
>
> weight="$(ceph-conf --cluster="$cluster" --name="osd.$id" --lookup
> osd_crush_weight || :)"
>
> i.e. it expects to find something like this:
>
> [osd.38]
> osd_crush_weight = 2.0
>
> in /etc/ceph/ceph.conf. However that file is managed by juju, and if
> I edit it in-situ, it'll get overwritten. As it stands, I'm unable to
> reweight an OSD and make it stick with ceph deployed by juju.
>
> ¹ e.g. http://ceph.com/docs/master/rados/operations/add-or-rm-osds/
>
>To manage notifications about this bug go to:
>https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1227370/+subscriptions
--
Sent from Kaiten Mail. Please excuse my brevity.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to ceph in Ubuntu.
https://bugs.launchpad.net/bugs/1227370
Title:
ceph osd weight get reset to 1 on daemon restart
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1227370/+subscriptions
More information about the Ubuntu-server-bugs
mailing list