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

相关文章:

  • 2021-10-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-19
  • 2021-10-15
  • 2022-02-02
  • 2022-12-23
  • 2022-01-14
相关资源
相似解决方案