Simply adding another drive and GPU destroyed my ZFS Raid

manguy

New Member
Jul 5, 2024
26
2
3
Even though I was using disk uuid the whole way through (passing 2 raw disks by uuid to a vm, then making a zfs raid inside the VM using by-id), adding another drive and a new gpu caused my 8TB of data to be destroyed because something in the ubuntu startup process apparently tried to write to the raw drives when it failed to mount the zfs pool. Just a warning to others that even with using uuid, adding a new device can fubar your system. I hate the anti-christ (linux and/or ZFS).
 
Last edited:
Even worse. After adding the new NVME and GPU, and running into this issue where my ZFS pool with my 8tb of data refused to mount and said one of the two drives was corrupted, I consulted chatGPT for how to fix it, explaining to it adamently that there is no way my HDD magically died when I installed the NVME and GPU, and it was probably just some linux garbage about devices being renamed. After 2 hours of trying this and that, chatGPT said it was fubar and I should delete the raid and start fresh, so I did. After doing so, I then had issues creating the new raid as now the second drive (same one with the issue) refused to join the raid and had issues such as no UUID being assigned to it at all. Then chatGPT said "maybe the sata cable needs to be re-seated. If so, whoopies". Of course, I reseat the cable, and the drive now works and so chatGPT recommended I give up and erased my 8tb of data when it just needed to be reseated.

I hate the anti-christ (chatGPT)
 
Just a warning to others that even with using uuid, adding a new device can fubar your system. I hate the anti-christ (linux and/or ZFS).
IMHO this is a good warning on why you should not use complex setups and instead KISS.

I assume you used the passtrough for TrueNAS?
Proxmox is a great Hypervisor, TrueNAS is a great NAS. Both have different hardware needs and it is often times cheaper to get one system for each.
Virtualizing always adds a layer of complexity, I personally think virtualizing TrueNAS is way too risky.

I consulted chatGPT for how to fix it
chatGPT is a LLM. LLMs babble stupid text that seems appropriate in the situation. Only fraudsters call it AI, since it isn't AI.
Since these fraudsters changed the meaning of AI, the new word is now AGI. But it isn't AGI yet (and probably will never be), so it isn't intelligent nor does not understand context.

A great prompt for chatGPT is: Tell me a children story with a crocodile and his best friend a rabbit.
A bad prompt for chatGPT is: Anything related to facts, IT, or things that require context.
 
Last edited:
IMHO this is a good warning on why you should not use complex setups and instead KISS.

I assume you used the passtrough for TrueNAS?
Proxmox is a great Hypervisor, TrueNAS is a great NAS. Both have different hardware needs and it is often times cheaper to get one system for each.
Virtualizing always adds a layer of complexity, I personally think virtualizing TrueNAS is way too risky.


chatGPT is a LLM. LLMs babble stupid text that seems appropriate in the situation. Only fraudsters call it AI, since it isn't AI.
Since these fraudsters changed the meaning of AI, the new word is now AGI. But it isn't AGI either, so it isn't intelligent nor does not understand context.

A great prompt for chatGPT is: Tell me a children story with a crocodile and his best friend a rabbit.
A bad prompt for chatGPT is: Anything related to facts, IT, or things that require context.
My goal with proxmox is to be able to have my Ubuntu server running non-stop, while still being able to spin up windows for gaming (since it has a monopoly on many games). Maybe its best to then just install windows, and then install an Ubuntu VM inside it and never restart windows
 
My goal with proxmox is to be able to have my Ubuntu server running non-stop, while still being able to spin up windows for gaming (since it has a monopoly on many games). Maybe its best to then just install windows, and then install an Ubuntu VM inside it and never restart windows
Won't work. Windows (except Server editions) needs to be restarted now and then. If you fail to do so you will get Stange behavior.
I always restart once a week.
 
I don't understand your setup. You use proxmox or Ubuntu as hypervisor? Or do you use Ubuntu on top of Proxmox? Then I would simple use ext4 for ubuntu, since it's disk is on your proxmox ZFS?
I have proxmox as a hypervisor, then I have an ubuntu VM and a windows VM for gaming.
 
There is nothing in the Ubuntu boot process that ‘writes’ to your disks in a way that would screw up your ZFS. ZFS will attempt to self-assemble upon import, just adding a blank disk shouldn’t change anything unless you use force or some other ChatGPT suggestions. Not sure what you mean by uuid, because a disk is identified by a wwn and that is unique in hardware (probably matches partially to a serial), you may be referring to GPT UUID. Unless you’re doing something unholy (dd) you should not end up with duplicate GPT uuid either, unless you did do something like copy GPT information using fdisk+dd and ended up with duplicate partition table uuid.

Would love to see the output of that history command.

Actually just tried using ChatGPT and it indeed suggests dd + fdisk depending on the information you give it, it may give you a partial gdisk and zfs send/receive to make a mirror. Good job!
 
Last edited:
There is nothing in the Ubuntu boot process that ‘writes’ to your disks in a way that would screw up your ZFS. ZFS will attempt to self-assemble upon import, just adding a blank disk shouldn’t change anything unless you use force or some other ChatGPT suggestions. Not sure what you mean by uuid, because a disk is identified by a wwn and that is unique in hardware (probably matches partially to a serial), you may be referring to GPT UUID. Unless you’re doing something unholy (dd) you should not end up with duplicate GPT uuid either, unless you did do something like copy GPT information using fdisk+dd and ended up with duplicate partition table uuid.

Would love to see the output of that history command.

Actually just tried using ChatGPT and it indeed suggests dd + fdisk depending on the information you give it, it may give you a partial gdisk and zfs send/receive to make a mirror. Good job!
yea, my guess is that the drive was fine and just needed a re-seating, but after chatGPTs cursed tips, it made it so it was truly lost (the data)