Drive Partition Layout Survey

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

Please qualify what

does for clarity over

df -h
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.

If you don’t slice and dice your disk so much then this isn’t usually a problem. :slight_smile:

Nice!

But, the worst of it eg. no calls getting through, seems to happen with a single / root:

Again:

And again:

To the point there are guides on the issue:

Maybe the better course of action is to ask about disk layouts in the relevant recent posts on the matter:

…instead of trying to aggregate some “best practice” things into this current post that you are reading right now :nerd_face: 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