Hello!
My system disk is full, and wounder how I can find which files I can delete?? Is there any software like the ccleaner for the Windows I can run to remove all tmp, log and file after Upgrades and bad shutdowns??
Regards
Kåre!
Hello!
My system disk is full, and wounder how I can find which files I can delete?? Is there any software like the ccleaner for the Windows I can run to remove all tmp, log and file after Upgrades and bad shutdowns??
Regards
Kåre!
My system disk is full, and wounder how I can find which files I can delete?? Is there any software like the ccleaner for the Windows I can run to remove all tmp, log and file after Upgrades and bad shutdowns??
Regards
Kåre!
Well, first post the output of df -h , look at what is really full, then work your way down the hierarchy.
That should give you a start
apt-get clean and apt-get autoremove might also help by removing unneeded packages.
after running the df -h, I got the following;
rootfs 108G 101G 1.7G 99% /
udev 10M 0 10M 0% /dev
tmpfs 151M 284K 151M 1% /run
/dev/disk/by-uuid/76b1ce94-42e3-43f8...... 108G 101G 1.7G 99% /
and some more With 0% used
Do this:
rm /var/log/*.gz
And, give me results of this:
du -a /var | sort -n -r | head -n 10
The first commando, it says no such file or Directory
When running du, it gives the following;
104319160 /var
104133328 /var/log
38477492 /var/log/mail.log
38477492 /var/log/mail.info
25615464 /var/log/mail.log.1
1361316 /var/log/mail.warn
127028 /var/lib
108420 /var/log/mail.err
75112 /var/lib/apt
75080 /var/lib/apt/lists
You must have a typo. There is /var/log on every OMV system.
rm /var/log/*.gz
Try again.
Yes have the /var/log Directory, but nothing files or directory under there With *.gz
These files are way too big.
38477492 /var/log/mail.log
38477492 /var/log/mail.info
25615464 /var/log/mail.log.1
1361316 /var/log/mail.warn
Yes are many large files under /var/log, can I just delete them, or what do I do??
cp /dev/null filename
e.g.
cd /var/log
cp /dev/null mail.log
But you need to find out what is causing this problem. Did you set notifications???
Yes have set Notifications on error on disk and filesystem. Looks like me that it is mail which is the problem, and that could be that we have change isp, and haven't change the mail server on omv??
Can I use the cp /dev/null filename on every file under /var/log ?? Or is there some file which I don't must Clear/empty??
You just need to do it on the 4 mail files I listed above.
THANKS, THANKS
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!