In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the "ceph source code deployment test environment process" related knowledge, in the actual case operation process, many people will encounter such a dilemma, and then let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!
Download the ceph source code.
Because ceph is compiled, installed, and deployed from source code, it is common to download ceph source code from github.
# git clone https://github.com/ceph/ceph.git
Second, compile the ceph source code.
It is best not to compile the ceph source code on git's master, there will be a lot of holes. It's best to compile on the latest release of tag. The latest release of ceph so far is v10.2.1, so compile on that tag.
# git checkout-b v10.2.1 v10.2.1
# git branch
Master
* v10.2.1
As you can see, the current code is the source code at v10.2.1 tag.
To compile ceph, please refer to http://my.oschina.net/linuxhunter/blog/682013.
Third, install ceph.
To install the compiled ceph, please refer to http://my.oschina.net/linuxhunter/blog/682013
Fourth, deploy the test environment.
Ceph has a vstart.sh script in the src directory of the source code path that is used to quickly build a ceph cluster compiled from the source code. The command to create a fast ceph cluster using the vstart.sh script is as follows:
#. / vstart.sh-m 192.168.250.93-n-d-r-mon_num 1-- osd_num 3-- mds_num 0-- bluestore
Where:
-m indicates the ip address and default port 6789 of the monitor node
-n points out that this deployment is a new deployment.
-d indicates the use of debug mode (easy to debug code)
-r indicates to start the radosgw process
-- mon_num indicates the number of monitor deployed
-- osd_num indicates the number of OSD deployed
-- mds_num indicates the number of MDS deployed
-- bluestore indicates that ceph backend storage uses the latest bluestore
Fifth, verify the test environment.
After you deploy the ceph cluster using the vstart.sh script, you can see the status of the ceph cluster you just deployed using the # ceph-s command.
Sixth, cancel the test environment of the deployment.
Use the command script stop.sh to undo the ceph deployment that was previously done using vstart.sh. The undo deployment command is used as follows:
#. / stop.sh
This is the end of the ceph source code deployment test environment process. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.