this post was submitted on 26 Aug 2024
13 points (88.2% liked)

Linux

8111 readers
46 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 1 year ago
MODERATORS
 

I have a computer running what I think at the time was called Ubuntu Server (no GUI) that I installed Xfce on, making it essentially Xubuntu. I did this because it allowed me to use mdadm to set up RAID (4 drives; RAID 5) during the OS install.

My OS lives on an NVME drive, and I have my raid mounted at /Files.

I have lots of data in my RAID, and much (but not all!) is backed up to the cloud. There would be both emotional issues and lots of time required to fix things if I lose the RAID or the data on it.

(I am realizing as I write this that I put off upgrading so long, I can probably copy all the data to one 20TB drive (oof! That’s expensive) since they’ve gotten about as big as my 21.83TB volume.)

How safe is it to take the OS up on this offer?

New release '20.04.6 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

How hard is it to reestablish the RAID if it forgets it exists?

Is there anything else I can do to make this more likely to “just work”? (Like: don’t do it over ssh)

Are there other factors I am not thinking of?

top 4 comments
sorted by: hot top controversial new old
[–] Max_P@lemmy.max-p.me 8 points 2 months ago (1 children)

That's enough upgrades it could cause some issues, but I wouldn't expect it to be a problem with the RAID array itself, mostly applications and configs that don't work anymore because you're jumping 6 years into the future in terms of software versions. Some things like PostgreSQL you have to dump the data out, install the new version and load it back in, so that's one example of something that could break and would be expected to break.

I believe if you just boot the 24.04 installer it'll see the drives right away, they're pretty persistent. But failing that, you can assemble it manually with mdadm --assemble, or you can backup your /etc/mdadm.conf. That should give you some confidence that if something wrong happens with the Ubuntu install it will be easy to reinstall fresh and not lose your array. Just get it mounted readonly in the live ISO so you know how to get your data, and you'll feel a lot safer doing the upgrade.

[–] Zachariah@lemmy.world 2 points 2 months ago

Thank you! That command and file to backup are the kind of info I was after.

And I appreciate the reminder that applications and configs might not work. I plan to test everything after each upgrade (I don’t plan on jumping straight to 24.04).

I do already know the version of TigerVNC, for example, I’m using is not the same as the latest, and I’ve seen it works a bit different on my machines with newer OS versions. Also I seem to remember Firefox needs to be installed as deb not snap or it won’t work with TigerVNC. So I’ll make sure to backup my profile folder for Firefox.

This computer is mostly a file server, I’ll have to do an inventory of what software I’ve used on it over the years.

[–] catloaf@lemm.ee 7 points 2 months ago (1 children)

Boot a live image of the new version and see if it Just Works. It probably will.

If you can, back up the OS (and make sure a restore works) and try the upgrade. If you can just clone the OS to a new drive and upgrade that one so you can swap back, even better. I don't think there's anything like a RAID version upgrade that's going to prevent you from reverting.

[–] Zachariah@lemmy.world 3 points 2 months ago

I like the idea of cloning and upgrading the clone. If it works, then there’s the added benefit of having my OS on newer hardware. Thanks!