On 09/18/2013 02:04 PM, Peter Peltonen wrote:

Thanks Eric for your tips:

On Wed, Sep 18, 2013 at 8:54 PM, Eric Shubert <[email protected]
<mailto:[email protected]>> wrote:


    The following should reduce the overall i/o on your QMT:
    .) ext3/4 filesystem tweaks: dirindex, noatime


I was missing noatime. If someone else wonders if you can remount a live
LVM root partition without reboot, the answer is "yes you can": this is
how I did it:

mount -o remount,defaults,noatime /dev/VolGroup00/LogVol00 /

    .) put /var/qmail/simscan (scanning work area) on tmpfs.


  Nice idea! I already have mounted (I guess this is CentoOS default):

tmpfs                 1.6G     0  1.6G   0% /dev/shm

I could create a subdir there for simscan and then bind mount it, yes?

As I need to create a simscan dir there everytime I reboot the machine,
I'm wondering where should I create the dir:
would /etc/rc.d/rc.sysinit be the right place?

Here's how I did it, in /etc/fstab (one line):
tmpfs /var/qmail/simscan tmpfs size=256M,nodev,noexec,noatime,uid=clamav,mode=750 0 0


And now I started thinking, would it be a good idea to put qmail logs
there as well? The qmail startup/stop script could be made to copy the
logs in a "safe storage dir". I would loose the logs if the server
crashes, but I do not see that happening very often :)

That'd be possible, but I wouldn't go there quite yet.

Do you have the dir_index feature set? (use tune2fs)

--
-Eric 'shubes'


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to