Re: crushtool mappings wrong

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Brian,

After another hour of staring at the decompiled crushmap and playing around with crushtool command lines I finally looked harder at your command line and noticed I was also specifying "--simulate", removing that gives me mappings that make much more sense (at least for the existing production ruleset that I know actually work on the cluster)! So, thanks!

This looks like the same problem that Robert ran into some time ago: https://www.spinics.net/lists/ceph-users/msg16950.html, where I believe he filed a bug (http://tracker.ceph.com/issues/11224) that was rather unhelpfully rejected with no explanation. I'm going to update that now. Would be great to get an explanation of what that damned simulate flag is supposed to do, the documentation for crushtool is somewhat thin on the subject.

Cheers,

On 17 February 2017 at 05:56, Brian Andrus <brian.andrus@xxxxxxxxxxxxx> wrote:
v10.2.5 - crushtool working fine to show rack mappings. How are you running the command? Get some sleep! ha.

crushtool -i /tmp/crush.map --test --ruleset 3 --num-rep 3 --show-mappings

rule byrack {
ruleset 3
type replicated
min_size 1
max_size 10
step take default
step chooseleaf firstn 0 type rack
step emit
}


On Thu, Feb 16, 2017 at 7:10 AM, Blair Bethwaite <blair.bethwaite@xxxxxxxxx> wrote:
Am I going nuts (it is extremely late/early here), or is crushtool
totally broken? I'm trying to configure a ruleset that will place
exactly one replica into three different racks (under each of which
there are 8-10 hosts). crushtool has given me empty mappings for just
about every rule I've tried that wasn't just the simplest: chooseleaf
0 host. Suspecting something was up with crushtool I have now tried to
verify correctness on an existing rule and it is including OSDs in the
result mappings that are not even in this hierarchy...

(this is on a 10.2.2 install)

--
Cheers,
~Blairo
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



--
Brian Andrus | Cloud Systems Engineer | DreamHost
brian.andrus@xxxxxxxxxxxxx | www.dreamhost.com



--
Cheers,
~Blairo
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux