Package:Mdadm

From Funtoo
Revision as of 00:10, March 3, 2016 by Dutch-master (talk | contribs) (adding mdadm to boot sequence)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Mdadm

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.


The mdadm tool manages MD devices, such as Linux Software RAID.

Installation

   Note

In most cases the package is pulled in during the kernel installation as a dependency when a RAID is present.

root # emerge mdadm

Configuration

Configuring mdadm is done via the /etc/mdadm.conf file. By default, after installation this file is entirely commented out. One may remove the comment hash # in front of the line that most suits the RAID in use and alter the line to point to the correct devices, or add a new line, based on the examples given.

To start mdadm at boot, add it to the default runtime level:

root # rc-udate add mdadm default

Not doing so results in a broken or unbootable system.

   Tip

If you're upgrading an existing system to Funtoo, backup the existing /etc/mdadm.conf file to a secure location and copy it back prior to rebooting into the new install.

   Tip

mdadm can be very tricky to administer for novices. Install Webmin and use its webinterface to create and use a new RAID.