[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] How to change the size of Var folder?
- Subject: [ale] How to change the size of Var folder?
- From: ducson at wingfu.com (Nguyen Son)
- Date: Tue, 15 May 2001 17:59:12 +0800
Thanks Joseph for your helps
Really like your small procedure
----- Original Message -----
From: "Joseph A. Knapka" <jknapka at earthlink.net>
To: ale at ale.org
To: "Nguyen Son" <ducson at wingfu.com>
Cc: <ale at ale.org>
Sent: Monday, April 09, 2001 12:59 PM
Subject: Re: [ale] How to change the size of Var folder?
> 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
> > 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
> -- 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
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.