Thanks to visit codestin.com
Credit goes to programming.dev

I utilize podman on my server for running my software.

Recently, I saw that my server ran out of space on its 8TB raid 10 array. Which immediately raised questions for me.

After using “duc” to analyze my drive. I found that podman had used 4 TB of storage space in “/var/tmp”.

Anyone else have this happen to them?

  • mlfh@lemmy.sdf.org
    Codestin Search App
    Codestin Search App
    Codestin Search App
    20
    ·
    17 hours ago

    Podman/docker leave behind old images, image layers, and containers that need to be cleaned up occasionally. podman system prune will do so.

    If 8TB was taken up quickly or unexpectedly, it might be something like a container failing to start and being recreated over and over, leaving each failed container behind as it goes. podman ps --all will list all containers, running or stopped. Before doing the system prune run that and podman image ls --all to see if anything looks amiss.

    • panda_abyss@lemmy.ca
      Codestin Search App
      Codestin Search App
      Codestin Search App
      6
      ·
      16 hours ago

      In my case I like to run most things in containers, and that includes a lot of ML shit. Since I’m on AMD nothing fucking works, so I accumulate all these huge multiple GB containers that don’t work because the whole ML/AI/GPU stack is a steaming pile.

      • panda_abyss@lemmy.ca
        Codestin Search App
        Codestin Search App
        Codestin Search App
        2
        ·
        14 hours ago

        I’m still on-boarding to Linux, and I was on bazzite but a bunch of settings were messed up.

        I migrated from docker to podman and for some reason half my flatpaks broke. Then my podman caches were insane, so my disk was filling up. And I had so e messed up settings, like sleep wasn’t working properly and would just show a black screen on resume.

      • LeFantome
        Codestin Search App
        Codestin Search App
        Codestin Search App
        4
        ·
        15 hours ago

        Almost everything you care about should be in /home so back that up. Many people keep it on a separate partition or drive to make changing distros (or reinstalling the existing one) easier.

        Most of your system config is in /etc so you may want to make a copy of that too.

        But the proper process on Linux is not to re-install. It should not be necessary.

        On top of this, part of the reasons to use containers is that you can create and destroy them at will while leaving your host tidy and stable. I use Distrobox quite a bit for this reason.

      • panda_abyss@lemmy.ca
        Codestin Search App
        Codestin Search App
        Codestin Search App
        2
        Codestin Search App
        1
        ·
        14 hours ago

        Not too bad.

        I kind of dislike the installer though (after you complete each step you have to go back to the main page to do the next one, it’s more a nitpick on the UI flow).

        Getting everything working is easy though, basically just click which disk to install and add a user profile. Click install and then click restart when done.

        Overall it feels modern and normal.

        If you have secure boot you might have to go do something in the bios, but there are usually guides, and windows would be the same.

  • LeFantome
    Codestin Search App
    Codestin Search App
    Codestin Search App
    4
    Codestin Search App
    2
    ·
    15 hours ago

    /tmp should be just that (temporary).

    There should not be any ill effects to completely empty /tmp

    Some distros put /tmp on a ram drive that gets created fresh (and empty) with each reboot.