机房操作失误导致机架或主机掉电是偶尔发生的事情,那么怎么在这种情况下,让Ceph服务随OS启动而快速启动呢 ? 如下是一个简单方法:
在OSD主机上执行如下命令:
sudo ln -s /usr/lib/systemd/system/[email protected] /etc/systemd/system/multi-user.target.wants/[email protected]
sudo systemctl enable [email protected]
sudo systemctl is-enabled [email protected]
在MON主机上执行如下命令:
sudo ln -s /usr/lib/systemd/system/[email protected] /etc/systemd/system/multi-user.target.wants/[email protected]
sudo systemctl enable [email protected]
sudo systemctl is-enabled [email protected]
时间: 2024-11-05 10:50:29