Are you looking into expanding beyond the basic “/” root and “swap” partitions in your Debian 12 installs for FreePBX ?
Or interested in sharing which partition/directory you’ve seen fill up the most ?
Collecting neat layouts below with something like:
df -h --total | tr -s '[:blank:]' | sed -e 's/^/|/' -e 's/ /|/g' -e 's/$/|/g' | sed '2i|-|-|-|-|-|-|-|'
I’ll go first!
Filesystem
Size
Used
Avail
Use%
Mounted
on
udev
7.8G
0
7.8G
0%
/dev
tmpfs
1.6G
161M
1.4G
11%
/run
/dev/mapper/vg-lvroot
9.2G
327M
8.4G
4%
/
/dev/mapper/vg-lvusr
9.2G
1.3G
7.5G
14%
/usr
tmpfs
7.8G
0
7.8G
0%
/dev/shm
tmpfs
5.0M
4.0K
5.0M
1%
/run/lock
tmpfs
7.8G
0
7.8G
0%
/sys/fs/cgroup
/dev/mapper/vg-lvvar
9.2G
486M
8.2G
6%
/var
/dev/mapper/vg-lvusrlocal
9.2G
1.7G
7.0G
20%
/usr/local
/dev/mapper/vg-lvsrv
9.2G
37M
8.6G
1%
/srv
/dev/mapper/vg-lvvarlog
9.2G
1.8G
6.9G
21%
/var/log
/dev/mapper/vg-lvvarspool
9.2G
46M
8.6G
1%
/var/spool
/dev/mapper/vg-lvhome
9.2G
5.4G
3.3G
63%
/home
/dev/mapper/vg-lvopt
9.2G
37M
8.6G
1%
/opt
/dev/mapper/vg-lvtmp
9.2G
141M
8.5G
2%
/tmp
/dev/sda2
923M
39M
821M
5%
/boot
/dev/sda1
952M
132K
951M
1%
/boot/efi
tmpfs
1.6G
0
1.6G
0%
/run/user/1000
total
120G
12G
104G
10%
-
1 Like
To clarify, that extra pipe work makes a pretty markdown table for posting in the forum.
Also, should qualify that this was an Asterisk install, not FreePBX – will cross-post to Asterisk forums soon – and it is running on Debian 9 for some time now but not directly connected to the internet.
billsimon
(Bill Simon)
October 17, 2024, 3:06pm
4
If you don’t slice and dice your disk so much then this isn’t usually a problem.
Nice!
But, the worst of it eg. no calls getting through, seems to happen with a single / root:
hello
i have checked the issue and it seem that there is a full disk problem. the mysql log returns an error 28
And i see that the root filesystem is full
root@pc47 ~]# df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/mapper/vg_pc47-lv_root
50397 47966 0 100% /
tmpfs 1860 0 1860 0% /dev/shm
/dev/sda1 485 34 426 8% /boot
/dev/mapper/vg_pc47-lv_home
1823105 196 1730301 1% /home
[root@pc47 ~…
Again:
Hey guys,
I’m in a bit of a bind. A few days ago things started going crazy on our phones, and we realized it was because we had forgotten to take some of the call recordings off of the server. We removed them, but space just keeps getting filled up. I’ve figured out that it is because of our asterisk logfiles.
How can I delete these safely, and keep them from getting to these huge sizes. like 9G in a day?
We are not currently able to use our system because of this. Thankfully it is happening…
And again:
I know this has come up, but I can’t figure this out. My disk is full. I only keep limited logs and 2 backups, don’t record calls. The issue seems to be the partitions, but I’d appreciate if someone can confirm before I go messing with that, and any guidance on where I should be looking for a how to.
I have Freepbx 16.0.40.8 installed on a Chromebox. Standard installation using the Iso.
My question is: looking at the below, can you tell me if I should be able to re-partition to provide mor…
To the point there are guides on the issue:
Version: Freepbx 14
If your system has run out of disk space, start by confirming that ibdata1 is the culprit.
A backup is recommended if you still have enough disk space to perform it. A disk that is maxed out will not be able to run the backup task.
SSH into your system using Putty or similar terminal software and check your disk. Username: root
Show disk info: df -h
cd /var/lib/mysql
du -shx ./* | sort -h
If ibdata1 is consuming all your data, it will show up as the largest file in …
Maybe the better course of action is to ask about disk layouts in the relevant recent posts on the matter:
Hello,
FreePBX 16/Asterisk 18.16.0
My Asterisk/MariaDB database and call recording storage is growing very fast with the volume of calls handled by our server, my plan is to install a secondary server and move all data older then 3 months to the secondary server.
How can I export and import all Data Records (CDR), Call Event Log (CEL) and call recordings from the primary to secondary server?
How can I defrag the MariaDB database to regain the disk space?
Clifford
…instead of trying to aggregate some “best practice” things into this current post that you are reading right now IDK
Well it keeps coming up… see today’s post on Disk usage biting somebody…
Riffing off that a bit, specifically the du invocation suggested in Disk usage - #2 by jmpg (thanks @jmpg ), maybe some would feel more comfortable posting the output of:
du -chd4 /boot /etc /home /opt /root /srv /tmp /usr /var | sort -rh | head -n20 | sed -e 's/^/|/' -e 's/\t/|/' -e 's/$/|/' | sed '2i|-|-|'
Such as this from a relatively fresh v17 install:
6.8G
total
3.9G
/var
2.8G
/usr
1.6G
/usr/lib
1.3G
/var/www/html/admin
1.3G
/var/www/html
1.3G
/var/www
1.3G
/var/lib
1.3G
/var/cache
1.2G
/var/www/html/admin/modules
1.2G
/var/cache/apt/archives
1.2G
/var/cache/apt
918M
/usr/lib/x86_64-linux-gnu
742M
/usr/share
702M
/var/lib/asterisk
621M
/var/lib/asterisk/sounds
394M
/usr/lib/modules/6.1.0-13-amd64
394M
/usr/lib/modules
389M
/usr/lib/modules/6.1.0-13-amd64/kernel
295M
/usr/bin