mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 16:13:31 +02:00
Merge pull request #221 from Like-all/master
mdadm - RAID management utility
This commit is contained in:
commit
0e581b2a95
1 changed files with 27 additions and 0 deletions
27
pages/linux/mdadm.md
Normal file
27
pages/linux/mdadm.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
#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}}`
|
Loading…
Add table
Reference in a new issue