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.

          View Comments

          • thank you for your comprehensive doc . would you share which images downloaded after installed ? I want to download images and then use it in disconnected environments. thank you .

          Recent Posts

          Canary Deployments on OpenShift with GitOps: A Practical Walkthrough

          Shipping a new version of an application is always a small act of faith. Even…

          2 weeks ago

          OpenShift VM Backup and Restore

          The following steps demonstrate how to back up and restore an OpenShift virtual machine using…

          2 months ago

          Red Hat OpenShift VM Micro-segmentation Using MultiNetworkPolicy

          OpenShift Virtualization allows virtual machines (VMs) to run natively on Kubernetes alongside container workloads. Using…

          3 months ago

          Red Hat OpenStack Services on OpenShift (RHOSO)

          Red Hat OpenStack Services on OpenShift (RHOSO) provides the foundation to build a private or public…

          4 months ago

          Kubernetes Cluster Deployment

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

          4 months ago

          vSphere to OpenShift VM Migration

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

          5 months ago