ceph-disk activate 激活时出错#yyds干货盘点#

壮心未与年俱老,死去犹能作鬼雄。这篇文章主要讲述ceph-disk activate 激活时出错#yyds干货盘点#相关的知识,希望能为你提供帮助。
1、激活失败
目前遇到 一种 激活失败的情况
1) pthread_create failed


2、pthread_create failed
2.1 问题描述
指定 osd_id 操作时,格式化、prepare操作都已完成,在存储节点上执行 ceph-disk activate dev 操作时,已有磁盘激活成功,但再次激活别的磁盘时,出错


2.2 错误信息

got monmap epoch 1
mount_activate: Failed to activate
ceph-disk: Error: [ceph-osd, --cluster, ceph, --mkfs, --mkkey, -i, u8, --monmap, /var/lib/ceph/tmp/mnt.4N6G4H/activate.monmap, --osd-data, /var/lib/ceph/tmp/mnt.4N6G4H, --osd-journal, /var/lib/ceph/tmp/mnt.4N6G4H/journal, --osd-uuid, u719ee398-bd32-43c6-9816-599425250a25, --keyring, /var/lib/ceph/tmp/mnt.4N6G4H/keyring, --setuser, ceph, --setgroup, ceph] failed : Thread::try_create(): pthread_create failed with error 11common/Thread.cc: In function void Thread::create(const char*, size_t) thread 7f330b33b8c0 time 2017-11-08 10:00:58.464707
common/Thread.cc: 160: FAILED assert(ret == 0)
ceph version 10.2.10 (5dc1e4c05cb68dbf62ae6fce3f0700e4654fdbbe)
1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x80) [0x56289780f790]
2: (Thread::create(char const*, unsigned long)+0xba) [0x5628977f2cca]
3: (CephContext::start_service_thread()+0x13a) [0x562897822aaa]
4: (common_init_finish(CephContext*)+0x6c) [0x562897833e5c]
5: (main()+0xfc6) [0x56289709c3d6]
6: (__libc_start_main()+0xf0) [0x7f330817f830]
7: (_start()+0x29) [0x5628970dfb09]
NOTE: a copy of the executable, or `objdump -rdS < executable> ` is needed to interpret this.
2017-11-08 10:00:58.480962 7f330b33b8c0 -1 common/Thread.cc: In function void Thread::create(const char*, size_t) thread 7f330b33b8c0 time 2017-11-08 10:00:58.464707
common/Thread.cc: 160: FAILED assert(ret == 0)


ceph version 10.2.10 (5dc1e4c05cb68dbf62ae6fce3f0700e4654fdbbe)
1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x80) [0x56289780f790]
2: (Thread::create(char const*, unsigned long)+0xba) [0x5628977f2cca]
3: (CephContext::start_service_thread()+0x13a) [0x562897822aaa]
4: (common_init_finish(CephContext*)+0x6c) [0x562897833e5c]
5: (main()+0xfc6) [0x56289709c3d6]
6: (__libc_start_main()+0xf0) [0x7f330817f830]
7: (_start()+0x29) [0x5628970dfb09]
NOTE: a copy of the executable, or `objdump -rdS < executable> ` is needed to interpret this.


0> 2017-11-08 10:00:58.480962 7f330b33b8c0 -1 common/Thread.cc: In function void Thread::create(const char*, size_t) thread 7f330b33b8c0 time 2017-11-08 10:00:58.464707
common/Thread.cc: 160: FAILED assert(ret == 0)


ceph version 10.2.10 (5dc1e4c05cb68dbf62ae6fce3f0700e4654fdbbe)
1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x80) [0x56289780f790]
2: (Thread::create(char const*, unsigned long)+0xba) [0x5628977f2cca]
3: (CephContext::start_service_thread()+0x13a) [0x562897822aaa]
4: (common_init_finish(CephContext*)+0x6c) [0x562897833e5c]
5: (main()+0xfc6) [0x56289709c3d6]
6: (__libc_start_main()+0xf0) [0x7f330817f830]
7: (_start()+0x29) [0x5628970dfb09]
NOTE: a copy of the executable, or `objdump -rdS < executable> ` is needed to interpret this.


*** Caught signal (Aborted) **
in thread 7f330b33b8c0 thread_name:ceph-osd
ceph version 10.2.10 (5dc1e4c05cb68dbf62ae6fce3f0700e4654fdbbe)
1: (()+0x98653e) [0x56289770f53e]
2: (()+0x11390) [0x7f330a1f7390]
3: (gsignal()+0x38) [0x7f3308194428]
4: (abort()+0x16a) [0x7f330819602a]
5: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x26b) [0x56289780f97b]
6: (Thread::create(char const*, unsigned long)+0xba) [0x5628977f2cca]
7: (CephContext::start_service_thread()+0x13a) [0x562897822aaa]
8: (common_init_finish(CephContext*)+0x6c) [0x562897833e5c]
9: (main()+0xfc6) [0x56289709c3d6]
10: (__libc_start_main()+0xf0) [0x7f330817f830]
11: (_start()+0x29) [0x5628970dfb09]
2017-11-08 10:00:58.482993 7f330b33b8c0 -1 *** Caught signal (Aborted) **
in thread 7f330b33b8c0 thread_name:ceph-osd


ceph version 10.2.10 (5dc1e4c05cb68dbf62ae6fce3f0700e4654fdbbe)
1: (()+0x98653e) [0x56289770f53e]
2: (()+0x11390) [0x7f330a1f7390]
3: (gsignal()+0x38) [0x7f3308194428]
4: (abort()+0x16a) [0x7f330819602a]
5: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x26b) [0x56289780f97b]
6: (Thread::create(char const*, unsigned long)+0xba) [0x5628977f2cca]
7: (CephContext::start_service_thread()+0x13a) [0x562897822aaa]
8: (common_init_finish(CephContext*)+0x6c) [0x562897833e5c]
【ceph-disk activate 激活时出错#yyds干货盘点#】 9: (main()+0xfc6) [0x56289709c3d6]
10: (__libc_start_main()+0xf0) [0x7f330817f830]
11: (_start()+0x29) [0x5628970dfb09]
NOTE: a copy of the executable, or `objdump -rdS < executable> ` is needed to interpret this.


0> 2017-11-08 10:00:58.482993 7f330b33b8c0 -1 *** Caught signal (Aborted) **
in thread 7f330b33b8c0 thread_name:ceph-osd


ceph version 10.2.10 (5dc1e4c05cb68dbf62ae6fce3f0700e4654fdbbe)
1: (()+0x98653e) [0x56289770f53e]
2: (()+0x11390) [0x7f330a1f7390]
3: (gsignal()+0x38) [0x7f3308194428]
4: (abort()+0x16a) [0x7f330819602a]
5: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x26b) [0x56289780f97b]
6: (Thread::create(char const*, unsigned long)+0xba) [0x5628977f2cca]
7: (CephContext::start_service_thread()+0x13a) [0x562897822aaa]
8: (common_init_finish(CephContext*)+0x6c) [0x562897833e5c]
9: (main()+0xfc6) [0x56289709c3d6]
10: (__libc_start_main()+0xf0) [0x7f330817f830]
11: (_start()+0x29) [0x5628970dfb09]
NOTE: a copy of the executable, or `objdump -rdS < executable> ` is needed to interpret this.


2.3 错误原因
计算机内存不足


2.4 释放内存

    推荐阅读