In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "ceph configuration log using independent partitioning method", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "ceph configuration log using independent partitioning method" it!
View the location of the current log
Ceph--admin-daemon / var/run/ceph/ceph-osd.0.asok config show | grep osd_journal
The output is as follows:
[root@ceph-gw-209214 ~] # ceph--admin-daemon / var/run/ceph/ceph-osd.0.asok config show | grep osd_journal "osd_journal": "\ / var\ / lib\ / ceph\ / osd\ / ceph-0\ / journal"
Method 1.
When adding osd using ceph-disk
Ceph-disk prepare-- cluster ceph--cluster-uuid f453a207-a05c-475b-971d-91ff6c1f6f48-- fs-type xfs / dev/sdb1 / dev/sdc1
Command explanation: ceph-disk prepare-- cluster cluster name-- cluster-uuid cluster id-- the type data storage location (blue bottom) log location of the osd added by fs-type,
Note that you should fully plan the disks on your server before preparing them
Mode 2.
Modify the configuration file to add
[osd]
Osd journal = / dev/sda2
Osd journal size = 0
Save exit ceph.conf file
Then execute ceph-osd-- mkjournal-I 0
Note: partition should be allocated in advance.
Mode 3.
1. Modify the configuration file
Add the following configuration to / etc/ceph/ceph.conf
[osd]
Osd journal = / var/log/$cluster-$id/journal
2. Replace osd
Set noout and stop osd
Command: ceph osd set noout
/ etc/init.d/ceph stop osd.1 (stop osd)
Manually move the log
Mv / var/lib/ceph/osd/ceph-1/journal / var/log/ceph-1/
Start osd
/ etc/init.d/ceph start osd.1
Ceph osd unset noout
Complete the migration changes of the ceph cluster logs.
At this point, I believe that everyone on the "ceph configuration log using independent partitioning method" have a deeper understanding, might as well to actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.