{"id":104,"date":"2020-09-01T14:20:52","date_gmt":"2020-09-01T13:20:52","guid":{"rendered":"https:\/\/blog.boscolab.de\/\/blog.boscolab.de\/?p=104"},"modified":"2022-10-27T13:46:24","modified_gmt":"2022-10-27T11:46:24","slug":"sun-fire-x4540-for-zfs","status":"publish","type":"post","link":"https:\/\/blog.boscolab.de\/?p=104","title":{"rendered":"Sun Fire X4540 for ZFS"},"content":{"rendered":"\n<p>Vor einiger Zeit kam ich \u00fcber Twitter User <a href=\"https:\/\/twitter.com\/smay4finger?s=20\">smay4finger<\/a> (Danke Stefan) an zwei Sun Fire X4540 Server. Diese wurden von Sun Microsystems speziell f\u00fcr das ZFS (Zettabyte File System) entwickelt. Das X4500 System ist zwar schon etwas in die Jahre gekommen, eignet sich aber sehr gut um mit ZFS zu experimentieren. Besonders interessant ist die BETA von <a href=\"https:\/\/www.truenas.com\/truenas-core\/\">TrueNAS CORE<\/a>, welche die neuste Version von <a href=\"https:\/\/www.openzfs.org\">OpenZFS<\/a> mitbringt. TrueNAS CORE verspricht viele Verbesserungen in der Performance und eine neue Version von FreeBSD. Die genauen Infos dazu stehen im diesem <a href=\"https:\/\/www.ixsystems.com\/blog\/truenas-12-0-performance\/\">Blogbeitrag<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"688\" src=\"https:\/\/blog.boscolab.de\/wp-content\/uploads\/2020\/09\/truenas-core-sun-fire-x4540-1024x688.png\" alt=\"\" class=\"wp-image-114\" srcset=\"https:\/\/blog.boscolab.de\/wp-content\/uploads\/2020\/09\/truenas-core-sun-fire-x4540-1024x688.png 1024w, https:\/\/blog.boscolab.de\/wp-content\/uploads\/2020\/09\/truenas-core-sun-fire-x4540-300x202.png 300w, https:\/\/blog.boscolab.de\/wp-content\/uploads\/2020\/09\/truenas-core-sun-fire-x4540-768x516.png 768w, https:\/\/blog.boscolab.de\/wp-content\/uploads\/2020\/09\/truenas-core-sun-fire-x4540.png 1109w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Meine Erfahrung mit TrueNAS CORE auf der X4540 waren \u00fcberraschend gut, wenn man bedenkt das nur zwei AMD Opteron 2356 Quad-Core zum Einsatz kommen und das System mit relativ langsamen RAM arbeitet. Zum Test des ZFS Pools habe ich eine 10G Netzwerkkarte Chelsio CC2-N320E-SR auf einen von drei PCIe Ports verbaut. Der ZFS Pool besteht aus 44 Festplatten, eine L2ARC Cache SSD und LOG SSD. Der Pool wurde in 4 vdev unterteilt mit je 11 Platten im raidz2.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"858\" height=\"1024\" src=\"https:\/\/blog.boscolab.de\/wp-content\/uploads\/2020\/09\/truenas-core-sun-fire-x4540-zfs-1-858x1024.png\" alt=\"\" class=\"wp-image-113\" srcset=\"https:\/\/blog.boscolab.de\/wp-content\/uploads\/2020\/09\/truenas-core-sun-fire-x4540-zfs-1-858x1024.png 858w, https:\/\/blog.boscolab.de\/wp-content\/uploads\/2020\/09\/truenas-core-sun-fire-x4540-zfs-1-252x300.png 252w, https:\/\/blog.boscolab.de\/wp-content\/uploads\/2020\/09\/truenas-core-sun-fire-x4540-zfs-1-768x916.png 768w, https:\/\/blog.boscolab.de\/wp-content\/uploads\/2020\/09\/truenas-core-sun-fire-x4540-zfs-1.png 861w\" sizes=\"auto, (max-width: 858px) 100vw, 858px\" \/><figcaption>ZFS Replikation FreeNAS &gt; TrueNAS CORE BETA1<\/figcaption><\/figure>\n\n\n\n<p>Ein kurzer Test des 10G Netzwerks mit iperf ergab, dass \u00fcber 6G konstant \u00fcbertragen werden. Mehr gibt der PCIe nicht her. Nun habe ich von einer anderen FreeNAS Maschine eine ZFS Replizierung gestartet. Die \u00dcbertragungsgeschwindigkeit von FreeNAS zum TrueNAS war etwas ern\u00fcchternd lief aber mit 200-300 MB\/s stabil. Bei der Replizierung von TrueNAS zum FreeNAS zeigte sich eine starke Steigerung mit etwas \u00fcber 600 MB\/s im Peak.<\/p>\n\n\n\n<p>Die Versuche habe ich mit einem \u00e4lteren Entwicklungsstand von TrueNAS CORE durchgef\u00fchrt. Mit der BETA2 wurde jetzt eine weitere Performancesteigerung von bis zu 30{027d6993231faddb337e664597f716f9976dd523c8f25bd8576d8a04cde887d6} angek\u00fcndigt. Nach dem Update werde ich die Tests wiederholen und genauer dokumentieren.<\/p>\n\n\n\n<p>Warum experimentiere ich \u00fcberhaupt auf der alten Sun Fire X4540? Zum Einen m\u00f6chte ich zeigen, dass auch \u00e4ltere Hardware sehr gut f\u00fcr ZFS geeignet ist &#8211; zum Anderen bietet sie mir eine tolle M\u00f6glichkeit ZFS und seine Eigenschaften zu verstehen, ohne mein regul\u00e4res Live-System zu ver\u00e4ndern. Die verschiedenen Konfigurationsm\u00f6glichkeiten eines Pools zu testen, Auswirkungen von vdev, cache und log zu untersuchen sowie ein Gef\u00fchl f\u00fcr die Performance und Stabilit\u00e4t des Systems zu bekommen. Zum Abschluss noch ein Video von der X4540:<\/p>\n\n\n\n\n\t\t\t\t\t<style>\n\t\t\t\t\t\t.ytu_69f4ceca8ee9b { width: 100%; height: 100%; }\n\t\t\t\t\t\t.display_bottom.ytu_69f4ceca8ee9b .tac_activate { width: 100%; }\n\t\t\t\t\t@media only screen and (max-width: 100%) {\n\t\t\t\t\t\t.display_bottom.ytu_69f4ceca8ee9b .tac_activate { width: 100%; }\n\t\t\t\t\t\t.ytu_69f4ceca8ee9b { width: 100% !important;}\n\t\t\t\t\t}\n\t\t\t\t\t<\/style><style>.display_bottom.ytu_69f4ceca8ee9b .tac_activate {    position: absolute; bottom: 0px;} .display_bottom.ytu_69f4ceca8ee9b {     float: left; position: relative; } <\/style><div class=\"youtube_player display_bottom ytu_69f4ceca8ee9b\" thumb=\"https:\/\/blog.boscolab.de\/wp-content\/dsgvo-all-in-one-wp-pro\/thumbnails\/YC1znPotxsc\/YC1znPotxsc.png\"  videoID=\"YC1znPotxsc\" width=\"100%\" height=\"100%\" theme=\"light\" controls=\"1\" rel=\"0\" autoplay=\"0\"><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>English version:<\/p>\n\n\n\n<p>Some time ago I got two Sun Fire X4540 servers via Twitter user smay4finger (Thanks Stefan). These were developed by Sun Microsystems especially for the ZFS (Zettabyte File System). The X4500 system is a bit old, but it&#8217;s very good for experimenting with ZFS. Especially interesting is the BETA of TrueNAS CORE, which brings the latest version of OpenZFS. TrueNAS CORE promises many performance improvements and a new version of FreeBSD. The exact information about this can be found in this blog post.<\/p>\n\n\n\n<p>My experience with TrueNAS CORE on the X4540 was surprisingly good, considering that only two AMD Opteron 2356 Quad-Core are used and the system works with relatively slow RAM. To test the ZFS pool I installed a 10G network card Chelsio CC2-N320E-SR on one of three PCIe ports. The ZFS pool consists of 44 hard drives, a L2ARC Cache SSD and LOG SSD. The pool was divided into 4 vdev with 11 disks each in raidz2.<br>A short test of the 10G network with iperf showed that over 6G is constantly streamed. The PCIe does not provide more. Next I started a ZFS replication from another FreeNAS machine. The transfer speed from FreeNAS to TrueNAS was a bit poor but ran stable around 200-300 MB\/s. Replication from TrueNAS to FreeNAS showed a strong increase with a little over 600 MB\/s at peak.<\/p>\n\n\n\n<p>I did the tests with an older version of TrueNAS CORE. With BETA2 a further performance increase of up to 30{027d6993231faddb337e664597f716f9976dd523c8f25bd8576d8a04cde887d6} has been announced. After the update I will repeat the tests and document them more precisely.<\/p>\n\n\n\n<p>Why am I experimenting on the old Sun Fire X4540 at all? On the one hand I want to show that older hardware is also very well suited for ZFS &#8211; on the other hand it gives me a great opportunity to understand ZFS and its features without changing my regular live system. To test the different configuration options of a pool, to investigate the effects of vdev, cache and log and to get a feeling for the performance and stability of the system.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vor einiger Zeit kam ich \u00fcber Twitter User smay4finger (Danke Stefan) an zwei Sun Fire X4540 Server. Diese wurden von Sun Microsystems speziell f\u00fcr das ZFS (Zettabyte File System) entwickelt. Das X4500 System ist zwar schon etwas in die Jahre gekommen, eignet sich aber sehr gut um mit ZFS zu experimentieren. Besonders interessant ist die &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[5,25,24,26,27],"class_list":{"0":"post-104","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-sonstiges","7":"tag-freenas","8":"tag-sun-fire","9":"tag-truenas","10":"tag-x4540","11":"tag-zfs","13":"without-featured-image"},"_links":{"self":[{"href":"https:\/\/blog.boscolab.de\/index.php?rest_route=\/wp\/v2\/posts\/104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.boscolab.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.boscolab.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.boscolab.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.boscolab.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=104"}],"version-history":[{"count":3,"href":"https:\/\/blog.boscolab.de\/index.php?rest_route=\/wp\/v2\/posts\/104\/revisions"}],"predecessor-version":[{"id":397,"href":"https:\/\/blog.boscolab.de\/index.php?rest_route=\/wp\/v2\/posts\/104\/revisions\/397"}],"wp:attachment":[{"href":"https:\/\/blog.boscolab.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.boscolab.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.boscolab.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}