Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Spinning rust still typically holds advantages for archival storage, as well.

There was literally a headline on the front page here a few days ago re: data degradation of SSDs during cold storage, as one example.



The article in question: "Unpowered SSDs slowly lose data" https://news.ycombinator.com/item?id=46038099


I missed that earlier post to ask a question that always bugs me... do SSDs, when powered on, actually "patrol" their storage and rewrite cells that are fading even when quiescent from the host perspective?

Or does the data decay there as well, just as a function of time since cells were written?

In other words, is this whole focus on "powered off" just a proxy for "written once" versus "live data with presumed turnover"? Or do the cells really age more rapidly without power?


My understanding based on my readings of the previous post is there are no hardware level checks. SSDs need to be power cycled every so often and the integrity of the filesystem needs to be checked via something akin to zfs scrub. This should bs done on a monthly basis at minimum.

If you are paranoid about your data and not relying on filesystem level checks from ZFS or Btrfs you should ptobably avoid SSDs for long term storage.


>My understanding based on my readings of the previous post is there are no hardware level checks

There are "hardware level checks", it's just that they might assume regular usage. If your SSD is turned on regularly (eg. a few hours a day at least), your files are probably fine, even if you never read/scrub your rarely read files. If it is infrequently used, you're right that you probably have to do an end-to-end scan to make sure everything gets checked and possibly re-written.


Is the same true for USB flash drives? Do they rely on the OS to scrub/refresh them?


"probably" does the heavy lifting here.


I mean, obviously? SSDs and HDDs randomly fail for all sorts of reasons beyond random bitflips, so properly working ECC isn't enough to guarantee your files are "fine". Even if you're using something like ZFS, it's possible for the one of the underlying drive to experience ECC errors, and have another drive fail before that can caught. If your parity factor is 1 or less (eg. RAIDz1), you'll also experience data loss.


I was researching that topic a little bit a while ago but with no usable outcome. The aim was to find out how to cope with SSDs as backups. Is it enough to plug them into a power connection once in a while so the firmware starts the refresh cycle? Do I need to do something else? How often does it need to be plugged in? Thankful for any pointers ...


> Data degradation of SSDs during cold storage

Why is that? I'd have expected solid-state electronics to last longer at low temperatures.

Or is it precisely that, some near/superconductivity effects causing naughty electrons to escape and wander about?


They mean powered off, not physically cold. Electrons escape the NAND flash over time and if the device is not active it's not refreshing them.


It's not super conductivity but instead quantum mechanics.

High capacity hard drives nowadays use heat and strong magnetic fields to write patterns into the platter. It's pretty stable just sitting around doing nothing.

High density multi level NAND involves quantum tunneling a few electrons using a strong electric field into an electrically insulated bit of semiconductor. Over some time the electrons tunnel their way out, but usually this only ends up actually happening if too much writing damaged the insulation.


Oh, so would actual cold (low temperatures) prevent/reduce that phenomenon?


Yes


By cold, I think they mean "powered off", not "low temperature".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: