{"id":3458,"date":"2014-01-26T21:28:54","date_gmt":"2014-01-27T03:28:54","guid":{"rendered":"http:\/\/icesquare.com\/wordpress\/?p=3458"},"modified":"2014-07-06T14:18:46","modified_gmt":"2014-07-06T19:18:46","slug":"how-to-stress-test-zfs-system","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/how-to-stress-test-zfs-system\/","title":{"rendered":"How to Stress Test ZFS System"},"content":{"rendered":"<p>If you have set up a ZFS system, you may want to stress test the system before putting it in a production environment. There are many different ways to stress test the system. The most common way is to fill the entire pool using dd. However, I think scrubbing the entire pool is the best.<\/p>\n<p>In case you are not familiar with scrubbing, basically it is a ZFS tool to test the data integrity. The system will go through every single file and perform checksum calculation, parity check etc. During scrubbing the entire pool, the system will generate a lot of I\/O traffic. <\/p>\n<p>First, please make sure that your ZFS is filled with some data. Then we will scrub the system:<\/p>\n<pre>sudo zpool scrub mypool<\/pre>\n<p>Afterward, simply run the following command to check the status:<\/p>\n<pre>\r\n#sudo zpool status -v\r\n  pool: storage\r\n state: ONLINE\r\n  scan: scrub in progress since Sun Jan 26 19:51:03 2014\r\n        36.6G scanned out of 14.4T at 128M\/s, 32h38m to go\r\n        0 repaired, 0.25% done\r\n<\/pre>\n<p>Depending on the size of your pool, it may take few hours to few days to finish the entire process.<\/p>\n<p>So how does the scrubbing related to the stability? Let&#8217;s take a look to the following example. Recently I set up a ZFS system which was based on 6 hard drives. During the initial setup, everything was fine. It gives no error or anything when loading the data. However, after I scrubbed the system, something bad happened. During the process, the system disconnected two hard drives, which made the entire pool unreadable (That&#8217;s because RAID1 can afford up to one disk fails). I was feeling so lucky because it didn&#8217;t happen in a production environment. Here is the result:<\/p>\n<pre>\r\nsudo zpool status\r\n  pool: storage\r\n state: UNAVAIL\r\nstatus: One or more devices could not be opened.  There are insufficient\r\n        replicas for the pool to continue functioning.\r\naction: Attach the missing device and online it using 'zpool online'.\r\n   see: http:\/\/illumos.org\/msg\/ZFS-8000-3C\r\n  scan: none requested\r\nconfig:\r\n\r\n        NAME                      STATE     READ WRITE CKSUM\r\n        storage                   UNAVAIL      0     0     0\r\n          raidz1-0                UNAVAIL      0     0     0\r\n            ada1                  ONLINE       0     0     0\r\n            ada4                  ONLINE       0     0     0\r\n            ada2                  ONLINE       0     0     0\r\n            ada3                  ONLINE       0     0     0\r\n            9977105323546742323   UNAVAIL      0     0     0  was \/dev\/ada1\r\n            12612291712221009835  UNAVAIL      0     0     0  was \/dev\/ada0\r\n<\/pre>\n<p>After some investigations, I found that the error had nothing to do with the hard drives (such as bad sectors, bad cables etc). Turn out that it was related to bad memory. See? You never know what component in your ZFS is bad until you stress test it.<\/p>\n<p>Happy stress-testing your ZFS system.<\/p>\n<p>&#8211;Derrick<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have set up a ZFS system, you may want to stress test the system before putting it in a production environment. There are many different ways to stress <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/how-to-stress-test-zfs-system\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[94,7,144,6,69,109],"tags":[177],"class_list":["post-3458","post","type-post","status-publish","format-standard","hentry","category-computer-problems-computer-help-pc-support","category-freebsd","category-sever-problem","category-technology","category-troubleshooting-technology","category-zfs","tag-zfs"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-TM","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":2562,"url":"https:\/\/icesquare.com\/wordpress\/freebsd-9-zfs-one-or-more-devices-has-experienced-an-error-resulting-in-data-corruption-applications-may-be-affected\/","url_meta":{"origin":3458,"position":0},"title":"[FreeBSD+ZFS]One or more devices has experienced an error resulting in data corruption.  Applications may be affected.","author":"Derrick","date":"January 17, 2012","format":false,"excerpt":"When you check the ZFS status, you may find the following error message: One or more devices has experienced an error resulting in data corruption. Applications may be affected.. There can be million reasons to cause this error message showing up. Of course, 99% of them are caused by hardware\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4563,"url":"https:\/\/icesquare.com\/wordpress\/zfs-errors-permanent-errors-have-been-detected-in-the-following-files\/","url_meta":{"origin":3458,"position":1},"title":"ZFS &#8211; errors: Permanent errors have been detected in the following files:","author":"Derrick","date":"February 3, 2019","format":false,"excerpt":"I got the following messages today when I inspected my ZFS: errors: Permanent errors have been detected in the following files: \/mypool\/data\/file1.dat \/mypool\/data\/file2.dat \/mypool\/data\/file3.dat \/mypool\/data\/file4.dat \/mypool\/data\/file5.dat As usual, the first thing I did was to scrub the entire pool, i.e., sudo zpool scrub mypool Unfortunately, it didn't work. The error\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4648,"url":"https:\/\/icesquare.com\/wordpress\/zfs-on-linux-what-to-do-when-resilver-takes-very-long\/","url_meta":{"origin":3458,"position":2},"title":"[ZFS On Linux] What to Do When Resilver Takes Very Long","author":"Derrick","date":"January 13, 2020","format":false,"excerpt":"If you check your Zpool health status and you notice an error like the following: sudo zpool status pool: myzpool state: DEGRADED status: One or more devices are faulted in response to persistent errors. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Replace the\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4679,"url":"https:\/\/icesquare.com\/wordpress\/zfs-on-linux-trouble-this-pool-uses-the-following-features-not-supported-by-this-system-all-unsupported-features-are-only-required-for-writing-to-the-pool\/","url_meta":{"origin":3458,"position":3},"title":"[ZFS On Linux Trouble] This pool uses the following feature(s) not supported by this system&#8230;All unsupported features are only required for writing to the pool, zpool create: invalid argument for this pool operation","author":"Derrick","date":"February 11, 2020","format":false,"excerpt":"When I rebooted my computer and loaded my ZFS pool today, I got this error message: #sudo zpool import -a This pool uses the following feature(s) not supported by this system: org.zfsonlinux:project_quota (space\/object accounting based on project ID.) com.delphix:spacemap_v2 (Space maps representing large segments are more efficient.) All unsupported features\u2026","rel":"","context":"In &quot;Technology&quot;","block_context":{"text":"Technology","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4830,"url":"https:\/\/icesquare.com\/wordpress\/zfshow-to-repair-a-zfs-pool-if-one-device-was-damaged\/","url_meta":{"origin":3458,"position":4},"title":"[ZFS]How to repair a ZFS pool if one device was damaged","author":"Derrick","date":"November 13, 2020","format":false,"excerpt":"Today, I accidentally dd'ed a disk which was part of an active ZFS pool on my test server. I dd'ed the first and the last 10 sectors of the disk. Technically I didn't lose any data because my ZFS configuration was RAIDZ. However once I rebooted my computer, my ZFS\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4286,"url":"https:\/\/icesquare.com\/wordpress\/how-to-install-zfs-on-rhel-centos-7\/","url_meta":{"origin":3458,"position":5},"title":"How to install ZFS on RHEL \/ CentOS 7","author":"Derrick","date":"January 4, 2017","format":false,"excerpt":"A friend of mine likes to try ZFS on CentOS 7, therefore I decide to make a guide for him. The following instructions have been well tested on CentOS 7. Before you decide to put ZFS in a production use, you should be aware of the following: ZFS is originally\u2026","rel":"","context":"In &quot;Everyday Computer Problem&quot;","block_context":{"text":"Everyday Computer Problem","link":"https:\/\/icesquare.com\/wordpress\/category\/everyday-computer-problem\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/01\/zfs_logo.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/3458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/comments?post=3458"}],"version-history":[{"count":9,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/3458\/revisions"}],"predecessor-version":[{"id":3638,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/3458\/revisions\/3638"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=3458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=3458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=3458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}