UbuntuThis forum is for the discussion of Ubuntu Linux.
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 system that has very limited disk space on /var and everytime I attempt to do any updates to the system via update manager it was always error saying that there is not enough disk space. I wanted to know how I can change the download directory of the update manager to a partition with more space?
Last edited by metallica1973; 05-03-2010 at 06:55 PM.
I have a system that has very limited disk space on /var and everytime I attempt to do any updates to the system via update manager it was always error saying that there is not enough disk space.
How much stuff do you have in your /var/log/ directory?
I have noticed that, for whatever reason, Ubuntu seems to accumulate log files in /var/log/ a lot more than other distros that I use, like Slackware for example.
If you have a ton of log files in /var/log/, then just run from the terminal:
Code:
sudo rm /var/log/*
Note that you will get a bunch of errors saying that you can not remove the directories in /var/log/. This is ok; and it is what you want. You just want to remove the log files, and not the directories in /var/log/, like /var/log/apt/ for example.
I routinely run the above command in Ubuntu with no ill effects.
Also, how big is your root partition for Ubuntu? And do you have a separate home partition?
Hope this helps.
I made zoneminder use the /home directory for recording but I have to figure out why the /var/lib/mysql/zm is the way that it is. I think that I have accumilated garbage in there from before I made the change.
So did you try cleaning out the /var/lib/mysql/zm directory?
I am not familiar with Zoneminder, so I can not say what you would happen if you empty that directory. Certainly, though, you don't need all that stuff in there. Clean it out as much as you can and you should be good.
I have to see if ibdata and those log file can be iliminated.
PHP Code:
machine1@Security:~$ sudo ls -l /var/lib/mysql/ total 20532 -rw-r--r-- 1 mysql root 0 2010-04-29 13:39 debian-5.0.flag -rw-rw---- 1 mysql mysql 10485760 2009-12-09 14:24 ibdata1 -rw-rw---- 1 mysql mysql 5242880 2009-12-09 14:24 ib_logfile0 -rw-rw---- 1 mysql mysql 5242880 2009-01-01 19:05 ib_logfile1 drwxr-xr-x 2 mysql root 4096 2009-01-01 19:05 mysql -rw------- 1 mysql root 6 2009-01-01 19:05 mysql_upgrade_info drwx------ 2 mysql mysql 4096 2009-07-19 08:46 zm
I have to see if ibdata and those log file can be iliminated. thanks by the way to all.
PHP Code:
machine1@Security:~$ sudo ls -l /var/lib/mysql/ total 20532 -rw-r--r-- 1 mysql root 0 2010-04-29 13:39 debian-5.0.flag -rw-rw---- 1 mysql mysql 10485760 2009-12-09 14:24 ibdata1 -rw-rw---- 1 mysql mysql 5242880 2009-12-09 14:24 ib_logfile0 -rw-rw---- 1 mysql mysql 5242880 2009-01-01 19:05 ib_logfile1 drwxr-xr-x 2 mysql root 4096 2009-01-01 19:05 mysql -rw------- 1 mysql root 6 2009-01-01 19:05 mysql_upgrade_info drwx------ 2 mysql mysql 4096 2009-07-19 08:46 zm
I have to see if ibdata and those log file can be iliminated.
I would think that any log file could be eliminated. If there are any configuration files, or directories, in /var/lib/mysql/zm, then I would leave them alone. But any log file can certainly be eliminated.
Also, there may (hopefully) be some option in Zoneminder that can reduce the amount of log files that are created. If the Zoneminder folks have a wiki or some available documentation, then this would be a good place to start.
Zoneminder is an application that monitors cameras for movement, and records video data or snapshots when it sees movement.
It uses mysql to keep track of the data it gathers. It's neat.
Depending on how you have it set up:
- How many cameras, what field(s) of view?
- What sensitivity to movement ? (Spiders in front of cameras [they like the IR LEDs] can be a problem).
- How much is recorded, at what resolution, for how long, after it is triggered?
Etc....
.......It can soon collect a huge amount of data.
If this is for a "surveillance system" as you say, then you are going to have to decide at what point (probably determined by how old the data is) you can start throwing data away because it is no longer useful or relevant.
Another approach might be to delete the oldest records when the database is nearly at the limit of the available storage.
Just how much data you need to keep depends on your idea of "surveillance".
Just how much data you can keep depends on how much storage space you can afford.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.