Ceph重建journal日志盘:
1.首先需要把新增的SSD固态硬盘平均分成4个分区:
#parted -a optimal --script /dev/sdc mklabel gpt
#parted -a optimal --script /dev/sdc mkpart primary xfs 0% 25%
#parted -a optimal --script /dev/sdc mkpart primary xfs 25% 50%
#parted -a optimal --script /dev/sdc mkpart primary xfs 50% 75%
#parted -a optimal --script /dev/sdc mkpart primary xfs 75% 100%
2.重建journal分区:
#cd /dev/disk/by-partuuid/
查看新分区ceph osd 50对应的sdb1的分区的UUID。
#rm -f /var/lib/ceph/osd/ceph-50/journal (删除之前的ceph osd 50对应的journal日志盘分区)
#ceph-osd -i 50 --mkjournal --osd-journal /dev/disk/by-partuuid/ae1cba1d-eb9d-4497-9da5-6d842224fff5 (创建新的日志盘分区)
#ln -s /dev/disk/by-partuuid/ae1cba1d-eb9d-4497-9da5-6d842224fff5 /var/lib/ceph/osd/ceph-50/journal (挂载新的日志盘分区)
#systemctl start ceph-osd@50 (启动ceph osd 50的服务)