2015-10-22 09:00:05 +02:00
|
|
|
# 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}}`
|