LVM Religious Wars

David Rosenstrauch darose at darose.net
Thu Apr 6 14:46:53 EDT 2006


Bill Ricker wrote:
>     How should I format things?
> 
> I can't say "should" but ... I like to have the dyanmic and the static 
> in separate filesystems. My Gentoo laptop is arranged like thus:
> 
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/hda2 967336 494896 423300 54% /udev 257684 136 257548 1% /dev
> /dev/hda1 102454 10778 86386 12% /boot
> /dev/mapper/vg0-usr 10321208 8194256 1602664 84% /usr
> /dev/mapper/vg0-var 5242716 905552 4337164 18% /var
> /dev/mapper/vg0-tmp 2064208 46248 1913104 3% /tmp
> /dev/mapper/vg0-home 35208888 915868 32504504 3% /home
> none 257684 0 257684 0% /dev/shm


I tend to do similarly, but just not with entire trees like /usr, /var, 
etc.  Rather I take specific sub-dirs that:

1) are being used for data
2) are being used for custom-installed software (i.e., non distro or 
package system installed), or
3) are starting to grow very large (and threatening to use up the space 
allocated for my / partition) - e.g., the package cache

and put those on logical volumes:

/dev/sda3 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw,size=1G)
/dev/sda1 on /boot type ext3 (rw)
/dev/mapper/vg1-lvpacmancache on /var/cache/pacman type ext3 (rw)
/dev/mapper/vg1-lvjava on /usr/local/java type ext3 (rw)
/dev/mapper/vg1-lvdocs on /usr/local/docs type ext3 (rw)
/dev/mapper/vg1-lvshare on /usr/local/share type ext3 (rw)

HTH,

DR



More information about the Discuss mailing list