Linux开机后 systemd 自动启动 ceph osd mon进程

机房操作失误导致机架或主机掉电是偶尔发生的事情,那么怎么在这种情况下,让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

原文地址:https://www.cnblogs.com/bodhitree/p/6016106.html