On 07/03/2025 02:49, David Christensen wrote:
On 3/6/25 17:24, Maureen Thomas wrote:
I am running Debian 12 fulled updated. I keep getting a message saying that my /var is almost full.  What can I safely delete to make more room for it.  It is an HP Desktop Mo1-F3xxx, 8gb ram, Realtec Audio, AMD Ryzen 5 5600G.  I also have a 2TB Seagate HD plugged in for backups.

Any help will be greatly appreciated.

Moe

[cut]

Long term solution:

That sounds like the traditional problem of how to partition your disks -- no matter how you do it, one partition always fills up first.

[cut]

This is where tools like LVM where supposed to help us.

You can certainly install Linux in a single-partition layout and then your only limit is the physical size of the disk, but this runs into problems such as "logging ran amok and now I can't login" or "I added a second drive, how do I rebalance the space". LVM allows you do combine non-contiguous bits of disk space into partitions. However, as it's generally easier to expand filesystems than shrink them (some filesystems just CAN'T be shrunk, even offline), the "best practice" usually suggests allocating LESS THAN 100% of your drive to LVM volumes, so that you have some space to expand into once you know which partitions are filling up.

Systems such as BTRFS and ZFS take things a bit further by actually abandoning the idea of partitions and just supporting "filesystems". The amount of space in a, say, ZFS pool is shared among all filesystems. As you begin to populate one filesystem, the space consumed reduces the free space on the other filesystems.

Of course, this is cold comfort to the OP if they have already allocated all their space.

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to