If I’m building a machine with SSD’s as the only storage, and those SSD’s don’t have any power-loss protection, if the power is suddenly cut to the machine, there is a good chance that whatever data is in the DRAM cache of the SSD’s will be lost. My question is, with ZFS’s journaled write system, will the lost data be recognized by ZFS, or will the lost data never make it to the drive and as such will not be marked correctly written by ZFS, which would result in no data corruption?
In a nutshell, will ZFS on consumer SSD’s survive sudden power-loss with no data corruption?
We have a UPS, but we sometimes have long power outages from storms, and the UPS will eventually die. I know some ups can connect with USB, but we have too many devices connected to it for that to work.
There actually used to be problems with older SSDs where they could be completely bricked by unclean loss of power. The OpenZFS wiki Hardware page has some good info on SSDs and power loss protection: https://openzfs.org/wiki/Hardware#NAND_Flash_SSDs