mdadm
RAID management utility. More information: <https://manned.org/mdadm>.
Install
- All systems
-
curl cmd.cat/mdadm.sh
- Debian
-
apt-get install mdadm
- Ubuntu
-
apt-get install mdadm
- Alpine
-
apk add mdadm
- Arch Linux
-
pacman -S mdadm
- Kali Linux
-
apt-get install mdadm
- CentOS
-
yum install mdadm
- Fedora
-
dnf install mdadm
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install mdadm
- Raspbian
-
apt-get install mdadm
- Dockerfile
- dockerfile.run/mdadm
- Docker
-
docker run cmd.cat/mdadm mdadm
powered by Commando
RAID management utility. More information: <https://manned.org/mdadm>.
-
Create array:
sudo mdadm --create /dev/md/MyRAID --level raid_level --raid-devices number_of_disks /dev/sdXN
-
Stop array:
sudo mdadm --stop /dev/md0
-
Mark disk as failed:
sudo mdadm --fail /dev/md0 /dev/sdXN
-
Remove disk:
sudo mdadm --remove /dev/md0 /dev/sdXN
-
Add disk to array:
sudo mdadm --assemble /dev/md0 /dev/sdXN
-
Show RAID info:
sudo mdadm --detail /dev/md0
-
Reset disk by deleting RAID metadata:
sudo mdadm --zero-superblock /dev/sdXN
© tl;dr; authors and contributors