How To Install mdadm on Fedora 34
Introduction
In this tutorial we learn how to install mdadm
on Fedora 34.
What is mdadm
The mdadm program is used to create, manage, and monitor Linux MD (software RAID) devices. As such, it provides similar functionality to the raidtools package. However, mdadm is a single program, and it can perform almost all functions without a configuration file, though a configuration file can be used to help with some common tasks.
We can use yum
or dnf
to install mdadm
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install mdadm.
Install mdadm 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 mdadm
using dnf
by running the following command:
sudo dnf -y install mdadm
Install mdadm 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 mdadm
using yum
by running the following command:
sudo yum -y install mdadm
How To Uninstall mdadm on Fedora 34
To uninstall only the mdadm
package we can use the following command:
sudo dnf remove mdadm
mdadm Package Contents on Fedora 34
/etc/libreport/events.d/mdadm_event.conf
/etc/sysconfig/raid-check
/run/mdadm
/usr/lib/.build-id
/usr/lib/.build-id/98
/usr/lib/.build-id/98/e6bfe7cfc793098e4c183fcbbc287909aaa407
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/10842f011882085edbff9ee3a4ab0f0eabb60b
/usr/lib/systemd/system-shutdown/mdadm.shutdown
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/mdmonitor.service
/usr/lib/systemd/system/raid-check.service
/usr/lib/systemd/system/raid-check.timer
/usr/lib/tmpfiles.d/mdadm.conf
/usr/lib/udev/rules.d/01-md-raid-creating.rules
/usr/lib/udev/rules.d/63-md-raid-arrays.rules
/usr/lib/udev/rules.d/64-md-raid-assembly.rules
/usr/lib/udev/rules.d/65-md-incremental.rules
/usr/lib/udev/rules.d/69-md-clustered-confirm-device.rules
/usr/sbin/mdadm
/usr/sbin/mdmon
/usr/sbin/raid-check
/usr/share/doc/mdadm
/usr/share/doc/mdadm/mdadm.conf-example
/usr/share/doc/mdadm/mdcheck
/usr/share/doc/mdadm/syslog-events
/usr/share/licenses/mdadm
/usr/share/licenses/mdadm/COPYING
/usr/share/man/man4/md.4.gz
/usr/share/man/man5/mdadm.conf.5.gz
/usr/share/man/man8/mdadm.8.gz
/usr/share/man/man8/mdmon.8.gz
References
Summary
In this tutorial we learn how to install mdadm
on Fedora 34 using yum and dnf.