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

Re: regards the /



Am Donnerstag, 22. September 2011 schrieb lina:
> > Even low end SSD can do 2500 IOPS, 15x that of a 7.2k drive.  And
> > most SSDs are small.  So if you have an SSD in this runaway logging
> > scenario you could potentially fill the log filesystem in a matter
> > of minutes.
> > 
> > Moral of the story:  Keep /var/log on a separate filesystem for
> > laptops and desktops.  Keep it on a separate physical device on
> > servers.  With a RAID setup, a separate partition on the LUN/virtual
> > disk serves the same purpose.
> >
> >  Unrelated to this particular problem, but valuable knowledge
> >nonetheless,
> >
> > is to have a boot partition separate from the / partition as well.
> 
> What's the recommended reserved size for the /var/log partition. I can
> jotted down and take reference in future.

Logs usually compress well. Remember to setup logrotate for any non 
standard logs that you let services generate, e.g. for virtual hosts in 
Apache with own logfiles.

I fare quite well with:

mondschein:~> LANG=C df -hT | grep -v tmpfs
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/mapper/mondschein-debian
              ext4    2.0G  1.1G  809M  58% /
/dev/sda1     ext3    230M   31M  188M  15% /boot
/dev/mapper/mondschein-var
              ext4   1008M  243M  714M  26% /var
/dev/mapper/mondschein-varlog
              ext4    485M  118M  343M  26% /var/log
/dev/mapper/mondschein-home
              ext4   1008M  330M  628M  35% /home
/dev/mapper/mondschein-srv
              ext4    2.0G  996M  919M  53% /srv
mondschein:~>

If its on LVM you can adjust later.

This is a small private mail and web server with Apache 2, Postfix, Dovecot 
and policyd-weight.

You only need /srv when you put something in there. I have websites in 
there, cause I do think /srv/www is more proper location for it than 
/var/www that Debian uses.

And yes, I do recommend LVM - also for desktops and laptops since it does 
support passing through barriers / cache flushes.

-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7


Reply to: