Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a little issue, every month the log folder fills up and stops my mail coming through. The poeple that build the server put it into a ridiculously small partition and have 2 home partitions. This is a proxy server, no-one logs onto it and I want to use one of the home folders to relocate the /var folder to.
You should look into the logrotate service to automatically prune your logfiles. Moving partitions will not solve your problem, the disk will still fill up eventually.
I am aware of the logrotate thing but it is not working, therefore the move is a band-aid solution at this stage, but also a logical one, when the files are moved, I can then work on getting logrotate to work correclty.
are logs really the only thing significantly filling up /var? You could relocate /var to a larger partition. You could also create a /var/log symlink relocating the logs somewhere else. or you could get logrotate working. make sure that /etc/logrotate.conf contains something like:
Hi,
is really necessary to relocate /var. If omitted, may even prevent the system from booting up. The simplest way is to copy whole /var content, cp -a /var/* /mnt/new_var and mount /dev/new_var_partition /var. /mnt/new_war was the previous /dev/new_var_partiotion mount point.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.