by PaulHoule · 6y ago · 0 comments
I have a PC tower server and realized off the bat that it would not be feasible to supply it with backup power for any worthwhile period of time. If the power goes out it will crash, but it runs on ext4 and ZFS and odds are very good it will come back when the power does and put itself back together.
I’ve tested all three extensively with unreliable media (raspberry pi kernel dev testing on an sd card) and ext4 was the absolute worst.
What is the best FS for microSD cards in your experience?
I wonder that most consumer SSDs are aimed to power loss safe (by implementing like CoW?) even without capacitor but I don't know the truth.
The flash translation layer in a SSD looks a lot like a journalling or log-structured filesystem, and without power loss protection capacitors you get similar data integrity guarantees: unexpected power loss may mean loss of recently written data (still in the drive's write buffers, and maybe stuff in partially-written NAND pages), but shouldn't cause catastrophic loss of data. You generally have more data at risk from being buffered in main system RAM by the OS than you do from the volatile/unprotected buffers in the SSD itself.
The SSD should never be erasing a block as part of a garbage collection process until the live data from that block has been committed to a new block.
I want one for work to keep the network and internet devices running, but it needs about 30 Watts continuously for say 24 hours, not hundreds of Watts for 30 minutes like a UPS for a server.
I presume a "trickle" power UPS would need to care about power efficiency?
As for my server, I have it on a UPS big enough to allow it to shut down (with some slack for battery degradation). That's all I really need.
If we are just talking about cable modem + wifi router + NAS, you cant be looking at more than 30 watts. Buck/boost DC-DC converters are upwards of 98% efficient, so you don't have a bunch of losses with that extraneous inverter/rectifier stage. All of this stuff can be purchased and assembled with minimal fuss.