34
submitted 3 months ago by julian_hoch@lemmy.ml to c/linux@lemmy.ml

This week, it finally happened. I think it’s the first time in 20 years that a hard drive has died on me without warning. And it was also the first time I was using an NVMe drive, but that could be a coincidence.

The drive was still under warranty (barely a year and a half old). I even had a spare lying around. But the true cost of restoration is, of course, my own labor. My planning had not been perfect (for such a remote event, as I had judged). However, it was easy enough. I simply installed NixOS from a USB loader and downloaded my configuration from my backup on my NAS (daily rsync jobs to the rescue). I also downloaded all the important files for my home directory. Then, it was simply a matter of adjusting a few things in the configuration file, rebuilding the system, and voilà. Well, except for a few things that didn’t work quite right for some reason and had to be manually fixed, but nothing major.

However, next time I want this to be even easier. It’s probably overkill to install a RAID controller and have multiple drives running in RAID1 or RAID5, but the restoration process is still too much manual work. I was thinking of regularly backing up my main drive on the block device level, so I would just have to swap out the drive and restore the delta from the backup. I’m not quite sure if that’s feasible or a good idea. For my personal system, I have to balance the investment of preparing for a disaster with the likelihood and impact of such an event. This seems like a good trade-off, but I would be curious to hear how other people prepare for drive failure.

you are viewing a single comment's thread
view the rest of the comments
[-] nanook@friendica.eskimo.com 1 points 3 months ago

The BIOS does not know about the RAID, the is why the EFI partition has to be a regular partition, but there is nothing forbidding more than one EFI partition so simply duplicating that across both drives ensures the same redundancy the RAID offers, but GRUB DOES know about RAID 1, so if you setup a raid1 array as the boot partition and then just write the boot block to both drives along with the EFI partition you can RAID everything except the EFI boot partition. Sorry your motherboard reduces your speed if you have more than one nvme, sounds very odd. Mine does share bandwidth if the SSD's are SATA but NOT if they are nvme.

this post was submitted on 03 May 2025
34 points (94.7% liked)

Linux

57120 readers
1115 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS