TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

I only lost 10 minutes of data, thanks to ZFS

436 点作者 chromakode超过 1 年前

30 条评论

xet7超过 1 年前
With ZFS, he is better prepared than other WD and Sandisk SSD users.<p><a href="https:&#x2F;&#x2F;petapixel.com&#x2F;2023&#x2F;08&#x2F;08&#x2F;sandisk-portable-ssds-are-failing-so-frequently-we-can-no-longer-recommend-them&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;petapixel.com&#x2F;2023&#x2F;08&#x2F;08&#x2F;sandisk-portable-ssds-are-f...</a><p><a href="https:&#x2F;&#x2F;www.theverge.com&#x2F;22291828&#x2F;sandisk-extreme-pro-portable-my-passport-failure-continued" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.theverge.com&#x2F;22291828&#x2F;sandisk-extreme-pro-portab...</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37042587">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37042587</a><p><a href="https:&#x2F;&#x2F;www.theverge.com&#x2F;23837513&#x2F;western-digital-sandisk-ssd-corrupted-deleted-questions" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.theverge.com&#x2F;23837513&#x2F;western-digital-sandisk-ss...</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37188736">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37188736</a>
评论 #37231725 未加载
评论 #37235524 未加载
NoZebra120vClip超过 1 年前
Just before I exited the Linux world entirely, I was beginning to chip away at the iceberg known as btrfs, and it was fascinating. I saw so much promise in many of its features, for revolutionizing backups and organizing my disks and everything.<p>Now btrfs isn&#x27;t ZFS, but it has some feature parity and perhaps the &quot;poor man&#x27;s ZFS&quot;. It&#x27;s also much more reasonable to run on certain OS, due to the licensing, packaging, and in-kernel status of ZFS being kind of weird.<p>One memorable time I was encouraged to use ZFS was when I mentioned to the Linux User&#x27;s Group that I&#x27;d had to pull the power cord to reboot my computer, and I was roundly scorned for this foolish maneuver. But you may change your mind about the wisdom of doing either one when you consider that the system in question was a Raspberry Pi. Heh.
评论 #37230999 未加载
评论 #37230957 未加载
评论 #37232037 未加载
评论 #37232732 未加载
not_your_vase超过 1 年前
A few years ago we had capacitor plague. Are we living now the storage plague? It&#x27;s getting ridiculous that all storage is getting worse and worse. WD is making HDDs crappy with SMR, manufacturers says that 3 years operating time is already too much for SSDs and HDDs, and they don&#x27;t joke. I just had a Kingston SSD (okay, that was like 8 years old) and a portable WD HDD (~2 years old) die just this year.<p>The internet is full of problems lately about data loss and longevity issues.<p>I remember 20 years ago HDDs were not meant for eternity either, but they definitely outlived the usefulness of the computer that they were bought with...
评论 #37232139 未加载
评论 #37232114 未加载
评论 #37232314 未加载
评论 #37232439 未加载
评论 #37233020 未加载
xpe超过 1 年前
Very quick summary: The mastodon thread refers to <a href="https:&#x2F;&#x2F;zrepl.github.io" rel="nofollow noreferrer">https:&#x2F;&#x2F;zrepl.github.io</a> &quot;zrepl is a one-stop, integrated solution for ZFS replication.&quot;
评论 #37231165 未加载
评论 #37245887 未加载
predictabl3超过 1 年前
Zrepl is a big part of why I feel secure doing the digital nomad thing. A script, run nightlyish, opens a separate-headered LUKS-protected ZFS pool and then copies all snapshots over. That NVME enclosure lives in my &quot;purse&quot; that never leaves me sight&#x2F;body.<p>Between this and NixOS, I can provision a new <i>identical</i> laptop in about 10 minutes.<p>I recently added off-site replication as well, so even if I get completely devastatingly mugged, there&#x27;s still about zero chance of serious data loss.<p>Zrepl is absolutely brilliant software. Easy to run with, but incredibly sophisticated and powerful if you need all the knobs. I can&#x27;t praise it enough.
评论 #37231086 未加载
评论 #37231270 未加载
评论 #37230961 未加载
windows2020超过 1 年前
Could snapshotting the filesystem every 10 minutes have contributed to its death?
评论 #37230909 未加载
评论 #37230914 未加载
评论 #37230958 未加载
评论 #37230848 未加载
评论 #37231665 未加载
评论 #37231176 未加载
评论 #37230846 未加载
评论 #37233720 未加载
评论 #37230850 未加载
评论 #37231473 未加载
评论 #37230880 未加载
评论 #37231166 未加载
ChrisMarshallNY超过 1 年前
I tend to use Apple’s Time Machine incremental backup to a Synology spinning rust server. I also have an external SSD that I’ll mirror the internal drive to, if I’ll be doing anything dodgy, or upgrading my machine.<p>That works. TM restores can be quite slow, but almost all my important data is in Git (and hosted storage), so it’s not really been an issue. I just use TM every now and then, if I have a single file I want to backtrack.<p>I also have one of the notorious[0] SanDisk drives. I don’t use it for anything important. It just has some game storage. Since I’m a Mac user, games aren’t really much of a factor for me, and I won’t cry, if they croak.<p>[0] <a href="https:&#x2F;&#x2F;arstechnica.com&#x2F;gadgets&#x2F;2023&#x2F;08&#x2F;sandisk-extreme-ssds-are-worthless-multiple-lawsuits-against-wd-say&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;arstechnica.com&#x2F;gadgets&#x2F;2023&#x2F;08&#x2F;sandisk-extreme-ssds...</a>
评论 #37231349 未加载
评论 #37231079 未加载
DavidSJ超过 1 年前
<i>My snapshots are encrypted by the original computer (this is cool because the NAS can’t read them!). So I also needed to restore the encryption “wrapper key” to be able to use the backups.<p>Not gonna lie, it was pretty terrifying until I had my first confirmation I could decrypt the data.</i><p>Note: no bespoke backup method should be assumed functional unless you actually periodically check that you can restore data from it.
评论 #37231578 未加载
评论 #37231774 未加载
KyleSanderson超过 1 年前
bcachefs is the near future for Linux here. <a href="https:&#x2F;&#x2F;bcachefs.org&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;bcachefs.org&#x2F;</a>
评论 #37231522 未加载
评论 #37231484 未加载
评论 #37231421 未加载
justinclift超过 1 年前
&gt; Not gonna lie, it was pretty terrifying until I had my first confirmation I could decrypt the data.<p>Sounds like the process was a bit less tested and documented than optimal. For a home system or personal desktop that&#x27;s not super unusual.<p>You don&#x27;t want to be working out your restore procedure on the fly for production servers though. ;)
评论 #37232506 未加载
sandreas超过 1 年前
For every ZFS fan, I can recommend zfs-auto-snapshot[1]. I use it on my proxmox server[2] to auto manage snapshots incl throwing away old ones.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;zfsonlinux&#x2F;zfs-auto-snapshot">https:&#x2F;&#x2F;github.com&#x2F;zfsonlinux&#x2F;zfs-auto-snapshot</a><p>[2]: <a href="https:&#x2F;&#x2F;pilabor.com&#x2F;series&#x2F;proxmox&#x2F;restore-virtual-machine-via-zfs-snapshot&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;pilabor.com&#x2F;series&#x2F;proxmox&#x2F;restore-virtual-machine-v...</a>
评论 #37232774 未加载
minimalist超过 1 年前
For people who don&#x27;t want to use ZFS but are okay with LVM: wyng-backup (formerly sparsebak)<p><a href="https:&#x2F;&#x2F;github.com&#x2F;tasket&#x2F;wyng-backup">https:&#x2F;&#x2F;github.com&#x2F;tasket&#x2F;wyng-backup</a>
op00to超过 1 年前
I wonder how much he gained from entirely restoring the system versus simply reprovisioning (gasp, even manually reinstalling) and restoring needed files a will. I&#x27;m not sure there&#x27;s a lot of value in snapshotting and restoring stuff in a lost ssd situation tthat&#x27;s also available in mirrors across the world.
评论 #37230964 未加载
评论 #37231291 未加载
评论 #37230916 未加载
makach超过 1 年前
I read this piece as someone who just got lucky. He never tested it until he needed it. 10 minutes is good. Don’t let this story fool you to not take backups.
评论 #37232474 未加载
评论 #37232192 未加载
kristopolous超过 1 年前
I just have rsync running in a cronjob. How is this significantly different?<p>I imagine it is, but I don&#x27;t know how.
评论 #37230981 未加载
评论 #37231048 未加载
xpe超过 1 年前
For those that don&#x27;t know, there are many wonderful incremental backup solutions that don&#x27;t require ZFS. * For one, I personally recommend Restic (<a href="https:&#x2F;&#x2F;restic.net" rel="nofollow noreferrer">https:&#x2F;&#x2F;restic.net</a>) because of its deduplication.<p>* People on macOS don&#x27;t have ZFS, well... maybe they could? See <a href="https:&#x2F;&#x2F;github.com&#x2F;spl&#x2F;zfs-on-mac">https:&#x2F;&#x2F;github.com&#x2F;spl&#x2F;zfs-on-mac</a>
评论 #37231059 未加载
评论 #37232967 未加载
paldepind2超过 1 年前
I see that his NAS is using an external harddrive enclosure over USB. I&#x27;m really curious about how wise such a NAS setup is?<p>In some ways it seems very attractive as you can just get a low-power SoC (like a Raspberry Pi or a NUC) and hook it up to the external drives.<p>But there also seems to be many potential pitfalls. Like, how slow will a resilver be over the USB? Might it be unusable&#x2F;dangerously slow? How reliable is the USB connection? Does it perform to spec or might it cause weird issues? Can you get SMART info over the USB connection? Other issues?
评论 #37234723 未加载
shruggedatlas超过 1 年前
How could I backup using incremental atomic snapshots on Windows?
评论 #37231189 未加载
评论 #37231539 未加载
Helmut10001超过 1 年前
I wonder if zrepl could be run in WSL2 - would be nice to backup Windows computers as well using this approach.<p>At the moment, I use Nextcloud to sync data to my server. It is a more selective approach and Nextcloud is, per se, not a backup solution because not all files can be backed up.. and live-sync is always a half-baked backup solution.
评论 #37232892 未加载
copirate超过 1 年前
I&#x27;ve read that ZFS is less safe than other Linux filesystems if you don&#x27;t use ECC RAM, because it assumes that there are no memory errors and therefore doesn&#x27;t provide a tool to repair a filesystem corrupted by such errors. Is this true?
评论 #37233309 未加载
michaelcampbell超过 1 年前
&quot;I don&#x27;t backup my drives, I replicate them&quot;<p>&lt;sigh&gt; I mean, sure, he recognizes the difference which a lot don&#x27;t, and I guess yay for zfs here to save him, but this is just irresponsible if you value your data.
riku_iki超过 1 年前
spoiler: he has 10 minutes incremental backups.
评论 #37230897 未加载
ck2超过 1 年前
I really figured we&#x27;d have super easy hardware Raid1 in even consumer level PCs by now given how cheap drives are (and unreliable).<p>My SSD boot drive makes me nervous as heck, constantly backing it up.
curt15超过 1 年前
Was he able to back up and restore his boot&#x2F;ESP partition as well using ZFS, or did those need to be reprovisioned manually?
Kiro超过 1 年前
Am I the only one who doesn&#x27;t have any important data? If I lost everything today I would just start afresh and move on.
评论 #37232738 未加载
评论 #37232536 未加载
评论 #37237161 未加载
archo超过 1 年前
<a href="https:&#x2F;&#x2F;archive.is&#x2F;VPEAP" rel="nofollow noreferrer">https:&#x2F;&#x2F;archive.is&#x2F;VPEAP</a>
simonebrunozzi超过 1 年前
I would love to be able to do this on a MacOS, with the click of a button.
评论 #37245846 未加载
SoftTalker超过 1 年前
tldr: my drive died, and I had a backup.<p>zfs seems incidental to me. I could have a 10 minute cron job rsyncing changes from ext4 and been just as well off.
评论 #37232492 未加载
评论 #37234010 未加载
bomewish超过 1 年前
What&#x27;s the equivalent setup for a Mac user?
BearhatBeer超过 1 年前
I feel like a computer running ZFS and serving files, is fine. And it should itself be treated as a strage device with a full parallel backup even though this has cost.<p>But your computer shouldn&#x27;t run ZFS, that&#x27;s for the big boys upstairs. Code&#x27;s too big, it&#x27;s too hungry.