• Semi-Hemi-Demigod@kbin.social
    link
    fedilink
    arrow-up
    26
    arrow-down
    1
    ·
    2 years ago

    Sysadmin pro tip: Keep a 1-10GB file of random data named DELETEME on your data drives. Then if this happens you can get some quick breathing room to fix things.

    Also, set up alerts for disk space.

      • Semi-Hemi-Demigod@kbin.social
        link
        fedilink
        arrow-up
        5
        ·
        2 years ago

        It not going to bring the service online, but it will prevent a full disk from letting you do other things. In some cases SSH won’t work with a full disk.

    • Lem453@lemmy.ca
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      2 years ago

      Even better, cron job every 5 mins and if total remaining space falls to 5% auto delete the file and send a message to sys admin

      • Semi-Hemi-Demigod@kbin.social
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        Sends a message and gets the services ready for potential shutdown. Or implements a rate limit to keep the service available but degraded.

      • bug@lemmy.one
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 years ago

        At that point just set the limit a few gig higher and don’t have the decoy file at all