<table cellspacing='0' cellpadding='0' border='0' ><tr><td valign='top' style='font: inherit;'>hhmm interesting....<br><br>you seem to have / on a md raid device, and not within lvm?<br><br>is that correct?<br><br>--- On <b>Thu, 31/7/08, Andy Smith <i><andy@lug.org.uk></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Andy Smith <andy@lug.org.uk><br>Subject: Re: [dundee] Ubuntu Install RAID 1 + LVM is a no go..<br>To: dundee@mailman.lug.org.uk<br>Date: Thursday, 31 July, 2008, 6:52 PM<br><br><pre>HI Lee,<br><br>On Thu, Jul 31, 2008 at 02:51:59PM +0000, Lee Hughes wrote:<br>> If I install an ubunutu machine, I go through manual partitioning, and set<br>up a raid 1<br>> mirror (using two disks). If I then tell lvm to setup on that drive (raid<br>device 0), the<br>> install then tried to parition the md device into two parts, a ext3 /boot<br>and the rest<br>> as
lvm.<br>> <br>> as we all know you can't partition raid devices, so them comes<br>meltdown.<br><br>Ah, OK. You *can* partition md devices, but perhaps this is not<br>supported from the installer (I've never tried).<br><br>Where you're going wrong is that you're using the entire disk device<br>as the RAID component. You need a /boot that is outside of LVM<br>because grub cannot boot from a logical volume.<br><br>So, what I advise you do is something like this, assuming that your<br>real disks are /dev/sda and /dev/sdb:<br><br>- Create an sda1 and sdb1 partition of about 256M, mark them as RAID<br> components<br><br>- Create sda2 and sdb2 using the rest of the disks and mark those as<br> RAID components<br><br>- Create md0 RAID-1 from sda1 + sdb1, use it as ext3 and mount on /boot<br><br>- Create md1 RAID-1 from sda2 + sdb2, use it as LVM PV<br><br>- Create LVM volume group from your md1 PV<br><br>- Put everything else inside that volume
group<br><br>> I've tried to be clever too and create two raid device 1, for /boot<br>and 1 for the lvm<br>> but the install just tried to partition again...<br><br>That's what I do and it works for me:<br><br>Filesystem Size Used Avail Use% Mounted on<br>/dev/md2 942M 468M 427M 53% /<br>varrun 1.7G 188K 1.7G 1% /var/run<br>varlock 1.7G 0 1.7G 0% /var/lock<br>udev 1.7G 124K 1.7G 1% /dev<br>devshm 1.7G 3.0M 1.7G 1% /dev/shm<br>lrm 1.7G 39M 1.6G 3%<br>/lib/modules/2.6.24-19-generic/volatile<br>/dev/md0 89M 60M 24M 72% /boot<br>/dev/mapper/stoli-data<br> 69G 33G 33G 50% /data<br>/dev/mapper/stoli-home<br> 20G 1.7G 18G 9% /home<br>/dev/mapper/stoli-usr<br> 7.9G 3.0G 4.6G 40% /usr<br>/dev/mapper/stoli-var<br>
7.9G 2.5G 5.1G 33% /var<br>> I presume you've all set up raid and lvm *after* the initial install<br>of the o/s<br><br>No, I did it from the installer.<br><br>Cheers,<br>Andy<br><br>-- <br>http://bitfolk.com/ -- No-nonsense VPS hosting<br>Encrypted mail welcome - keyid 0x604DE5DB</pre><pre>_______________________________________________<br>dundee GNU/Linux Users Group mailing list<br>dundee@lists.lug.org.uk http://dundee.lug.org.uk<br>https://mailman.lug.org.uk/mailman/listinfo/dundee<br>Chat on IRC, #tlug on dundee.lug.org.uk</pre></blockquote></td></tr></table><br>
<hr size=1>
Not happy with your email address?
<br> <a href="http://uk.docs.yahoo.com/ymail/new.html"> Get the one you
really want</a> - millions of new email addresses available now at <a
href="http://uk.docs.yahoo.com/ymail/new.html"> Yahoo!</a>