For the second time I've lost a drive after physically touching my FreeNAS machine. The first time was when I popped open the case to upgrade the RAM, and now it's happened after I physically drove the server to my parent's house to let it replicate a few terabytes that got out of sync when they suspended their internet service for a few months. I'm now planning on replacing the SATA cable and case (a Node 804) due to this reoccurring problem (the cable in question has to make three very sharp turns and I suspect it's being worsened by the sliding action of the drive tray dock). I've already reattached it and am running a long smart test to verify the drive's ok.
As for what happens, I start getting checksum errors and FreeNAS starts crashing because it swaps on data disks (a behavior I plan to correct the next time I rebuild my pool*). When I fix the cable I can't wipe or re-partition the disk because FreeBSD happily finds and uses that swap partition since the drive works fine and FreeNAS seems to not let me reuse the disk if I just wipe the data partition, so I've had to physically put the drive in a USB enclosure and wipe it from my Windows laptop before replacing it and resilvering. Is there a better way to do this?
* I understand that disabling swap is "strongly discouraged". It's already caused a dozen crashes on my machine due to the prior SATA cable issue (the initial symptom was crashing during boot after installing new RAM, so it took me a bit to figure out). I've never been keen on using swap in any OS in any application, with the sole exception of running Samba and a dozen other services on a hacked router with 16 MB of RAM when I was a poor college student. Why use ECC RAM at all if I'm just going to swap to an unreliable failing disk? I consider myself lucky that my pool is still intact, and suspect it's only because the swap wasn't being heavily utilized as it wasn't necessary in the first place. That said, I recognize that most of my irrational hatred for swap is due to glitchy 1990's OSes, so I'm open to other opinions -- albeit I do remain unimpressed with the cargo cult logic of this technological carry-over that made much more sense when it was developed in the 1950's than today.
As for what happens, I start getting checksum errors and FreeNAS starts crashing because it swaps on data disks (a behavior I plan to correct the next time I rebuild my pool*). When I fix the cable I can't wipe or re-partition the disk because FreeBSD happily finds and uses that swap partition since the drive works fine and FreeNAS seems to not let me reuse the disk if I just wipe the data partition, so I've had to physically put the drive in a USB enclosure and wipe it from my Windows laptop before replacing it and resilvering. Is there a better way to do this?
* I understand that disabling swap is "strongly discouraged". It's already caused a dozen crashes on my machine due to the prior SATA cable issue (the initial symptom was crashing during boot after installing new RAM, so it took me a bit to figure out). I've never been keen on using swap in any OS in any application, with the sole exception of running Samba and a dozen other services on a hacked router with 16 MB of RAM when I was a poor college student. Why use ECC RAM at all if I'm just going to swap to an unreliable failing disk? I consider myself lucky that my pool is still intact, and suspect it's only because the swap wasn't being heavily utilized as it wasn't necessary in the first place. That said, I recognize that most of my irrational hatred for swap is due to glitchy 1990's OSes, so I'm open to other opinions -- albeit I do remain unimpressed with the cargo cult logic of this technological carry-over that made much more sense when it was developed in the 1950's than today.