Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deploy ceph Cluster in ubuntu

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article shows you how to deploy ceph clusters in ubuntu. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Configure apt source # wget-Q-O-'https://download.ceph.com/keys/release.asc' | sudo apt-key add-# echo deb https://download.ceph.com/debian-jewel/ $(lsb_release-sc) main | sudo tee / etc/apt/sources.list.d/ceph.list install ceph-deploy, one machine can install ceph software # apt-get install ceph-deploy All three machines need to install # apt-get install ceph to create a cluster # mkdir / opt/ceph# cd / opt/ceph# ceph-deploy new k8s1 k8s2 k8s3# echo mon_pg_warn_max_per_osd = 1000 > > ceph.conf# echo cluster_network=172.16.13.0/24 > > ceph.conf# echo max open files = 131072 > > ceph.conf# echo osd_scrub_begin_hour=1 > > ceph.conf# echo osd_scrub_end_hour=7 > > ceph.conf# echo "osd max object name Len = 256 "> > ceph.conf# echo" osd max object namespace len = 64 "> ceph.conf initialize cluster # ceph-deploy mon create-initial copy key # cp ceph.client.admin.keyring / etc/ceph/ add osd

Since there is no bare disk, the directory is directly specified as osd. It seems that specifying directory as osd is not supported in the new version of luminous,ceph-deploy.

# mkdir-p / data/ceph/data# chown ceph:ceph / data/ceph/data/# ceph-deploy osd prepare k8s2:/data/ceph/data # ceph-deploy osd activate k8s2:/data/ceph/data

Three nodes one osd for each node

# ceph-s cluster 6d8963e9-9585-4679-8dac-17b60f2d0c30 health HEALTH_OK monmap e1: 3 mons at {tj006=172.16.41.25:6789/0,tj007=172.16.41.26:6789/0,tj008=172.16.41.27:6789/0} election epoch 12, quorum 0Power1 tj006,tj007,tj008 osdmap e14: 3 osds: 3 up, 3 in flags sortbitwise,require_jewel_osds pgmap v29: 64 pgs, 1 pools, 0 bytes data 0 objects 7811 GB used, 39739 GB / 50064 GB avail 64 active+clean add mds# ceph-deploy mds create k8s1# ceph osd pool create k8s_data 3 "ceph osd pool create k8s_metadata 3" cephfs new ceph_k8s k8s_metadata k8s_data# mkdir / data/ceph/cephfs# mount-t ceph 172.16.13.160 data/ceph/cephfs 6789 name=admin,secretfile=/etc/ceph/admin.secret the above is how to deploy ceph clusters in ubuntu Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are 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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report