Hard Drive Full - how and where to delete temp files ?

drmurdoch

Member
Joined
May 26, 2008
Messages
576
Reaction score
11
It's been a few years.
How ... where do I delete all my tmp files on the PBX ?
 

euser4life

Guru
Joined
Dec 18, 2007
Messages
223
Reaction score
0
You can go in and delete the asterisk logs

/var/log/asterisk/full

Probably any of the old gzipped ones as well "full.gz.1" etc....

Also if you use mondo for backups check the /mnt directories. Sometimes if mondo doesn't mount properly it will go to the local /mnt/foldername (can't remember the exact name) directory.

You can also check /var/lib/asterisk/backups and see if you need to delete some things from there.
 

drmurdoch

Member
Joined
May 26, 2008
Messages
576
Reaction score
11
this thread has great tips on how to track down where your plate is full and get some space. Happened to me (as noted above) by not realizing I had backups in background.

http://pbxinaflash.com/community/threads/db-error-connect-failed.7628/?t=7628

That's what happened to me.
I had 50 Mondo .iso backups.

To see where the largest (or fullest) directory is do this (as root):

cd /
du -sk * | sort -n

This will tell you which directories are the fullest, starting with the emptiest. Then start in that directory and work your way backwards.

I used this command to find the "largest directories".
It was a mondo backup directory.
I had 50, and I deleted 20 of them, with the rm command.

I determined all the files were created on Sunday. So I am saving two of the .iso files and deleting the rest.

to list hard drives and how full they are: df
to list a directory: ls
to delete a file: rm filename.ext
to delete an entire directory rm *.*
to delete mondorescue files mondorescue-10 to -19: rm mondorescue-1?.iso
 
Last edited by a moderator:

drmurdoch

Member
Joined
May 26, 2008
Messages
576
Reaction score
11
Last edited by a moderator:

dghundt

Guru
Joined
Nov 15, 2007
Messages
603
Reaction score
52
Note: when your PBX hard drive is full, you can still receive phone calls.
But you can't do anything database related (park calls, retrieve voice mails, etc.) ... any MySQL needs room to work.

Actually, I was unable to connect to sip extensions, so my system was down. See my post (referenced above) about stopping the backup cron job until you learn more about managing it (I do not).
 

blanchae

Guru
Joined
Mar 12, 2008
Messages
1,910
Reaction score
9
Open Webmin-System- Log File Rotation then select the Edit Global Options, you can select the number of old logs to keep. On my system it's 4.
 

tomsyr

Guru
Joined
Oct 26, 2007
Messages
266
Reaction score
1
mondotemp

I've also had the problem with Mondo filling up the HD. I've deleted the iso's but it looks like Mondo is still running in the backgound. How would I go about killing it?
The file mondotemp is continuing to grow - it's at 1,041,534,976 and counting...
I would like to delete that as well, but it's not closed...
thx
 

drmurdoch

Member
Joined
May 26, 2008
Messages
576
Reaction score
11
file up again, except this time I think it was the asterisk backups.
 

Members online

Forum statistics

Threads
25,782
Messages
167,509
Members
19,202
Latest member
pbxnewguy
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top