I am trying to find if the ZFS filesystem has added support for Trim to Raid 5? I am setting up an SSD array in Raid 5. I also would like to know if there is any good software raid 5 alternatives to an LSI raid controller card? Keep in mind, I am using ZFS on Ubuntu.

migrated from stackoverflow.com Sep 22 '12 at 23:43

This question came from our site for professional and enthusiast programmers.

  • 1
    IMHO it is a little early to implement SSD RAID - the I in RAID is meant for Inexpensive! :-) - seriously, the benchmarks I've seen are not that encouraging compared to more established alternatives (like battery powered disk controller with lots of cache). – Paulo Scardine Sep 21 '12 at 20:18
  • I just found a great video. I learned that ZFS discourages use of a raid controller. youtube.com/watch?v=0Ug1qCXvZDg – Nathan Sire Sep 21 '12 at 20:27
  • So you are essentially saying to use a raid controller with flash memory for cache, similar to how one of these new pci express flash drives operate right off the pci bus lanes, which give giga bytes of read/write sequential speed? – Nathan Sire Sep 21 '12 at 20:29
  • 1
    1) In fact the large disks (several TB) could take so long to sync in a traditional RAID that you risk a second disk failing (fatal!); 2) No, IMHO you should use traditional disks with lots of cache unless you have and application where performance is above reliability (like large video processing); – Paulo Scardine Sep 21 '12 at 20:34
  • I see. I am going to setup a small amount of storage in raid 0 for compiling Java. 3 x 64 gig ssd's. So I am going for performance on that. And I will stick with traditional drives and raid 5 on my home lab server where I need long term storage for my repos etc... – Nathan Sire Sep 21 '12 at 20:47

TRIM and DISCARD support for ZFS is currently in alpha. Pawel Dawidek wrote the initial code for FreeBSD and Etienne Deschamps ported it to Linux.

For ZoL, you need to compile the experimental code yourself and set the zfs_notrim=0 option.

This feature will be disabled by default for a long while on most ZFS systems, but it exists and it works.

  • Very helpful. Exactly what I wanted to know. – Nathan Sire Sep 23 '12 at 23:15
  • 1
    Hello from 2017. 5 years after and there is still no TRIM support in (a stable release of) ZFS on linux. – zerkms Jul 31 '17 at 9:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.