问题原文
原帖链接 · 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
