From: Martin Mailand <martin@tuxadero.com>
To: ceph-devel@vger.kernel.org
Subject: crushmap errors
Date: Fri, 11 Nov 2011 23:19:14 +0100 [thread overview]
Message-ID: <4EBD9F62.20709@tuxadero.com> (raw)
Hi,
I used in ceph v0.38 the host and rack feature in the conf during an
mkcephfs. Now I have to problems with the crushmap
1. I cannot compile a ceph genearated crushmap.
crushtool -c file.txt -o file
file.txt:4 error: parse error at '.0'
# begin crush map
# devices
device 0 osd.0
2. Why are 2 racks are not enough for 2 failure domains?
From the commit:
If there are >2 racks, separate across racks.
and in the src/osd/OSDMap.cc
if (racks.size() > 3) {
// spread replicas across hosts
crush_rule_set_step(rule, 1, CRUSH_RULE_CHOOSE_LEAF_FIRSTN,
CRUSH_CHOOSE_N, 2);
shouldn't that be
if (racks.size() > 1) {
// spread replicas across racks
crush_rule_set_step(rule, 1, CRUSH_RULE_CHOOSE_LEAF_FIRSTN,
CRUSH_CHOOSE_N, 2);
Best Regards,
martin
next reply other threads:[~2011-11-11 22:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-11 22:19 Martin Mailand [this message]
2011-11-11 22:51 ` crushmap errors Sage Weil
2011-11-14 14:12 ` Martin Mailand
2011-11-14 15:45 ` Kelly Kane
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=4EBD9F62.20709@tuxadero.com \
--to=martin@tuxadero.com \
--cc=ceph-devel@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.