rbd-mirror
# 创建时启用日志功能 # rbd create <pool-name>/<image-name> --size <megabytes> --image-feature <feature> rbd create images/image1 --size 1024 --image-feature exclusive-lock,journaling # 创建后启用日志功能 # rbd feature enable <pool-name>/<image-name> <feature-name> rbd feature enable images/image1 exclusive-lock rbd feature enable images/image1 journaling # 修改配置文件,开启自动启动功能 crudini --set /etc/ceph/ceph.conf 'global' 'rbd default features' '125' systemctl restart ceph.target# 启用mirror # rbd mirror pool enable <pool-name> <mode> rbd mirror pool enable images image # 禁用mirror # rbd mirror pool disable <pool-name>scp /etc/ceph/ceph.conf root@slave:/etc/ceph/master.conf scp /etc/ceph/ceph.client.admin.keyring root@slave:/etc/ceph/master.client.admin.keyring# rbd mirror pool peer add <pool-name> <client-name>@<cluster-name> rbd mirror pool peer add images client.admin@master # 查看peer状态 # rbd mirror pool info <pool-name> rbd mirror pool info imagesyum install -y rbd-mirror systemctl start [email protected]# rbd mirror pool status <pool-name> rbd mirror pool status images
最后更新于