tldr/pages/linux/mdadm.md

28 lines
580 B
Markdown
Raw Normal View History

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