How To Install safelease on Fedora 34

safelease is Legacy locking utility for VDSM

Introduction

In this tutorial we learn how to install safelease on Fedora 34.

What is safelease

Safelease is a legacy cluster lock utility used by VDSM. It is based on the algorithm presented in the article “Light-Weight Leases for Storage-Centric Coordination” by G Chockler and D Malkhi.

We can use yum or dnf to install safelease on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install safelease.

Install safelease on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install safelease using dnf by running the following command:

sudo dnf -y install safelease

Install safelease on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install safelease using yum by running the following command:

sudo yum -y install safelease

How To Uninstall safelease on Fedora 34

To uninstall only the safelease package we can use the following command:

sudo dnf remove safelease

safelease Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/8c0b9e2ff84716bbbfac7c8cbed42e5e3f8464
/usr/libexec/safelease
/usr/libexec/safelease/safelease
/usr/share/doc/safelease
/usr/share/doc/safelease/AUTHORS
/usr/share/doc/safelease/README
/usr/share/licenses/safelease
/usr/share/licenses/safelease/COPYING

References

Summary

In this tutorial we learn how to install safelease on Fedora 34 using yum and dnf.