Use the mdadm command of linux to manage linux soft RAID
Do not know how to use linux's mdadm command to manage linux soft RAID? In fact, it is not difficult to solve this problem. Let the editor take you to learn how to solve it. I hope you will gain a lot after reading this article.
Mdadm command is the abbreviation of multiple devices admin, it is a standard software RAID management tool under linux, which can manage linux soft RAID, such as creating, adjusting and monitoring RAID.
The mdadm command, which can diagnose, monitor and collect detailed array information, is a separate integrated program rather than a collection of distributed programs, so it has a common syntax for different RAID management commands.
The mdadm command performs almost all functions without the need for a configuration file (and there is no default configuration file).
Syntax format: mdadm [parameters]
Common mode parameters:
Common parameters:
Reference example
Create a RAID0 using sda1 and sdb1, and the stripe size is 64KB:
[root@linuxcool] # mdadm-create / dev/md0-chunk=64-level=0-raid-devices=2 / dev/sda1 / dev/sdb1
Add hot spare sdc1 to md0:
[root@linuxcool ~] # mdadm / dev/md0-add / dev/sdc1
View the information and status of the super block in the component device sda1:
[root@linuxcool ~] # mdadm-examine / dev/sda1
Stop md0 from running:
[root@linuxcool] # mdadm-stop / dev/md0 Thank you for reading this article carefully. I hope the editor will share the use of linux's mdadm command to manage linux soft RAID content to help everyone. At the same time, I also hope you will support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!