大网数据广告活动
服务器运维问答

Mixing mdadm RAID with partially power loss protected SSDs

· 52CE 我爱测

I have created a mdadm RAID 10 with 4 SSDs. 2 of those SSDs are consumer models and does not have the power loss data protection feature. At the RAID creation i have put 1 SSD with power protection in every RAID 1 pair. So every …

问题原文

原帖链接 · user2933212 · CC BY-SA 3.0

I have created a mdadm RAID 10 with 4 SSDs. 2 of those SSDs are consumer models and does not have the power loss data protection feature.

At the RAID creation i have put 1 SSD with power protection in every RAID 1 pair. So every RAID 1 pair has one consumer SSD and one enterprise SSD.

If the server has a power fault, how would the power loss protection affect the filesystem or the RAID consistency? I can imagine, that the RAID is not in sync anymore because SSD A - which is with power protection - has an other (newer) content than SSD B.

Could the power loss protection cause more damage or problems in this case?

已采纳解答

原帖链接 · Overmind · CC BY-SA 3.0

Yes, you may experience data loss. A real power loss protection would imply capacitors on the SSD. That's what enterprise-class ones should have, or an alternate mechanism just as viable.

Any SSD should to have some kind of protection against FTL (flash translation layer) corruption, or the entire SSD will be damaged resulting in total data loss.

Standard SSDs use a technique known as 'journaling' to prevent their FTL from becoming corrupted. This means that upon sudden power-loss, the SSD practically reverts to an earlier state, which comes in conflict with the flush cache command. In client computing (desktop, notebooks), there are 2 types of data defined: “data at rest” (data that has been physically saved to the storage media) and “data in flight” (pending writes - writes sent to the drive from the host computer but not yet committed to the storage media, or any write that is in progress, but is not yet complete, or in cache). In the case of power failure, the “data in flight” is gone.

In the enterprise-class SSDs, the capacitor circuits enable the SSDs to protect itself, to complete the pending / in-progress writes. The capacity is also enough to ensure that the FTL addressing table is properly saved to the NAND.

So, getting back to your case, in an unexpected power loss situation, the enterprise-class SSD will manage to write everything and have no losses while the other will likely have data losses. This will lead to RAID inconsistency.

What you should do is pair up the standard ones as an array and the enterprise-class ones as another. Keep the critical data on the protected ones and not that needed data (and pagefiles) on the standard ones.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-12-15)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。