[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: lvm on a single big partition or just a single big partition?



On Thu, Jun 04, 2009 at 07:23:19PM -0500, Zhengquan Zhang wrote:
> On Thu, Jun 04, 2009 at 09:39:42AM -0400, Douglas A. Tutty wrote:
> > On Wed, Jun 03, 2009 at 10:04:36PM -0500, Zhengquan Zhang wrote:
> > > On Wed, Jun 03, 2009 at 06:48:03PM -0400, Douglas A. Tutty wrote:
> > > > On Wed, Jun 03, 2009 at 11:44:00AM -0500, Zhengquan Zhang wrote:
 
> > I put /tmp on tmpfs, with encrypted swap (so that /tmp ends up encrypted
> > also).  Yes, /usr (4G) , /var (4-6G, depending ), and /home (encrypted)
> > are on separate LVs.  Sizes depend on what I'm doing.  /usr mostly holds
> > instaled packages so 4G is fine for my desktop system.  
> > 
> > I also have /var/tmp and /var/local as separate LVs, encrypted.  I keep
> > my backups in /var/local.  KDE keeps lots of otherwise private stuff in
> > /var/tmp.
> 
> Great setup, Thanks, Doug, so do you how much space(PE) do you leave
> unassigned for later use?

Since I only have two 36 GB drives, I don't leave any space unassigned.
My current box is an HP NetServer LPr, which has two hot-swap bays.  The
scsi drives are connected to an HP NetRaid card which is set up to
present two logical drives to the OS: one is raid1 (for the system), and
the other is raid0 (for /home and anything else that is routinely
backed-up and wouldn't cause a system crash if it died).  If I need more
space, I'll get an external scsi enclosure and move the hot-swap drives
to it (the NetRaid card only has one channel) and add more drives.  

Right now on this box I'm not acutally using LVM since I can do most of
what it can do with the NetRaid card.  I used LVM on my SATA-equipped
Athlon box that didn't have a raid card.

FYI, here's my df:


Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             477M  166M  311M  35% /
tmpfs                 506M   16K  506M   1% /lib/init/rw
udev                   10M  124K  9.9M   2% /dev
tmpfs                 506M     0  506M   0% /dev/shm
/dev/mapper/sdb2_crypt
                       26G  2.7G   24G  11% /home
/dev/sda3             2.4G  1.5G  863M  64% /usr
/dev/sda5             1.4G  874M  548M  62% /var
/dev/mapper/sda6_crypt
                       16G  4.4G   12G  28% /var/local
/dev/mapper/sdb1_crypt
                      952M   16M  937M   2% /var/tmp
tmpfs                 500M   68K  500M   1% /tmp

Doug.


Reply to: