In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "distributed storage ceph how to install", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "distributed storage ceph how to install" this article.
1 Experimental environment
2 quickly install ceph
2.1 preparation work
* time synchronization of each node, preferably from a ntp server on the same private network
* ssh visits between nodes, which are not described in detail in this article
* the ip and hostname correspondence of each node is set, and the / etc/hosts file of each node is configured as follows
192.168.100.96 ceph2
192.168.100.97 ceph3
192.168.100.98 ceph4
* create a journal partition. An osd corresponds to a journal partition (only partitions are created, no file systems are created)
You can create a GPT partition with sgdisk
2.2 install the ceph-deploy tool
Apt-get install ceph-deploy on admin
Create a cluster directory and enter the cluster directory. The following operations are performed in the cluster directory.
Mkdir / etc/ceph
Cd / etc/ceph
Install the cluster node
Ceph-deploy install ceph2 ceph3 ceph4
Establish a cluster instance and initialize the monitoring node
Ceph-deploy new ceph2 ceph3 ceph4
Activate the monitoring node
Ceph-deploy mon create-initial
Create osd
Command format: ceph-deploy osd create node:data-path:journal-path
Ceph-deploy osd create ceph2:/dev/sdb:/dev/sdd1 ceph2:/dev/sdc:/dev/sdd2 ceph3:/dev/sdb:/dev/sdd1 ceph3:/dev/sdc:/dev/sdd2 ceph4:/dev/sdb:/dev/sdd1 ceph4:/dev/sdc:/dev/sdd2
The command can be divided into two parts
Ceph-deploy osd prepare ceph2:/dev/sdb:/dev/sdd1 ceph2:/dev/sdc:/dev/sdd2 ceph3:/dev/sdb:/dev/sdd1 ceph3:/dev/sdc:/dev/sdd2 ceph4:/dev/sdb:/dev/sdd1 ceph4:/dev/sdc:/dev/sdd2
Ceph-deploy osd activate ceph2:/dev/sdb1 ceph2:/devsdc1 ceph3:/dev/sdb1 ceph3:/dev/sdc1 ceph4:/dev/sdb1 ceph4:/dev/sdc1
By the end of the installation of this ceph
You can use ceph-s to check the health status of ceph
View osd
From the figure, you can see each node and the osd in the node.
These are all the contents of the article "how to install distributed Storage ceph". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.