# begin crush map
# devices
device 0 device0
device 1 device1
device 2 device2
# types
type 0 osd
type 1 domain
type 2 pool
type 3 host
type 4 ghost
host hone {
id -2
alg straw
hash 0
item device0 weight 1.000
item device1 weight 1.000
}
ghost hsec {
id -3
alg straw
hash 0
item device2 weight 1.000
}
domain root {
id -1
alg straw
hash 0
item hone weight 1.000
item hsec weight 1.000
}
# rules
rule data {
ruleset 0
type replicated
min_size 1
max_size 10
step take root
step choose firstn 0 type osd
step emit
}
rule metadata {
ruleset 1
type replicated
min_size 1
max_size 10
step take root
step choose firstn 0 type osd
step emit
}
rule rbd {
ruleset 2
type replicated
min_size 1
max_size 10
step take root
step choose firstn 0 type osd
step emit
}
rule forhone {
ruleset 3
type replicated
min_size 1
max_size 10
step take root
step choose firstn 0 type host
step choose firstn 0 type osd
step emit
}
rule forhsecond {
ruleset 4
type replicated
min_size 1
max_size 10
step take root
step choose firstn 0 type ghost
step choose firstn 0 type osd
step emit
}
# end crush map
i tried to create new pool with size= 2 & crush_ruleset= 3 . it works
fine but when i create Object inside pool error is :
root@third-virtual-machine:~# rados -p new create Obj1
rados: crush/mapper.c:369: crush_choose: Assertion `!(item >= 0 ||
(-1-item) >= map->max_buckets)' failed.
*** Caught signal (Aborted) **
in thread 0xb6e4f6e0
ceph version 0.36 (commit:877cacbbdbb78d120b431cb762f57332d62ef0a6)
1: rados() [0x808a9f8]
2: [0xb7793400]
3: [0xb7793424]
4: (gsignal()+0x4f) [0xb6e7ec8f]
5: (abort()+0x175) [0xb6e822b5]
6: (__assert_fail()+0xf6) [0xb6e77826]
7: (()+0x1caa6f) [0xb771ba6f]
8: (crush_do_rule()+0x2ef) [0xb771bddf]
9: (()+0x8ad29) [0xb75dbd29]
10: (OSDMap::pg_to_acting_osds(pg_t, std::vector<int,
std::allocator<int> >&)+0x15f) [0xb75f783f]
11: (Objecter::recalc_op_target(Objecter::Op*)+0x1b9) [0xb75e02c9]
12: (Objecter::op_submit(Objecter::Op*, Objecter::OSDSession*)+0xc27)
[0xb75e72b7]
13: (Objecter::create(object_t const&, object_locator_t const&,
SnapContext const&, utime_t, int, int, Context*, Context*,
eversion_t*, ObjectOperation*)+0x23d) [0xb75d6aed]
14: (librados::RadosClient::create(librados::IoCtxImpl&, object_t
const&, bool)+0x202) [0xb75c23a2]
15: (librados::IoCtx::create(std::string const&, bool)+0x51) [0xb75c2521]
16: (main()+0x4ba2) [0x8074512]
17: (__libc_start_main()+0xf3) [0xb6e6a113]
Aborted
I was able to put file onto osd0,osd1 specifically then suddenly i was
modifying something and i am unable to recall what went wrong . now I
am unable to create Objs ..
-
Hemant Surale.
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html