1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 13:18:07 +01:00
tldr/pages/linux/mdadm.md

28 lines
581 B
Markdown
Raw Normal View History

# mdadm
2014-08-04 05:31:06 +02:00
> 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
2014-08-25 12:50:27 +02:00
`mdadm {{/path/to/raid_device_file}} -f {{/path/to/disk_device_file}}`
2014-08-04 05:31:06 +02:00
- remove disk
2014-08-25 12:50:27 +02:00
`mdadm {{/path/to/raid_device_file}} -r {{/path/to/disk_device_file}}`
2014-08-04 05:31:06 +02:00
- add disk to array
2014-08-25 12:50:27 +02:00
`mdadm {{/path/to/raid_device_file}} -a {{/path/to/disk_device_file}}`
2014-08-04 05:31:06 +02:00
- show RAID info
`mdadm -D {{/path/to/raid_device_file}}`