{"id":4563,"date":"2019-02-03T13:00:49","date_gmt":"2019-02-03T19:00:49","guid":{"rendered":"http:\/\/icesquare.com\/wordpress\/?p=4563"},"modified":"2022-04-12T18:09:32","modified_gmt":"2022-04-12T23:09:32","slug":"zfs-errors-permanent-errors-have-been-detected-in-the-following-files","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/zfs-errors-permanent-errors-have-been-detected-in-the-following-files\/","title":{"rendered":"ZFS &#8211; errors: Permanent errors have been detected in the following files:"},"content":{"rendered":"<p>I got the following messages today when I inspected my ZFS:<\/p>\n<pre>errors: Permanent errors have been detected in the following files:\r\n\r\n        \/mypool\/data\/file1.dat\r\n        \/mypool\/data\/file2.dat\r\n        \/mypool\/data\/file3.dat\r\n        \/mypool\/data\/file4.dat\r\n        \/mypool\/data\/file5.dat\r\n<\/pre>\n<p>As usual, the first thing I did was to scrub the entire pool, i.e.,<\/p>\n<pre>sudo zpool scrub mypool<\/pre>\n<p>Unfortunately, it didn&#8217;t work. The error still existed even there was no checksum error. <\/p>\n<p>Keep in mind that this tutorial is about removing the error message, it is not about rescuing your files. ZFS is not 100% fail proof. It is highly recommended to have a backup copy if the data is important.<\/p>\n<p>Since I don&#8217;t care about the file (backup copy), I decided to delete the files manually, and it ended up like this:<\/p>\n<pre>errors: Permanent errors have been detected in the following files:\r\n\r\n        mypool\/data:&lt;0x1fa3a&gt;\r\n        mypool\/data:&lt;0x1fa45&gt;\r\n        mypool\/data:&lt;0x1fa46&gt;\r\n        mypool\/data:&lt;0x1f354&gt;\r\n        mypool\/data:&lt;0x1f664&gt;\r\n<\/pre>\n<p>That&#8217;s because when the files were deleted, it simply removed the file pointers. Since ZFS no longer has the file names, it decided to report the location instead. To solve this problem, you will need to go through the following:<\/p>\n<p>First, make sure that you have no checksum error and the pool is healthy, i.e., all hard drives are online, and all counts are zero.<\/p>\n<pre>sudo zpool status mypool<\/pre>\n<p>Next, try to scrub the pool again:<\/p>\n<pre>\r\nsudo zpool scrub mypool\r\n<\/pre>\n<p>Within a minute, try to stop the process:<\/p>\n<pre>\r\nsudo zpool scrub -s mypool\r\n<\/pre>\n<p>Check the status again. The error should be gone:<\/p>\n<pre>sudo zpool status -v\r\n  pool: mypool\r\n state: ONLINE\r\n  scan: scrub canceled on Sun Feb  3 12:18:06 2019\r\nerrors: No known data errors\r\n<\/pre>\n<p>If the error still presents, you may need to scrub the pool again.<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/zfs-errors-permanent-errors-have-been-detected-in-the-following-files\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","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,6,69,109],"tags":[177],"class_list":["post-4563","post","type-post","status-publish","format-standard","hentry","category-computer-problems-computer-help-pc-support","category-technology","category-troubleshooting-technology","category-zfs","tag-zfs"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-1bB","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":4563,"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":3551,"url":"https:\/\/icesquare.com\/wordpress\/how-to-expand-zfs\/","url_meta":{"origin":4563,"position":1},"title":"How to Expand ZFS","author":"Derrick","date":"June 23, 2014","format":false,"excerpt":"Today I am going to share my story with you on how to expand my ZFS storage. I have a giant ZFS pool, which consists of 8x2TB (RAIDZ2) and 4x1.5TB (RAIDZ1), with a total of 15TB usable spaces. Since I am running out of space, I decide to upgrade 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":3458,"url":"https:\/\/icesquare.com\/wordpress\/how-to-stress-test-zfs-system\/","url_meta":{"origin":4563,"position":2},"title":"How to Stress Test ZFS System","author":"Derrick","date":"January 26, 2014","format":false,"excerpt":"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\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":4563,"position":3},"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":1380,"url":"https:\/\/icesquare.com\/wordpress\/how-to-improve-zfs-performance\/","url_meta":{"origin":4563,"position":4},"title":"How to Improve ZFS performance","author":"Derrick","date":"August 24, 2014","format":false,"excerpt":"First Edition: March 14, 2010 Last Edited: January 10, 2026 \u00a0 In this tutorial, I will show you how to improve the performance of your ZFS using the affordable consumer-grade hardware (e.g., Gigabit network card, standard SATA non-SSD hard drives, consumer-grade motherboard etc.). Many people found a problem on their\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":"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":[]},{"id":3914,"url":"https:\/\/icesquare.com\/wordpress\/zfs-linux-vs-freebsd\/","url_meta":{"origin":4563,"position":5},"title":"Running ZFS on Linux: Things you should know and be aware of","author":"Derrick","date":"February 29, 2016","format":false,"excerpt":"First Published: Feb 29, 2016 Last Revised: January 10, 2026 ZFS is a next-generation file system renowned for its reliability and advanced features. However, due to legal and licensing issues, it is not included by default in most Linux distributions. Fortunately, you can still install (ZFS on Linux) with just\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":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/4563","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=4563"}],"version-history":[{"count":7,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/4563\/revisions"}],"predecessor-version":[{"id":4960,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/4563\/revisions\/4960"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=4563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=4563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=4563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}