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

时间:2016-10-31 16:16:03   收藏:0   阅读:1071

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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!