1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-01 19:17:57 +01:00
tldr/pages/linux/mdadm.md
2016-01-08 09:38:59 +01:00

27 lines
588 B
Markdown

# mdadm
> RAID management utility.
- Create array:
`mdadm --create {{/path/to/raid_device_file}} --level {{ raid level }} --raid-devices {{ number of disks}} {{/path/to/disk_device_file}}`
- Stop array:
`mdadm -S {{/path/to/raid_device_file}}`
- Mark disk as failed:
`mdadm {{/path/to/raid_device_file}} -f {{/path/to/disk_device_file}}`
- Remove disk:
`mdadm {{/path/to/raid_device_file}} -r {{/path/to/disk_device_file}}`
- Add disk to array:
`mdadm {{/path/to/raid_device_file}} -a {{/path/to/disk_device_file}}`
- Show RAID info:
`mdadm -D {{/path/to/raid_device_file}}`