快閃記憶體斷電

快閃記憶體斷電

iam使用ssd來快取其他磁碟(flashcache模組),如果發生電源故障,寫入操作會突然停止並因為不完整的快取返回到裝置(sata磁碟)而導致壞磁區,所以有沒有辦法繼續從ssd取得快取伺服器啟動後到設備(磁碟),因為快取已經儲存在SSD上?

提前謝謝了

答案1

您需要先保護您的站點/設施電源。請使用尺寸合適、運轉時間充足的 UPS。

除此之外,我還是高品質 SSD 的倡導者。您希望使用具有超級電容器的優質 SSD 來保護傳輸中的資料。

如果您詢問一般快取持久性,那是另一個主題。

答案2

根據文件

It is important to note that in the first cut, cache writes are
non-atomic, ie, the "Torn Page Problem" exists. In the event of a
power failure or a failed write, part of the block could be written,
resulting in a partial write. We have ideas on how to fix this and
provide atomic cache writes (see the Futures section).

所以聽起來flashcache不能做你想做的事。

答案3

實際上,在使用回寫式快取方法測試 flashcache 後,我能夠在斷電或通常使用 flashcache_load 崩潰後繼續將 SSD 上已儲存的快取返回到快取磁碟。看起來官方文件已經過時了。

相關內容