[LUNI] Setting up / on an LVM

Jay Strauss me at heyjay.com
Wed Feb 9 16:28:05 CST 2005


Trev Peterson wrote:
> Hey Jay,
> 
> I was debating this a while ago myself and ended up putting the root
> partition on a separate mirrored partition because /etc/lvm/lvm.conf
> will be available upon successful boot and with LVM allowing resizing of
> partitions (if you use the correct filesystems) you can
> create /var, /usr and /home and grow them as needed.  If you put
> everything (other than boot) on one large LVM volume you will need to
> load the lvm modules, and sometimes /dev/ nodes to make it work (at
> least I needed to when booting off the 2004.3 gentoo install disk).  All
> in all keeping root on a separate mirrored partition and creating the
> other partitions with 50% or more of the volume unallocated seems to
> give me good flexability.
> 
> My setup is
> - /boot on a raid1 partition (md)
> - grub configured to chainload /dev/hda1 with /dev/hde1 as a backup
> 
> If I need to do maintenance I boot the Gentoo 2004.3 CD and then can
> mount either hda1 or hde1 directly (without loading the md module).  If
> one drive dies it still boots and runs OK but maintenance is not such a
> pain.
> 
> Hope this helps,
> 
> 	Trev

Trev, I just want to make sure I understand what you are saying.  Currently:

you have /boot on a mirror (md)
The rest of your system, including "/", on a lvg on top of a mirror (md)

But you'd suggest, instead:

"/" and /boot on an (md) by themselves
and put everything else on an lvg

Is that correct?

If so, my next question is, how big to make the / + /boot partition

Thanks
Jay


More information about the luni mailing list