Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an Ubuntu 9 Desktop system that I mainly use as a media server. I have a 2TB RAID5 and a 500GB RAID1, both using LVM. The OS drive is a 4GB CompactFlash card which has finally run out of space. I want to put in a larger CF card and install the latest version of Ubuntu. What do I need to do in order to attach these RAIDs to the new install?

share|improve this question
Since you're using Ubuntu for a server, I'd suggest you wait for the upcoming 12.04 LTS, which is now in beta1. There's no point in upgrading now. Get a larger CF card, backup current OS and restore to new larger card. Upgrade next month when 12.04 is released. – bsd Mar 4 '12 at 14:50
Also, 4GB should be enough, maybe moving /home and/or /opt onto the RAID/LVM might free up some space. – bsd Mar 4 '12 at 17:27

Do you mean that you have LVM volume groups configured on top of software RAID arrays? Or are you describing something else? Both the software RAID subsystem and LVM support auto-discovery and auto-assembly of devices; in most cases everything should Just Work. Assuming that you don't accidentally overwrite your RAID elements as part of your install, everything should be discovered automatically. You'll probably have to add entries to /etc/fstab by hand.

You can use the mdadm to assemble software raid devices. This document, while a little dated, has some useful instructions.

You can use the pvscan to discover LVM physical volumes, and you can use the vgscan and vgchange commands to discover and activate volume groups.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.