Skip to content

xiaofeng0303/ceph-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

ceph-install

单节点安装ceph (install ceph in one host) 安装ceph包的环节已省略

pg current state undersized+peered

如果 副本数配置为3 osd pool default size = 3 需要修改crushmap

# rules
rule replicated_rule {
        id 0
        type replicated
        min_size 1
        max_size 10
        step take default
        step chooseleaf firstn 0 type host
        step emit
}
将host改为osd
# rules
rule replicated_rule {
        id 0
        type replicated
        min_size 1
        max_size 10
        step take default
        step chooseleaf firstn 0 type host
        step emit
}

修改crushmap步骤

ceph osd  getcrushmap -o old.map
crushtool -d old.map -o old.txt 
crushtool -c new.txt -o new.map
ceph osd setcrushmap -i new.map

About

install ceph in one host

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages