crushmap errors

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

 



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
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux