Linux

Ceph cluster on a single machine

Ceph is an open-source, distributed storage platform that provides object, block, and file storage in a single system. It’s highly scalable, reliable, and designed to run on commodity hardware. For enterprise environments, Ceph is also available as a supported commercial offering through Red Hat, known as Red Hat Ceph Storage.

Sometimes you need to try something out—explore ceph or how an application behaves, or verifying an integration like Kubernetes CSI. In these cases, using a system that’s easy to deploy and manage, such as Ceph, makes the whole process faster and more efficient.

You can use either the enterprise distribution of Ceph provided by Red Hat or the upstream community edition. This tutorial uses Red Hat Ceph; however, the equivalent steps can be followed using the community version as well.

You’ll need a Linux distribution installed on your system. This guide uses Red Hat Enterprise Linux 9 as an example, but any distribution supported by Ceph will work.

You can use either a virtual machine or a physical server. Ensure the system has at least 2–3 additional disks dedicated for use with Ceph storage.

  1. enable the Ceph repositories

$ sudo subscription-manager repos –enable=rhceph-9-tools-for-rhel-9-x86_64-rpms

2. Install required packages to setup ceph

    $ sudo dnf install podman cephadm ceph-common ceph-base -y

    3. Use the cephadm command to initialize and bootstrap the Ceph cluster

      $ sudo cephadm bootstrap \

      –cluster-network 10.10.20.0/24 \ # update the network and mon ip

      –mon-ip 10.10.20.20 \

      –registry-url registry.redhat.io \

      –registry-username redhatuser \ # update rhel username

      –registry-password ‘pwd \ # update rhel user password

      –dashboard-password-noupdate \

      –initial-dashboard-user admin \

      –initial-dashboard-password xxx \. # update password

      –allow-fqdn-hostname \

      –single-host-defaults

      4. Add an OSD inside a Ceph cluster.

        $ sudo ceph orch apply osd –all-available-devices

        5. Access Ceph dashboard using URL

          https://FQDN:8443

          Dineshreddy Kayithi

          Rooted in a solid academic foundation with a Bachelor's Degree in Information Technology, my career has been deeply entrenched in designing, deploying, and managing enterprise-grade infrastructure across virtualization, cloud-native, and containerized environments. Industry certifications from VMware, AWS, Microsoft, and Kubernetes validate my hands-on expertise in architecting scalable, resilient systems spanning hypervisors, public/hybrid cloud platforms, and container orchestration frameworks. I'm driven by a relentless pursuit of emerging technologies — translating them into production-ready solutions that solve complex operational challenges.

          Share
          Published by
          Dineshreddy Kayithi
          Tags: CephLinux

          Recent Posts

          Kubernetes Cluster Deployment

          Kubernetes (often shortened to “K8s”) is an open-source system for automating the deployment, scaling, and…

          4 days ago

          vSphere to OpenShift VM Migration

          Prerequisites Red Hat OpenShift cluster deployed and operational You can refer to my earlier post…

          3 weeks ago

          Installing OpenShift 4.21 in an air-gapped on-premises/BareMetal environment using Agent-based deployment

          Agent-Based Installation The Agent-based installation method provides the flexibility to boot your on-premise servers in…

          2 months ago

          OpenShift Virtualization Configuration, Secondary VM Network Setup, and Live Migration configuration

          You can check the earlier post regarding cluster setup and ODF setup https://kdinesh.in/deployment-of-openshift-4-20-with-using-the-assistant-installer/ https://kdinesh.in/openshiftodf/ Login…

          4 months ago

          OpenShift Install OpenShift Data Foundation (ODF) using Multus network Isolation

          You can check the earlier post regarding cluster setup https://kdinesh.in/deployment-of-openshift-4-20-with-using-the-assistant-installer/ 1.Install nm state operator 2.…

          4 months ago

          Deployment of OpenShift 4.20 with using the Assistant Installer

          OpenShift supports multiple deployment methods, including UPI, IPI, and the Assisted Installer. Previously, if you…

          4 months ago