In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you what to do if you fail to start the osd process on the osd node of Ceph. I hope you will get something after reading this article. Let's discuss it together.
On the osd node of Ceph, if you failed to start the osd process, check its log / var/log/ceph/ceph-osd. {osd-index} .log. The error is as follows:
2017-02-14 16 mount 26 7fe3883f58c0 13.558535 7fe3883f58c0 0 filestore (/ var/lib/ceph/osd/ceph-1) mount: enabling WRITEAHEAD journal mode: checkpoint is not enabled2017-02-14 16 16 pigment 26 Swiss 13.558712 7fe3883f58c0-1 journal FileJournal::_open: disabling aio for non-block journal. Use journal_force_aio to force use of aio anyway2017-02-14 16 journal_ open 26 var/lib/ceph/osd/ceph-1/journal fd 26 journal_ open 13.558714 7fe3883f58c0 1 journal_ open / var/lib/ceph/osd/ceph-1/journal fd 18: 5368709120 bytes, block size 4096 bytes, directio = 1, aio = 02017-02-14 16 V 26 Switzerland 13.558866 7fe3883f58c0 1 journal_ open / var/lib/ceph/osd/ceph-1/journal fd 18: 5368709120 bytes, block size 4096 bytes, directio = 1 Aio = 02017-02-14 16V 26 filestore 13.559190 7fe3883f58c0 1 filestore (/ var/lib/ceph/osd/ceph-1) upgrade2017-02-14 1626 V 13.559342 7fe3883f58c0-1 osd.1 0 backend (filestore) is unable to support max object name [space] len2017-02-14 1626V 13.559348 7fe3883f58c0-1 osd.1 0 osd max object name len = 20482017-02-14 16V 26V 13.559350 7fe3883f58c0-1 osd.1 0 osd max object namespace len = 2562017-02- 14 16 7fe3883f58c0 26 7fe3883f58c0 13.559353 7fe3883f58c0-1 osd.1 0 (36) File name too long2017-02-14 16 V 26 7fe3883f58c0 13.559863 journal close / var/lib/ceph/osd/ceph-1/journal2017-02-14 16 V 26 V 13.560411 7fe3883f58c0-1 ^ [0 31m * * ERROR: osd init failed: (36) File name too long
The reason for this error is that the official website of Ceph recommends that XFS be used as the file system for OSD to store data, but my file system is ext4, and the size of ext4 storage xattrs is limited, so that OSD information cannot be saved safely. So there are two ways to solve this problem:
Modify the osd option of the Ceph configuration file. Add the following information to the section of global in the Ceph configuration file, which needs to be modified in the Ceph cluster if the file system on which osd stores the data is ext4. Then restart the corresponding osd service.
Osd max object name len = 256osd max object namespace len = 64
Change the file system to XFS.
After reading this article, I believe you have a certain understanding of "what to do if you failed to start the osd process on the osd node of Ceph". If you want to know more about it, welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.