How To Install drbdlinks on CentOS 7
Introduction
In this tutorial we learn how to install drbdlinks
on CentOS 7.
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. An init script is included which runs “stop” before heartbeat starts, and after heartbeat stops. This is done to try to ensure that when the shared partition isn’t mounted, the links are in their normal state.
We can use yum
or dnf
to install drbdlinks
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install drbdlinks.
Install drbdlinks on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install drbdlinks
using yum
by running the following command:
Install drbdlinks on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install drbdlinks
using dnf
by running the following command:
How To Uninstall drbdlinks on CentOS 7
To uninstall only the drbdlinks
package we can use the following command:
References
Summary
In this tutorial we learn how to install drbdlinks
on CentOS 7 using yum
and dnf
.