• Victor@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      6 days ago

      Was about to say, “or if you’re running Arch, the last time you updated the kernel or systemd version, so probably last week or summit.”

    • billwashere@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      6 days ago

      Yeah that’s about the only time I have to do reboots at work which are 99% linux. Well the production ones anyway.

      Or the other reason is my lab having power issues due to malfunctioning UPSes, faulty NEMA L6-30 plugs, janky 240v circuit breakers or… I’m beginning to think my lab is electrically cursed.

      • jj4211@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        5 days ago

        While technically the truth, it can be a hassle to make sure you restart all relevant services after updating a given library.

        I just like being able to restart underlying system to take care of any possible straggler without thinking, and the services broadly be provided by multiple systems so the “experience” is starting up through a rolling reboot

  • chronicledmonocle@lemmy.world
    link
    fedilink
    arrow-up
    18
    arrow-down
    1
    ·
    6 days ago

    Pretty sure everybody is missing the joke. The joke is that Debian packages are so stable and stale that you likely will need a reboot before an update.

    Also, it’s a joke…please patch your boxes, k?

  • RattlerSix@lemmy.world
    link
    fedilink
    English
    arrow-up
    15
    ·
    7 days ago

    I got obsessed with uptime in the early 2000s, but for my desktop Slackware box. It ran a bunch of servers and services and crap but only for me, not heavy loads of public users. Anyway, I reached 6 years of uptime without a UPS and was aiming for 7 when a power outage got me.

    • Mose13@lemmy.world
      link
      fedilink
      arrow-up
      18
      ·
      6 days ago

      Skill issue. Next time you can open up the computers power supply while it’s running, splice in a second power cable, and attach a UPS without powering down or getting electrocuted.

      For legal reasons, /s

  • Korhaka@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    19
    ·
    7 days ago

    Or if you have a UPS and backup generator or a house battery (do these need a UPS as well still?) it will tell you how long since you setup the system.

    • Crashumbc@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      1
      ·
      7 days ago

      I would suspect you would still want a UPS. I don’t think house “power” setups have the switch over speed even if they’re automatic. Most home generator setups are manual not sure about battery setups.

      • ragebutt@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 days ago

        My home generator is automatic but you still need an ups because the transfer switch and power on process for the generator isn’t instant. Takes like 10-30 seconds depending on how cold it is and how recently I serviced the generator.

        You also ideally need a higher quality ups that can handle the shitty power coming from a generator, although the overall ups doesn’t need to be as “hefty” as a result. My ups is the kind that has extra filtering and stabilization of incoming power. My old ups was a cheaper cyberpower and it died after a few months of generator usage (we lose power here roughly every 4-6 weeks, thus the auto generator). The cheaper cyberpower would be fine in the majority of home circumstances tbh otherwise.

      • JcbAzPx@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        6 days ago

        Pretty sure batteries can be set up for ups. One of the companies I worked for had part of the power for the building as ups. They used orange outlets to mark them. They constantly had to keep telling people not to overload it.

      • Korhaka@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        1
        ·
        6 days ago

        Battery should be automatic, but yeah not certain how quick the switchover is. At least you could go for the smallest capacity UPS there is as long as it can manage the wattage you are going with.

  • katy ✨@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    3
    ·
    6 days ago

    how long since the boss has been asleep so you can finally restart without them calling two seconds later cause they didn’t bother reading the scheduled downtime email

  • Valarie@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    7
    ·
    7 days ago

    At some point when I am less busy again I think I am gonna swap back to a debian based system because my experience on arch and red hat systems just hasnt been as good (this may be because I started on Debian based systems and keep trying to use commands that dont work on the other ones out of muscle memory)

    I get bored every so often and move all the important stuff to an external drive or a separate internal one and completely change my os

    I am on manjaro but I have also run arch, red hat, void, mint, Debian, Ubuntu and a bunch of others that I either put on laptops or something similar as messing around with devices

    Tails and slitaz have to be my favorite to run from a USB but peppermint isn’t the worst

    • Estebiu@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      2
      ·
      7 days ago

      I just did the contrary. Moved from debian to arch. After the update to trixie my network stack completely died somehow, so I’m going back to arch.

      • Valarie@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        1
        ·
        6 days ago

        I have had minimal issues from my manjaro desktop but I just dont like it as much as my mint based systems because everything feels wrong and I can barely remember how to update my graphics drivers on manjaro vs mint where I am confident I could run my entire system mostly command line from installs to updates and random other shit that I just can’t remember how to do through arch systems because I dont run them as hard for some reason

      • Gladaed@feddit.org
        link
        fedilink
        arrow-up
        1
        ·
        6 days ago

        A lot of windows errors are actually hardware acting up. Such as an aggressive overclock or random issues.

        An operating system cannot prevent that

  • ikidd@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    7 days ago

    Does NixOS apply kernel updates live? I can’t recall from when I used it.

  • Digit@lemmy.wtf
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 days ago

    On my Gentoo server, uptime:

    • 21:47:56 up 2455 days, 15:09, 1 user, load average: 0.00, 0.01, 0.00

    Solid.

    Would have been double that by now if not for the fire.

    • Victor@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      6 days ago

      You forgot to say “this is fine”, I take it?

      Joking aside, I hope you didn’t lose anything. Was it a big fire?

      • Digit@lemmy.wtf
        link
        fedilink
        English
        arrow-up
        3
        ·
        6 days ago

        Those who manage the dedicated server racks service kept my stuff intact. Thankfully. Just disrupted my uptime.

        [User “error” since, has cost me a TB of data. “Error”, fearquoted, because it was intentional… probably unnecessary clearing of space, partly regretted since.]

        I don’t know how big the fire was, happened over 1000 miles away from here.

        So, it really was fine. :3

  • nomad@infosec.pub
    link
    fedilink
    arrow-up
    245
    ·
    7 days ago

    Debian admin here. Even Debian gets regular kernel upgrades that like a reboot afterwards. Security updates are more important than uptime. Also regular testing for clean recovery after a reboot is a must so a power outrage doesn’t bring any new surprises with it. Also test your backup restores regularly.

    • pHr34kY@lemmy.world
      link
      fedilink
      arrow-up
      13
      ·
      7 days ago

      As someone running a UPS on my ubuntu server, “uptime” represents the time since the last kernel release, and not much else.

    • Zeroc00l@sh.itjust.works
      link
      fedilink
      arrow-up
      37
      ·
      7 days ago

      Novice homelaber here, is this just a case of apt update & upgrade or is there different commands for security and kernel updates? Also what’s your preferred backup/restore software? Thanks!

      • nomad@infosec.pub
        link
        fedilink
        arrow-up
        7
        arrow-down
        1
        ·
        7 days ago

        Kernel updates are usually held back and need to be selected manually. E.g. apt-get install linux-image-amd64.

        I prefer rsync for private backups and employ bareos in my company for all servers.

      • Ghoelian@piefed.social
        link
        fedilink
        English
        arrow-up
        30
        ·
        7 days ago

        Nope it’s just apt update & upgrade. Iirc apt tells you when the kernel was updated and needs a reboot as well.

          • jcr@jlai.lu
            link
            fedilink
            Français
            arrow-up
            2
            ·
            7 days ago

            Incredible that it’s not written everywhere, I always wanted to use something like this without the " update && upgrade" which looks like is not working oftentimes

            • TerraRoot@sh.itjust.works
              link
              fedilink
              arrow-up
              2
              ·
              6 days ago

              Is it really not written? I saw apt upgrade --update and knew the standard shortcut would be -u, but that didn’t work so I tried -U, bingo bongo off I went.

              • jcr@jlai.lu
                link
                fedilink
                Français
                arrow-up
                1
                ·
                6 days ago

                It am quite sure in the manual, but if you just look on the interwebz tutorials every command line just writes the full shebang. So you don’t look up the manual and get flabbergasted when you see this post. btw: if you are able to guess “what the standard shortcut would be”, you are a wizard Harry 🥳

            • JargonWagon@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              7 days ago

              Your note is very interesting about the difference between the commands and how autoremove will automatically remove stuff before or after the upgrade is performed. Should it always be done after, or are there instances when running it before is more beneficial? Is there any need to do both like this:

              # sudo apt --update --autoremove upgrade -y && sudo apt autoremove -y
              
              
              • Arthur Besse@lemmy.ml
                link
                fedilink
                English
                arrow-up
                2
                ·
                7 days ago

                I can’t really imagine a benefit to --autoremove except for keeping old packages a bit longer before removing them.

                Eg, if you run apt --update --autoremove upgrade -y once a day you’ll keep your prior-to-currently-running-version kernel packages a day longer than if you ran autoremove immediately after each upgrade.

                To make things more confusing: the new-ish apt full-upgrade command seems to remove most of what apt autoremove wants to… but not quite everything. 🤷

          • Samsy@lemmy.ml
            link
            fedilink
            arrow-up
            3
            ·
            7 days ago

            I configured restic once, forget about it and saved my files because it was making backups since forever.

          • zr0@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            1
            ·
            7 days ago

            Oh, never heard about it. A quick research showed me that restic is a very viable solution. Thanks for mentioning it, I added it to my comment.

            While researching, I also came across a fancy WebUI, which is mostly what non-CLI users want: backrest

            • Ekpu@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              edit-2
              5 days ago

              I am using restic and backrest on my yunohost server and I really like it! It is really set up and forget for me. Only the uploads to backblaze b2 are still triggered manually. Also did a full recovery from the backblaze repo (downloaded locally) without problems.

              Also just now heard about Zerobyte it is a backup solution based on restic and looks very good!

      • cRazi_man@europe.pub
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        7 days ago

        I’m not the person you asked the question of. I’m a fellow novice homelaber.

        I use Kopia to backup my data folders and Docker container data. Works really well. The project for this weekend is to set offsite backups to be uploaded to iDrive.

        When I update I use this:

        sudo apt update && \ sudo apt upgrade -y && \ sudo apt full-upgrade -y && \ flatpak update -y 2>/dev/null; \ sudo apt autoremove -y && \ sudo apt autoclean && \ sudo journalctl --vacuum-time=7d

    • FlexibleToast@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      7 days ago

      Yeah, people that brag about uptimes are just bragging about the fragility of their infrastructure. If designed correctly you should be able to patch and reboot infrastructure while application availability stays up.

      • Trainguyrom@reddthat.com
        link
        fedilink
        English
        arrow-up
        3
        ·
        7 days ago

        With an uptime of greater than 5 years I’m going to be concerned about the system potentially not coming back up after a reboot/power outage, especially for physical hardware

        At a bank I worked at, we had an old IBM Power server which was at that point purely used for historical data. It had multiple years of uptime and was of course a good 10+ years old. When we went to take it offline, we actually just disabled the nic on the switch so we could reduce the number of powercycles it would see in fear that it would not power on anymore. Theoretically the data on it is purely historical, backed up and not needed, but there was enough question marks on each of those fronts we just played it safe

    • Pika@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      7
      arrow-down
      2
      ·
      7 days ago

      I haven’t had a kernel update on Debian that triggered the “you should restart” message in quite some time. I was under the understanding that most newer systems now use splicing at the kernel level to not require periodic reboots.

      • nomad@infosec.pub
        link
        fedilink
        arrow-up
        1
        ·
        7 days ago

        Check for the existence of the for containing packages that recommend a reboot. Debian does not do live patching like Ubuntu does. Not least because updates to firmware are usually not applied until reboot. Also even if that were the case, regular checks for healthy reboots make sense.

      • CrazyLikeGollum@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        7 days ago

        I haven’t seen it in a while either, but also, if there is a kernel update, uname -s always returns the old kernel until a reboot.