[ale] How to change the size of Var folder?

Joseph A. Knapka jknapka at earthlink.net
Mon Apr 9 00:59:32 EDT 2001


Nguyen Son wrote:
> 
> > You could, however -- strictly as a temporary hack -- copy
> > /var to a directory on a larger partition (say, /usr/new_var),
> > remove the /var directory (dangerous - probably best to be
> > in single-user mode for that), and then link /var to
> > /usr/new_var. The danger, of course, is that whatever is
> > filling up your /var partition now has the opportunity to
> > fill up /usr instead.
> 
> There are couple of big log files and i have emptied them all.
> Can you show me how to link /var to /new_var.
> I don't worry too much about fill up /usr as its size about 1249000 k
> available
> and /var has only 220000 k available

Unless the machine in question is a server, 200MB for /var should
be more than enough. If it is filling up often, something
is wrong (most likely there is some misconfigured software running
on your system). And if /var is filling up every day, then
/usr will fill up in five or six days given the partition sizes
you mentioned above.

Anyway, here's the procedure I use to do this kind of thing:

% cp -a /var /usr/new_var
# Reboot your machine in single-user mode. This is somewhat
# distribution-dependent, I think.
% umount /var   # May fail, don't worry about it.
% rmdir /var
% ln -s /usr/new_var /var

Again, let me emphasize that I don't recommend that you do this!

> It would be nice if I can control which thing should be logged, as most of
> the thing in log files as mailer-daemon mail which i don't think that it
> needs to log

I'm sure that kind of thing is controllable, but I have not configured
any mail daemon in a long time, so I can't tell you how to do it.

Good luck,

-- Joe
 
> TIA
> 
> Son
> 
> --
> To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.

-- Joe Knapka
"It was just a maddened crocodile hidden in a flower bed. It could
 have happened to anyone." -- Pratchett
// Linux MM Documentation in progress:
// http://home.earthlink.net/~jknapka/linux-mm/vmoutline.html
* Evolution is an "unproven theory" in the same sense that gravity is. *
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list