PVE集群实验
[global]
auth_client_required = cephx
auth_cluster_required = cephx
auth_service_required = cephx
cluster_network = 192.168.0.159/24
fsid = da931046-a09d-4126-96bc-b139e8cbd840
mon_allow_pool_delete = true
mon_host = 192.168.0.159 192.168.0.218 192.168.0.244
ms_bind_ipv4 = true
ms_bind_ipv6 = false
osd_pool_default_min_size = 2
osd_pool_default_size = 3
public_network = 192.168.0.159/24
[client]
keyring = /etc/pve/priv/$cluster.$name.keyring
[mds]
keyring = /var/lib/ceph/mds/ceph-$id/keyring
[mds.dev1]
host = dev1
mds_standby_for_name = pve
[mds.dev2]
host = dev2
mds_standby_for_name = pve
[mds.dev3]
host = dev3
mds standby for name = pve
[mon.dev1]
public_addr = 192.168.0.159
[mon.dev2]
public_addr = 192.168.0.218
[mon.dev3]
public_addr = 192.168.0.244
# begin crush map
tunable choose_local_tries 0
tunable choose_local_fallback_tries 0
tunable choose_total_tries 50
tunable chooseleaf_descend_once 1
tunable chooseleaf_vary_r 1
tunable chooseleaf_stable 1
tunable straw_calc_version 1
tunable allowed_bucket_algs 54
# devices
device 0 osd.0 class hdd
device 1 osd.1 class hdd
device 2 osd.2 class hdd
# types
type 0 osd
type 1 host
type 2 chassis
type 3 rack
type 4 row
type 5 pdu
type 6 pod
type 7 room
type 8 datacenter
type 9 zone
type 10 region
type 11 root
# buckets
host dev1 {
id -3 # do not change unnecessarily
id -4 class hdd # do not change unnecessarily
# weight 0.06250
alg straw2
hash 0 # rjenkins1
item osd.0 weight 0.06250
}
host dev2 {
id -5 # do not change unnecessarily
id -6 class hdd # do not change unnecessarily
# weight 0.06250
alg straw2
hash 0 # rjenkins1
item osd.1 weight 0.06250
}
host dev3 {
id -7 # do not change unnecessarily
id -8 class hdd # do not change unnecessarily
# weight 0.06250
alg straw2
hash 0 # rjenkins1
item osd.2 weight 0.06250
}
root default {
id -1 # do not change unnecessarily
id -2 class hdd # do not change unnecessarily
# weight 0.18750
alg straw2
hash 0 # rjenkins1
item dev1 weight 0.06250
item dev2 weight 0.06250
item dev3 weight 0.06250
}
# rules
rule replicated_rule {
id 0
type replicated
step take default
step chooseleaf firstn 0 type host
step emit
}
# end crush map
Comment