機房操作失誤導致機架或主機掉電是偶爾發生的事情,那么怎么在這種情況下,讓Ceph服務隨OS啟動而快速啟動呢 ? 如下是一個簡單方法:
在OSD主機上執行如下命令:
sudo ln -s /usr/lib/systemd/system/ceph-osd@.service /etc/systemd/system/multi-user.target.wants/ceph-osd@.service
sudo systemctl enable ceph-osd@.service
sudo systemctl is-enabled ceph-osd@.service
在MON主機上執行如下命令:
sudo ln -s /usr/lib/systemd/system/ceph-mon@.service /etc/systemd/system/multi-user.target.wants/ceph-mon@.service
sudo systemctl enable ceph-mon@.service
sudo systemctl is-enabled ceph-mon@.service