Your submission was sent successfully! Close

You have successfully unsubscribed! Close

Install Ceph on Ubuntu

Ceph is a storage system designed for excellent performance, reliability, and scalability. However, the installation and management of Ceph can be challenging. The Ceph-on- Ubuntu solution takes the administration minutiae out of the equation through the use of Juju charms. With charms, the deployment of a Ceph cluster becomes trivial as does the scaling of the cluster’s storage capacity.

Looking for help running Ceph?

Get in touch

Ceph install

How to install Ceph on Ubuntu

Charmed Ceph is Ubuntu’s fully automated, model-driven approach to installing and managing Ceph. Charmed Ceph is generally deployed on bare-metal that is managed by MAAS.

How to install Ceph on MAAS

These instructions will result in an environment consisting of Ubuntu 20.04 LTS on three machines (one OSD node and one containerised MON node on each) that will run Ceph Octopus.

  1. Install Juju

    Juju simplifies how you configure, scale and operate today’s complex software. Install it now:

    sudo snap install juju --classic

    This requires snapd to be installed. The latest Ubuntu release comes with this built in. For other Linux systems install snapd first.

  2. Add your MAAS cloud

    This interactive step will register your private MAAS cloud that currently manages your bare metal infrastructure.

    juju add-cloud

    You would choose MAAS in the interactive session and answer a few questions (see Juju for details). Let us assume that we have named the cloud ’mymaas’.

  3. Add Credentials

    Cloud ’mymaas’ requires credentials in the form of a user’s API key that is created on the MAAS server. Inform Juju about it:

    juju add-credential mymaas
  4. Add Controller

    The Juju controller is used to manage the software deployed through Juju. Create one now called, say, ’maas-one’:

    juju bootstrap mymaas maas-one
  5. Add Model

    The model will hold the Ceph deployment, which includes the various applications and the number of units for each. Create one now called, say, ’ceph’:

    juju add-model ceph
  6. Deploy Ceph

    Deploy the Ceph cluster with the ceph-base bundle from the Charm Store:

    juju deploy ceph-base

    The bundle uses block device ’/dev/sdb’ to back cluster OSDs. Adjust as needed post-install with:

    juju config ceph-osd osd-devices=/dev/<XXX>

For more details, see the Ceph documentation  ›

Need more help with Ceph?

Let our Ceph experts help you take the next step.

Get in touch

Latest Ceph news from our blog ›