by spudlyo · 10y ago · 0 comments
The HP RAID controller failed to detect corrupted writes on what I seem to remember were Intel SSDs. The only way we learned about failed SSD drives is when we started catching large numbers of DB page checksum errors, and by that time it was too late to do anything about it.
Operationally it sucked, swapping out drives is a lot easier maintenance than having to rebuild a DB from backup.
(I mean this as an honest question, I'm interested to know if there are performance or reliability gains to be had from a hardware controller)
Also, these machines were built by DB people, who have traditionally placed a lot of value in hardware RAID controllers, and to be fair, the HP controllers worked well with HDDs. Also ZFS wasn't a realistic option for production Linux in 2013. Me personally, I'm not a fan of exotic proprietary hardware, I much prefer working with JBOD disk setups and software RAID where appropriate.
Don't all enterprise SSDs come with their own backup capacitors?
Yes, but the cost of such drives makes rolling the dice with consumer grade drives appealing to some[1].
From the same thread, here's a word of warning from a Stackoverflow devops engineer[2] wrt to lack of capicitors on consumer grade drives and the perfect storm that can occur when UPS goes down in a power failure (unlike with spinning disks hardware RAID is unable prevent data corruption/loss in this case).
[1] https://laur.ie/blog/2015/06/ssds-a-gift-and-a-curse/
[2] https://laur.ie/blog/2015/06/ssds-a-gift-and-a-curse/#commen...
What is the point of all that complication if the block device is just going to throw away those guarantees? If we're giving up on power loss safety I can make a super fast filesystem by making fsync a no-op and keeping everything in ram until I feel like writing it.
Or would this functionality somehow be counteracted by a cache inside the SSD?
Perhaps filesystems should include a "ssd" mount option, because there might be more things to worry about (for example frequent writes wearing out the device).
They do. You can, for instance, mount a UFS filesystem "sync", which means that all writes are synchronous. I assume extX has a similar option ...
Also be careful with sync on SSD media; this is what the mount manpage says about the sync option:
> In case of media with limited number of write cycles (e.g. some flash drives) "sync" may cause life-cycle shortening.