Mdadm Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian

Mdadm Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian

mdadm

RAID management utility.

Maintainer: Debian mdadm maintainers



Section: admin

Install mdadm

  • Debian apt-get install mdadm Click to copy
  • Ubuntu apt-get install mdadm Click to copy
  • Alpine OS apk add mdadm Click to copy
  • Arch Linux pacman -S mdadm Click to copy
  • Kali Linux apt-get install mdadm Click to copy
  • CentOS yum install mdadm Click to copy
  • Fedora dnf install mdadm Click to copy
  • Raspbian apt-get install mdadm Click to copy

RAID management utility.

How to use mdadm?

Below are few example commands for mdadm that you can use in the terminal.

Create array:
mdadm --create /path/to/raid_device_file --level raid_level --raid-devices number_of_disks /path/to/disk_device_fileClick to copy
Stop array:
mdadm -S /path/to/raid_device_fileClick to copy
Mark disk as failed:
mdadm /path/to/raid_device_file -f /path/to/disk_device_fileClick to copy
Remove disk:
mdadm /path/to/raid_device_file -r /path/to/disk_device_fileClick to copy
Add disk to array:
mdadm /path/to/raid_device_file -a /path/to/disk_device_fileClick to copy
Show RAID info:
mdadm -D /path/to/raid_device_fileClick to copy
Install the latest version of mdadm in Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora and Raspbian from terminal. To install the mdadm just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of mdadm from the respository and install it in your computer/server.