Monday, April 11, 2011

Mdadm and LVM2

In order to create a software raid array on linux you must install mdadm. This can be done during the install of the distro using either an alternative install disc, a live disc, or ubiquity.

To mount an existing linux raid array:
1. Make sure mdadm is installed by using your package manager
  • In Ubuntu: $sudo apt-get install mdadm
2. Probe necessary modules
  • $sudo modprobe raid5 dm-mod
3. Scan and mount any detected arrays
  • $sudo mdadm --assemble --scan

If LVM is involved just make sure to install it first
  • $sudo apt-get install lvm2

No comments:

Post a Comment