[KLUG Members] Need more space for /var

Peter Buxton members@kalamazoolinux.org
Fri, 16 May 2003 19:16:25 -0400


On Fri, May 16, 2003 at 05:23:13PM -0500, Bob Kanaley wrote:

> I need to get some more space for /var until I can get the time to
> rebuild the real mail server. I know the best answer to this is to use
> Logical Volume Manager to dynamically allocate space, but RedHat 7.0
> doesn?t support LVM. I don?t want to go through an OS
> upgrade/replacement and learn how to set up LVM while my mail server
> is down and I have 50 angry people standing outside my office. I need
> this fix to be as quick and clean as possible.

Find the biggest chunk of free space on a partition. Add a disk, if you like.
Shut down POP3/SMTP.
`mv /var/spool/mail /new/spot`.
Make sure you've preserved the permissions -- `ls -ld /new/spot/mail`.
`ln -s /new/spot/mail /var/spool/mail`.
Restart POP3/SMTP.

Should take about 3 minutes, with double-checking.

And you should make sure the mbox files are in one piece, and weren't
corrupted.

-- 
-126
You can fill my head with Gummi Bears,
but I won't talk! -- Tom Servo, K13.