All of lore.kernel.org
 help / color / mirror / Atom feed
* rbd map fail when the crushmap algorithm changed to tree
@ 2012-07-06  7:27 Eric_YH_Chen
  2012-07-06 16:58 ` Gregory Farnum
  2012-07-09 18:23 ` Josh Durgin
  0 siblings, 2 replies; 4+ messages in thread
From: Eric_YH_Chen @ 2012-07-06  7:27 UTC (permalink / raw)
  To: ceph-devel; +Cc: Chris_YT_Huang, Victor_CY_Chang

Hi all:

Here is the original crushmap, I change the algorithm of host to "tree"
and 
set back to ceph cluster. However, when I try to map one imge to 
rados block device (RBD), it would hang and no response until I press
ctrl-c.
( rbd map xxxx  => then hang)

Is there any wrong in the crushmap? Thanks for help.

=============================================
# devices
device 0 osd.0
device 1 osd.1
device 2 osd.2
device 3 osd.3
device 4 osd.4
device 5 osd.5
device 6 osd.6
device 7 osd.7
device 8 osd.8
device 9 osd.9
device 10 osd.10
device 11 osd.11

# types
type 0 osd
type 1 host
type 2 rack
type 3 row
type 4 room
type 5 datacenter
type 6 pool

# buckets
host store-001 {
        id -2           # do not change unnecessarily
        # weight 12.000
        alg straw
        hash 0  # rjenkins1
        item osd.0 weight 1.000
        item osd.1 weight 1.000
        item osd.10 weight 1.000
        item osd.11 weight 1.000
        item osd.2 weight 1.000
        item osd.3 weight 1.000
        item osd.4 weight 1.000
        item osd.5 weight 1.000
        item osd.6 weight 1.000
        item osd.7 weight 1.000
        item osd.8 weight 1.000
        item osd.9 weight 1.000
}
rack unknownrack {
        id -3           # do not change unnecessarily
        # weight 12.000
        alg straw
        hash 0  # rjenkins1
        item store-001 weight 12.000
}
pool default {
        id -1           # do not change unnecessarily
        # weight 12.000
        alg straw
        hash 0  # rjenkins1
        item unknownrack weight 12.000
}

# rules
rule data {
        ruleset 0
        type replicated
        min_size 1
        max_size 10
        step take default
        step choose firstn 0 type osd
        step emit
}
rule metadata {
        ruleset 1
        type replicated
        min_size 1
        max_size 10
        step take default
        step choose firstn 0 type osd
        step emit
}
rule rbd {
        ruleset 2
        type replicated
        min_size 1
        max_size 10
        step take default
        step choose firstn 0 type osd
        step emit
}



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-07-09 18:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-06  7:27 rbd map fail when the crushmap algorithm changed to tree Eric_YH_Chen
2012-07-06 16:58 ` Gregory Farnum
2012-07-09  2:01   ` Eric_YH_Chen
2012-07-09 18:23 ` Josh Durgin

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.