tldr/pages/linux/mdadm.md
Agniva De Sarker 3da76e4150 Applying the snake_case convention throughout the repo (#967)
* Applying the snake_case convention throughout the repo

- Also removing the file extension where not needed
- Adding {{ }} on a few old pages

* Addressing concerns

- Added {{ }} where they were missed out
- Removed spaces inside {{ }}
- Reverting "file" to "filename" to make it clearer

* Fixing the comments on nc page
2016-07-22 22:24:06 +02:00

28 lines
585 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}}`