How To Install drbdlinks on Fedora 34
Introduction
In this tutorial we learn how to install drbdlinks
on Fedora 34.
What is drbdlinks
The drbdlinks program manages links into a DRBD partition which is shared among several machines. A simple configuration file, “/etc/drbdlinks.conf”, specifies the links. This can be used to manage e.g. links for /etc/httpd, /var/lib/pgsql and other system directories that need to appear as if they are local to the system when running applications after the drbd shared partition has been mounted. When running drbdlinks with “start” as the mode, drbdlinks will rename the existing files/directories and then make symbolic links into the DRBD partition, “stop” does the reverse. By default, rename appends “.drbdlinks” to the name, but this can be overridden.
We can use yum
or dnf
to install drbdlinks
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install drbdlinks.
Install drbdlinks 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 drbdlinks
using dnf
by running the following command:
sudo dnf -y install drbdlinks
Install drbdlinks 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 drbdlinks
using yum
by running the following command:
sudo yum -y install drbdlinks
How To Uninstall drbdlinks on Fedora 34
To uninstall only the drbdlinks
package we can use the following command:
sudo dnf remove drbdlinks
drbdlinks Package Contents on Fedora 34
/etc/drbdlinks.conf
/etc/drbdlinks.d
/etc/logrotate.d/drbdlinks
/usr/lib/ocf/resource.d/tummy
/usr/lib/ocf/resource.d/tummy/drbdlinks
/usr/lib/systemd/system/drbdlinksclean.service
/usr/libexec/drbdlinksclean
/usr/sbin/drbdlinks
/usr/share/doc/drbdlinks
/usr/share/doc/drbdlinks/README
/usr/share/doc/drbdlinks/WHATSNEW
/usr/share/licenses/drbdlinks
/usr/share/licenses/drbdlinks/LICENSE
/usr/share/man/man8/drbdlinks.8.gz
/var/lib/drbdlinks
/var/lib/drbdlinks/configs-to-clean
References
Summary
In this tutorial we learn how to install drbdlinks
on Fedora 34 using yum and dnf.