How To Install CEPH Cluster On Centos 7 Using Single Server – Part 24 min read
In this tutorial, how to install ceph cluster on centos 7 using single server. Ceph is an open source object storage solution. Ceph official requirements multiple server but I will show how to using single server.
############################## Server IP : 10.66.11.25 Hostname : ceph-node Disk : 15 GB RAM : 1GB vCPU : 2 Service : CEPH STORAGE ##############################
Note : Before installing CEPH must be the entry DNS name on your local DNS server host name to IP can resolve it.
Step #01: Prepare ceph server and nslookup check.
[[email protected] ~]# yum install bind-utils [[email protected] ~]# nslookup ceph-node [[email protected] ~]# cat /etc/redhat-release [[email protected] ~]# su cephadmin [[email protected] ~]# su cephadmin [[email protected] root]$ cd
Note : Must be resolve your server name using your local dns server otherwise can’t install ceph cluster properly.
you can find this guide how to install bind9 on ubuntu 20.04 on your local server.
Step #02: Add ceph official repo and install python2.
[[email protected] ~]$ sudo rpm -Uvh https://download.ceph.com/rpm-mimic/el7/noarch/ceph-release-1-1.el7.noarch.rpm [[email protected] ~]$ sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm [[email protected] ~]$ sudo yum install ceph-deploy python2-pip -y [[email protected] ~]$ mkdir storage_cluster [[email protected] ~]$ cd storage_cluster
Step #03: Initial deploy and mgr create.
[[email protected] storage_cluster]$ sudo ceph-deploy new ceph-node [[email protected] storage_cluster]$ sudo ceph-deploy install ceph-node [[email protected] storage_cluster]$ sudo ceph-deploy mon create-initial [[email protected] storage_cluster]$ sudo ceph-deploy admin ceph-node [[email protected] storage_cluster]$ sudo ceph-deploy mgr create ceph-node
Now add my testing 20GB disk from my xen server additional disk.
Note : Must be replace your disk name.
Now show your server all disk using below command.
[[email protected] storage_cluster]$ sudo lsblk [[email protected] storage_cluster]$ sudo lshw -class disk [[email protected] storage_cluster]$ sudo sfdisk -l -uM
Step #04: When ready your disk then deploy ceph cluster.
[[email protected] storage_cluster]$ udo ceph-deploy disk list ceph-node [[email protected] storage_cluster]$ sudo ceph-deploy disk zap ceph-node /dev/xvdb
Then create osd using your same disk and ceph host name.
[[email protected] storage_cluster]$ sudo ceph-deploy osd create --data /dev/xvdb ceph-node [[email protected] storage_cluster]$ sudo ceph -s
As like below image if all is working fine.
If you see any error so please see my YouTube channel for more update. Please share on any social media.
- 9 Ways to Speed Up Your MacBook Yosemite - February 21, 2023
- How To Install GitLab CE on Ubuntu 22.04 - December 15, 2022
- 7 Things to Know About Laptop Internet Cards - October 26, 2022
We really appreciate for your support for buying me a coffee.
It takes us a while to compose and upload new content, as they have to be checked to see if Properly works. We appreciate you if you help me for one cup of coffee to keep us awake and always deliver good quality content.
No contribution is small of an amount. We are grateful for any amount you support us with. Thank you!
pas mon create-initial error trs gmn ya?
you follow my steps?