Post data recovery, need help with future stable bootdrive

I recently bought 2 Patriot 220 2Tb SSDs, ne oof them failed upright the ther one passed, after some latency hiccups on boot. So i added it to my LVM on my homeserver tower PC as i needed storage fast.

7 months later , my ssh sesssion started to return input/output errors and no coommand can be executed without this error showing up. I rebooted my PC hoping this would go away (i thought it was a bad cabe connection), but i wasn’t ablel to boot, it seems the boot process can’t create the LVM back as it is noot finding my Patriot SSD, i was dropped too the initramfs.

this PC is my homelab and i run multiple services like immich and multiple personal projects with unbacked databases and multiple services that i would like to backup. some files and services are working fine, but nayuthign that is partially or fully saved on the faulty drive seems too have issues.

i tried t. chatGPT it and it got me to use a live USB too check oon the “faulty” drive and it was fine, i was able to see the drives, activate the LVM and mount it, i wasn’t able to read all files some still show input/output error. So it asked too run fsck.

in the liveUSB, I ran fsck on the unmounted volume and it tok about 48h and didn’t finish, until i lost power home and it had to stop, i wasn’t able to rerun fsck initially (can’t recover the journal) but n subsequent reboots it did work. The problem here is that i can’t always see the drive when booting, running `lvs` commands randomly yields [unknown] drives as part of the LVM which gpt said cannot be used to run the fsck again.

Right now, i am looking at a full image backup f my entire LVM (~< 3Tb) and then easier recovery, of what can be recovered, but without having to deal with a failing SSD.
How can i do that? what are my options, chatgpt suggested “ddrescue” and “SystemRescue” image, but i woudl like to get a better help.

Note : i am going t buy an 8tb external HDD to use foor this backup, homefully this will not be a recovery bottleneck

Replyng t my own post here:
i was able to reduce the problem to a filesystem corruption, probably due to a same day (5h earlier) sudden power cut and/or a bad cable connection (non locking) with an HDD pushing on it due to the small case and short cables.

Fsck is still not finishing when using a live USB, and the cnstant pwercuts this perid make it impossible to finish anyway. I was able to recover the entire volume, around 3TB of data, in an image and have backed it up.
I also went through most of my cruicial data and backed it up, some files were gone from a minio instance but that’s about it.

My next idea is to have a better bootdrive, better physical connection (NVMe) or a sata SSDs raid setup to have a better resilience. I must say these are mostly my ideas of a more resilient setup especially against unpredictable power loss, i migth nt be tootally correct aboout them.

If you have any ideas on hardware i can use, even though this is not the best time in terms f pricing. for now here is what i can get with :

  • 1 8TB WD black **SN850X with $126 per TB (new)
  • 3 used 2TB WD black SN850X/P (USED) with $185 per TB of 4tb usable space in RAID 5 (1 drive redundency) + a PCIe to NVMe slution that can support RAID5

The minimum i need in space is 4tb right now, and i need some advise on what to get before i go through with recovering int a new install.
Thanks**