![]() |
PCDVD數位科技討論區
(https://www.pcdvd.com.tw/index.php)
- 儲存媒體討論區
(https://www.pcdvd.com.tw/forumdisplay.php?f=20)
- - 請教NAS的使用方式
(https://www.pcdvd.com.tw/showthread.php?t=1218036)
|
|---|
|
很棒的經驗分享. 但這件事沒那麼神, 純粹是案主找的資料救援太遜了.
問AI: does zfs storage metadata backup? AI 摘要: Yes, ZFS automatically stores multiple, redundant copies of its metadata (specifically 2-4 copies, including uberblocks) on-disk to protect against single-disk corruption. This redundant metadata is inherent to the filesystem, storing block pointers, file permissions, and directory structures directly on the data drives to allow for auto-repair. ZFS本身就有存2到4份的metadata備份, 在硬碟全沒事的情況下, 應該只要找到備份的metadata, 就能救回全部的資料. 如果連備份的metadata也全壞了, 只要以前曾做過snapshot, 也有得救. 問AI: does zfs keep old metadata? AI 摘要 Yes, ZFS keeps old metadata as long as it is referenced by an immutable snapshot. Due to its copy-on-write (COW) nature, when data or metadata is modified, ZFS writes new data to a new block rather than overwriting the old, preserving the previous state until all snapshots referencing it are destroyed. 以上這些問AI得到的答案其實都是在Rddit或StackOverFlow論壇裡有人發表的文章, 不是什麼密而不宣的高超技術. 實在是案主找的資料救援真的太遜了, 即使不熟ZFS, 連去網路找答案都懶. |
引用:
你這 AI 的回答幻覺很嚴重 ZFS 的 metadata 的備份數量怎麼會是 2~4 份? 這完全是看你的 pool 內有多少硬碟還有 raidz 架構有多少的冗餘來決定 |
2到4個backup應該是基於最基本配備的情況, 沒有disk mirror.
這應該不算幻覺, 只不過沒講清楚計算的基礎而已. |
引用:
Uberblock 數量會隨操作增加,不管什麼樣的架構都不會只有 2~4,甚至多到你數不完 metadata 是根據架構決定數量產生,這數字基本就絕對不可能是 2~4 因為這數目是基於 Mirror/Parity 算出來的,從來就不是固定數字 fb 那篇使用 12 顆硬碟做 raidz1,就至少 12 份 metadata 了 ai 的回答就是看到題目就直接寫答案然後算式都沒有 它唯一說對的只有保護機制的部分,然後冗餘的數量完全是錯的 這就是幻覺 然後 fb 那篇就純碎自己亂搞 怎麼會有人 12 顆硬碟做 raidz1?! 只有一個冗餘這心臟要多大? 然後這問題的嚴重性根本就只是一個小問題 因為原 po 外行,被無限放大而已 他自己貼出來的訊息是所有硬碟 online 但是 metadata 有問題 它已經提示你可以使用 -f 匯入了 匯入後自己再 scrub 就好了 結果放個一年讓 claude 換另一種方式做這件事... |
| 所有的時間均為GMT +8。 現在的時間是02:15 PM. |
vBulletin Version 3.0.1
powered_by_vbulletin 2026。