How To Install rbd-mirror on Ubuntu 20.04

In this tutorial we learn how to install rbd-mirror on Ubuntu 20.04. rbd-mirror is Ceph daemon for mirroring RBD images Ceph daemon for mirroring RBD images Ceph daemon for mirroring RBD images

Introduction

In this tutorial we learn how to install rbd-mirror on Ubuntu 20.04.

What is rbd-mirror

rbd-mirror is:

Ceph is a distributed storage system designed to provide excellent performance, reliability, and scalability.

This package provides a daemon for mirroring RBD images between Ceph clusters, streaming changes asynchronously.

Package: rbd-mirror Architecture: amd64 Version: 15.2.12-0ubuntu0.20.04.1 Priority: optional Section: universe/admin Source: ceph Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Ceph Packaging Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 9544 Depends: ceph-common (= 15.2.12-0ubuntu0.20.04.1), librados2 (= 15.2.12-0ubuntu0.20.04.1), libc6 (>= 2.28), libgcc-s1 (>= 3.0), libgoogle-perftools4, libstdc++6 (>= 9) Filename: pool/universe/c/ceph/rbd-mirror_15.2.12-0ubuntu0.20.04.1_amd64.deb Size: 2440712 MD5sum: 34967932b20a01f58619727756481ce0 SHA1: 39b64080ce65e3a1173ca4d08dd22de5518c3620 SHA256: 9ad40eaf5b3e910f8e233a8ac245dfec99c30dca5eb213049e1c669d5069dec3 SHA512: 2045c6307a8e2fcd33fc2a859e757b747494fae1a22a209de890ba4625f91053e7d049bc9a9fada44525d2b71719d3e88a9c7268303bd59ff9cdc251fe99ddb4 Homepage: http://ceph.com/ Description-en: Ceph daemon for mirroring RBD images Ceph is a distributed storage system designed to provide excellent performance, reliability, and scalability.

This package provides a daemon for mirroring RBD images between Ceph clusters, streaming changes asynchronously.

Package: rbd-mirror Architecture: amd64 Version: 15.2.1-0ubuntu1 Priority: optional Section: universe/admin Source: ceph Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Ceph Packaging Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 9463 Depends: ceph-common (= 15.2.1-0ubuntu1), librados2 (= 15.2.1-0ubuntu1), libc6 (>= 2.28), libgcc-s1 (>= 3.0), libgoogle-perftools4, libstdc++6 (>= 9) Filename: pool/universe/c/ceph/rbd-mirror_15.2.1-0ubuntu1_amd64.deb Size: 2414940 MD5sum: ede1d7f2c1fe79c86118d4e1368eaad0 SHA1: 4a090c939be0f2c585537aa357e1ef29fa496c09 SHA256: e3a3eace634e47a550be5bb3af6dc3d2fae76b4d995138e6e1a1718636aa35c4 Homepage: http://ceph.com/ Description-en: Ceph daemon for mirroring RBD images Ceph is a distributed storage system designed to provide excellent performance, reliability, and scalability.

This package provides a daemon for mirroring RBD images between Ceph clusters, streaming changes asynchronously.

There are three methods to install rbd-mirror on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install rbd-mirror Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install rbd-mirror using apt-get by running the following command:

sudo apt-get -y install rbd-mirror

Install rbd-mirror Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install rbd-mirror using apt by running the following command:

sudo apt -y install rbd-mirror

Install rbd-mirror Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install rbd-mirror using aptitude by running the following command:

sudo aptitude -y install rbd-mirror

How To Uninstall rbd-mirror on Ubuntu 20.04

To uninstall only the rbd-mirror package we can use the following command:

sudo apt-get remove rbd-mirror

Uninstall rbd-mirror And Its Dependencies

To uninstall rbd-mirror and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove rbd-mirror

Remove rbd-mirror Configurations and Data

To remove rbd-mirror configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge rbd-mirror

Remove rbd-mirror configuration, data, and all of its dependencies

We can use the following command to remove rbd-mirror configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge rbd-mirror

References

Summary

In this tutorial we learn how to install rbd-mirror package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.