Ceph:Unknown lvalue 'TasksMax' in section 'Service

简介:

1、查看ceph服务状态

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# systemctl status ceph\*.service
● ceph-osd@0.service - Ceph object storage daemon
   Loaded: loaded ( /usr/lib/systemd/system/ceph-osd @.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2018-01-12 06:03:20 CST; 7h ago
Main PID: 4686 (ceph-osd)
   CGroup:  /system .slice /system-ceph \x2dosd.slice /ceph-osd @0.service
           └─4686  /usr/bin/ceph-osd  -f --cluster ceph -- id  0 --setuser ceph --setgroup ceph
Jan 12 06:03:20 hz-01-ops-tc-ceph-01 ceph-osd[4686]: starting osd.0 at : /0  osd_data  /var/lib/ceph/osd/ceph-0  /var/lib/ceph/osd/ceph-0/journal
Jan 12 06:03:20 hz-01-ops-tc-ceph-01 ceph-osd[4686]: 2018-01-12 06:03:20.610107 7f6b4111b800 -1 osd.0 0 log_to_monitors {default= true }
Jan 12 06:03:20 hz-01-ops-tc-ceph-01 systemd[1]: [ /usr/lib/systemd/system/ceph-osd @.service:18] Unknown lvalue  'TasksMax'  in  section  'Service'
Jan 12 06:03:21 hz-01-ops-tc-ceph-01 systemd[1]: [ /usr/lib/systemd/system/ceph-osd @.service:18] Unknown lvalue  'TasksMax'  in  section  'Service'
Jan 12 06:03:21 hz-01-ops-tc-ceph-01 systemd[1]: [ /usr/lib/systemd/system/ceph-osd @.service:18] Unknown lvalue  'TasksMax'  in  section  'Service'
Jan 12 13:53:07 hz-01-ops-tc-ceph-01 systemd[1]: [ /usr/lib/systemd/system/ceph-osd @.service:18] Unknown lvalue  'TasksMax'  in  section  'Service'
Jan 12 13:53:07 hz-01-ops-tc-ceph-01 systemd[1]: [ /usr/lib/systemd/system/ceph-osd @.service:18] Unknown lvalue  'TasksMax'  in  section  'Service'
Jan 12 13:53:07 hz-01-ops-tc-ceph-01 systemd[1]: [ /usr/lib/systemd/system/ceph-osd @.service:18] Unknown lvalue  'TasksMax'  in  section  'Service'
Jan 12 13:53:07 hz-01-ops-tc-ceph-01 systemd[1]: [ /usr/lib/systemd/system/ceph-osd @.service:18] Unknown lvalue  'TasksMax'  in  section  'Service'
Jan 12 13:53:07 hz-01-ops-tc-ceph-01 systemd[1]: [ /usr/lib/systemd/system/ceph-osd @.service:18] Unknown lvalue  'TasksMax'  in  section  'Service'


2、解决方法:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# sudo yum install systemd-*
# systemctl status ceph\*.service
● ceph-osd@0.service - Ceph object storage daemon
   Loaded: loaded ( /usr/lib/systemd/system/ceph-osd @.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2018-01-12 06:03:20 CST; 7h ago
Main PID: 4686 (ceph-osd)
   CGroup:  /system .slice /system-ceph \x2dosd.slice /ceph-osd @0.service
           └─4686  /usr/bin/ceph-osd  -f --cluster ceph -- id  0 --setuser ceph --setgroup ceph
 
Jan 12 06:03:20 hz-01-ops-tc-ceph-01 ceph-osd[4686]: starting osd.0 at : /0  osd_data  /var/lib/ceph/osd/ceph-0  /var/lib/ceph/osd/ceph-0/journal
Jan 12 06:03:20 hz-01-ops-tc-ceph-01 ceph-osd[4686]: 2018-01-12 06:03:20.610107 7f6b4111b800 -1 osd.0 0 log_to_monitors {default= true }
Jan 12 06:03:20 hz-01-ops-tc-ceph-01 systemd[1]: [ /usr/lib/systemd/system/ceph-osd @.service:18] Unknown lvalue  'TasksMax'  in  section  'Service'
Jan 12 06:03:21 hz-01-ops-tc-ceph-01 systemd[1]: [ /usr/lib/systemd/system/ceph-osd @.service:18] Unknown lvalue  'TasksMax'  in  section  'Service'
Jan 12 06:03:21 hz-01-ops-tc-ceph-01 systemd[1]: [ /usr/lib/systemd/system/ceph-osd @.service:18] Unknown lvalue  'TasksMax'  in  section  'Service'
Jan 12 13:53:07 hz-01-ops-tc-ceph-01 systemd[1]: [ /usr/lib/systemd/system/ceph-osd @.service:18] Unknown lvalue  'TasksMax'  in  section  'Service'
Jan 12 13:53:07 hz-01-ops-tc-ceph-01 systemd[1]: [ /usr/lib/systemd/system/ceph-osd @.service:18] Unknown lvalue  'TasksMax'  in  section  'Service'
Jan 12 13:53:07 hz-01-ops-tc-ceph-01 systemd[1]: [ /usr/lib/systemd/system/ceph-osd @.service:18] Unknown lvalue  'TasksMax'  in  section  'Service'
Jan 12 13:53:07 hz-01-ops-tc-ceph-01 systemd[1]: [ /usr/lib/systemd/system/ceph-osd @.service:18] Unknown lvalue  'TasksMax'  in  section  'Service'
Jan 12 13:53:07 hz-01-ops-tc-ceph-01 systemd[1]: [ /usr/lib/systemd/system/ceph-osd @.service:18] Unknown lvalue  'TasksMax'  in  section  'Service'

3、服务验证:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# systemctl restart ceph\*.service
# systemctl status ceph\*.service
● ceph-osd@0.service - Ceph object storage daemon
   Loaded: loaded ( /usr/lib/systemd/system/ceph-osd @.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2018-01-12 13:56:14 CST; 2s ago
   Process: 14682 ExecStartPre= /usr/lib/ceph/ceph-osd-prestart .sh --cluster ${CLUSTER} -- id  %i (code=exited, status=0 /SUCCESS )
Main PID: 14733 (ceph-osd)
   CGroup:  /system .slice /system-ceph \x2dosd.slice /ceph-osd @0.service
           └─14733  /usr/bin/ceph-osd  -f --cluster ceph -- id  0 --setuser ceph --setgroup ceph
Jan 12 13:56:14 hz-01-ops-tc-ceph-01 systemd[1]: Starting Ceph object storage daemon...
Jan 12 13:56:14 hz-01-ops-tc-ceph-01 ceph-osd-prestart.sh[14682]: create-or-move updated item name  'osd.0'  weight 0.0439 at location {host=hz-01-ops-tc-ceph-01,root=default} to crush map
Jan 12 13:56:14 hz-01-ops-tc-ceph-01 systemd[1]: Started Ceph object storage daemon.
Jan 12 13:56:14 hz-01-ops-tc-ceph-01 ceph-osd[14733]: starting osd.0 at : /0  osd_data  /var/lib/ceph/osd/ceph-0  /var/lib/ceph/osd/ceph-0/journal
Jan 12 13:56:14 hz-01-ops-tc-ceph-01 ceph-osd[14733]: 2018-01-12 13:56:14.620901 7f0aee7fb800 -1 osd.0 19 log_to_monitors {default= true }









本文转自 冰冻vs西瓜 51CTO博客,原文链接:http://blog.51cto.com/molewan/2060357,如需转载请自行联系原作者
目录
相关文章
|
Ubuntu 网络安全
Unit firewalld.service could not be found.
Unit firewalld.service could not be found.
672 0
|
NoSQL Redis
Consider defining a bean of type ‘com.bsj.system.service.RedisService‘ in your configuration
Consider defining a bean of type ‘com.bsj.system.service.RedisService‘ in your configuration
565 0
|
2月前
|
Ubuntu Linux Shell
9-11|Unit cron.service could not be found.
9-11|Unit cron.service could not be found.
|
3月前
|
消息中间件 开发工具
【Azure Service Bus】Service Bus SDK 抛出 ERROR c.a.c.a.i.ActiveClientTokenManager - Error is transient. Rescheduling authorization task at interval 1079000 ms.
【Azure Service Bus】Service Bus SDK 抛出 ERROR c.a.c.a.i.ActiveClientTokenManager - Error is transient. Rescheduling authorization task at interval 1079000 ms.
|
4月前
|
Java Spring
Description:Field contentMapper in worldtolingyidianke.file.service.impl.ContentServiceImpl requir
Description:Field contentMapper in worldtolingyidianke.file.service.impl.ContentServiceImpl requir
Field userMapper in zero.file.videoProject.service.UserService required a bean of type ‘zero.file.vi
Field userMapper in zero.file.videoProject.service.UserService required a bean of type ‘zero.file.vi
|
Linux
ERROR: 2 matches found based on name: network product-server_default is ambiguous
ERROR: 2 matches found based on name: network product-server_default is ambiguous
154 0
|
网络协议
Job for named.service failed because the control process exited with error code.
Job for named.service failed because the control process exited with error code.
794 0
|
XML 应用服务中间件 数据格式
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
96 0
控制台报错: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting proper
|
网络协议
Job for named.service failed because the control process exited with error code.怎么解决
本篇内容记录了如何解决Job for named.service failed because the control process exited with error code.的问题。
3565 0
Job for named.service failed because the control process exited with error code.怎么解决