💾 Archived View for benjaminja.com › log › 2024 › 01 › 16-upgrading_server captured on 2024-05-26 at 14:34:42. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2024-06-16)

-=-=-=-=-=-=-

If You Give a Hobbyist a Harddrive

2024-01-16

#Projects

I recently bought a 2TB hard drive for my home server. I use this server to host NextCloud and you can never have enough storage space.

This server is an Inspiron 560s from 2008. It only has two hard drive bays and already has two hard drives. There is however a dvd bay and a SD-card bay. The new hard drive fits just perfectly in the SD-card bay, so that’s its new home.

đź–Ľ Hard Drive Door

The hobbyist will need to try out a new file system

A few months back, I watched a video about ZFS and was convinced to give it a try. The only problem is that it is pretty daunting to even think about trying out.

There must be so much extra stuff that needs to be learned just to access the file system. Since ZFS is designed to work with other drives, will every drive be required to use ZFS?

These fears are not founded though. It is true that there is some extra software that is required in order to manage ZFS, but it is honestly so much easier than having to deal with parted, or fstab. All I needed to do to format and setup the new disk under ZFS was

zpool create MyPool sda

For me, the strongest selling point of ZFS is that it makes storage work closer to RAM. When running a program, I don’t need to specify which ram stick I want to have my software run in. It just figures it out for me. ZFS has this idea of pools where each pool is made up of one or more hard drives. When I put a file in the file pool, I don’t know which hard drive the data is going into, just that it is being taken care of for me.

I migrated a second 1TB drive in the server to ZFS and added it to my main pool. So instead of having 3 drives to manage, I have the boot drive, and a 3TB storage space.

While they’re at it, the hobbyist might as well upgrade the OS

I haven’t updated the OS since I originally setup the machine in 2018. I’m running Ubuntu 18.04 and it has recently gone out of long term support. There are still 4 years left of security maintenance, but I figure since I’m working on the machine now, I might as well upgrade to a newer OS. I would like to try out Debian 12.

I backed up the main drive to my newly created pool and got ready to upgrade the OS. There’s nothing like some spring cleaning where you can get rid of the residue from all your weird decisions you made in the past 6 years and start fresh.

Creating the installation medium was my first hurdle. For whatever reason, I always have trouble creating an USB installer. I primarily use Mac as my daily driver and I’ve pretty much always relied on the Raspberry Pi Imager for Mac. With newer updates to the software, it feels like it is a lot harder to burn a USB stick with anything that isn’t Raspbian. So I switched over to my windows machine and I went through several programs trying to find one that will actually burn an ISO and make the drive bootable. I settled for Rufus.

I don’t know why, but no matter what I have tried I just can’t get the BIOS to recognize my USB. The machine is old enough that it doesn’t know what UEFI is, but the one time I was able to get the machine to recognize the drive was when it was formatted with GPT which should be UEFI only. I have spent hours making tweaks and re-imaging that poor USB stick to no avail.

The hobbyist is ready to sleep now

At this point, it might be better to just give up for now. It’s not necessary that I upgrade the OS (In fact I foresee that it would cause more heartache trying to get everything up and running again from a fresh start). There are still several years left of support for the current OS and I got everything done that I was originally intending to do.

I’m really happy with how ZFS has turned out and I should just see how it goes moving forward. The next thing to figure out is how to get docker volumes to live in my pool. But that’s a problem for another day.

🔼 Log - 2024

đź“­ Message me

đź“ťOr mention this post