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

SSD or HDD for server

· 52CE 我爱测

Issue I have read many discussions about storage, and whether SSDs or classic HDDs are better. I am quite confused. HDDs are still quite preferred, but why? Which is better for active storage? For example for databases, where the…

问题原文

原帖链接 · genderbee · CC BY-SA 4.0

Issue

I have read many discussions about storage, and whether SSDs or classic HDDs are better. I am quite confused. HDDs are still quite preferred, but why?

Which is better for active storage? For example for databases, where the disk is active all the time?

About SSD.

Pros.

  • They are quiet.
  • Not mechanical.
  • Fastest.

Cons.

  • More expensive.

Question.

  • When the life cycle for one cell of a SSD is used, what happens then? Is the disk reduced by only this cell and works normally?
  • What is the best filesystem to write? Is ext4 good because it saves to cells consecutively?

About HDD.

Pros.

  • Cheaper.

Cons.

  • In case of mechanical fault, I believe there is usually no way to repair it. (Please confirm.)
  • Slowest, although I think HDD speed is usually sufficient for servers.

Is it just about price? Why are HDDs preferred? And are SSDs really useful for servers?

社区高分解答

原帖链接 · John Mahowald · CC BY-SA 4.0

Solid state for everything hot: interactive use, databases, anything online. Spindles as cheap warm storage, only for not-quite-cold archives or infrequently accessed data. In particular, HDDs in a staging area before backups are archived to tape.

Different media types for hot versus cold also helps with some diversity. A data loss flaw in a brand of SSD controller would be much worse if it took out both online and backup data. Unlikely, but spindles and tape are cheap anyway so why take the risk.

The failure mode of any particular device is not important, as long as the arrays stay redundant and backed up. Usually the procedure is to replace a drive with any symptoms of failure. Experiment with repairing them in your test systems, where any catastrophic failure does not impact production services.

File system is a matter of personal preference. While there are SSD optimized file systems, something you know and can repair may be more important.

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

资料来源与适用范围

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

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

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