ceph升级到10.2.3 版本启动服务报错:Unknown lvalue 'TasksMax' in section 'Service'
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ceph升级到10.2.3 版本启动服务报错:Unknown lvalue 'TasksMax' in section 'Service'相关的知识,希望对你有一定的参考价值。
#### ceph软件包升级完成,执行命令重启服务
sudo systemctl restart [email protected]"$HOSTNAME"
#### 故障现象
服务可以启动,启动后显示有报错信息:
Nov 23 17:14:45 ceph-6-12 systemd[1]: [/usr/lib/systemd/system/[email protected]:18] Unknown lvalue ‘TasksMax‘ in section ‘Service‘
详细如下:
[[email protected] ~]$ sudo systemctl status [email protected]"$HOSTNAME"
```
● [email protected] - Ceph metadata server daemon
Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled; vendor preset: disabled)
Active: active (running) since Wed 2016-11-23 17:14:45 CST; 57s ago
Main PID: 538956 (ceph-mds)
CGroup: /system.slice/system-ceph\x2dmds.slice/[email protected]
└─538956 /usr/bin/ceph-mds -f --cluster ceph --id ceph-6-12 --setuser ceph --setgroup ceph
Nov 23 17:14:45 ceph-6-12 systemd[1]: Started Ceph metadata server daemon.
Nov 23 17:14:45 ceph-6-12 systemd[1]: Starting Ceph metadata server daemon...
Nov 23 17:14:45 ceph-6-12 ceph-mds[538956]: starting mds.ceph-6-12 at :/0
Nov 23 17:14:45 ceph-6-12 systemd[1]: [/usr/lib/systemd/system/[email protected]:18] Unknown lvalue ‘TasksMax‘ in section ‘Service‘
Nov 23 17:14:45 ceph-6-12 systemd[1]: [/usr/lib/systemd/system/[email protected]:18] Unknown lvalue ‘TasksMax‘ in section ‘Service‘
Nov 23 17:14:45 ceph-6-12 systemd[1]: [/usr/lib/systemd/system/[email protected]:18] Unknown lvalue ‘TasksMax‘ in section ‘Service‘
Nov 23 17:14:46 ceph-6-12 systemd[1]: [/usr/lib/systemd/system/[email protected]:18] Unknown lvalue ‘TasksMax‘ in section ‘Service‘
Nov 23 17:14:46 ceph-6-12 systemd[1]: [/usr/lib/systemd/system/[email protected]:18] Unknown lvalue ‘TasksMax‘ in section ‘Service‘
Nov 23 17:14:53 ceph-6-12 systemd[1]: Started Ceph metadata server daemon.
```
#### 查询相关文档:
http://tracker.ceph.com/issues/15560
http://tracker.ceph.com/issues/15581
文档都说是个bug ,又碰到一个bug ,汗。。。。。。。。。。
根据文档提示信息排查解决,发现这个问题只要安装或升级systemd基础库相关软件包,就能解决,所以果断安装升级systemd。
sudo yum install systemd-*
#### 然后重启服务:
sudo systemctl restart [email protected]"$HOSTNAME"
再查查看服务状态:
[[email protected] ~]$ sudo systemctl status [email protected]"$HOSTNAME"
```
● [email protected] - Ceph metadata server daemon
Loaded: loaded (/usr/lib/systemd/system/[email protected]; enabled; vendor preset: disabled)
Active: active (running) since Wed 2016-11-23 17:59:51 CST; 8s ago
Main PID: 666298 (ceph-mds)
CGroup: /system.slice/system-ceph\x2dmds.slice/[email protected]
└─666298 /usr/bin/ceph-mds -f --cluster ceph --id ceph-6-12 --setuser ceph --setgroup ceph
Nov 23 17:59:51 ceph-6-12 systemd[1]: Started Ceph metadata server daemon.
Nov 23 17:59:51 ceph-6-12 systemd[1]: Starting Ceph metadata server daemon...
Nov 23 17:59:51 ceph-6-12 ceph-mds[666298]: starting mds.ceph-6-12 at :/0
```
报错信息不再提示;
本文出自 “康建华” 博客,谢绝转载!
以上是关于ceph升级到10.2.3 版本启动服务报错:Unknown lvalue 'TasksMax' in section 'Service'的主要内容,如果未能解决你的问题,请参考以下文章
关于升级 Dubbo 版本到 2.6.5 后启动失败的“坑”