This is the default mode, and is used primarily to add and remove devices. This is why raids 5&6 are created in degraded mode - if they weren't then any check of the raid would spew errors for areas that hadn't been written to.Ī bit of a misnomer, this mode takes care of all operations that change the size of an array, such as changing the raid level, changing the number of active devices, etc. It also fires off initialisation - making sure that the disks of a mirror are identical, or that on a parity array the parities are correct. As the name implies, it creates arrays, and writes the superblocks for arrays that have them. This is the first of the two modes you will use a lot. This is why you need an initramfs when booting off a raid array - because mdadm is a user-space program, if root is on an array then we have a catch-22 - we can't boot until we have root, and we can't have root until we've booted and can run mdadm. It scans the drives, looking for superblocks, and rebuilds all the arrays for you. Every time the system is booted, this needs to run. This is probably the mode that is used most, but you won't be using it much - it happens in the background. You will normally only use a few of them. As a linux-specific program there is none of this autoconf stuff - just follow the instructions as per the INSTALL file.ĭo not use Neil Brown's version unless he tells you to do so - he is no longer the maintainer and it is not kept up-to-date. In the absence of any other preferences, it belongs in the /usr/local/src directory. Git clone git:///pub/scm/utils/mdadm/mdadm.git If, however, you are having any problems it does help to be running the absolute latest version, which can be downloaded with This is a pretty standard part of any distro, so you should use your standard distro software management tool. There are a few things that need to be done by writing to the /proc filesystem, but not much. It manages nearly all the user space side of raid. ![]() Mdadm has replaced all the previous tools for managing raid arrays.
0 Comments
Leave a Reply. |