<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.ledhed.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.ledhed.net/index.php?action=history&amp;feed=atom&amp;title=Replacing_a_ZFS_Failed_Disk</id>
		<title>Replacing a ZFS Failed Disk - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.ledhed.net/index.php?action=history&amp;feed=atom&amp;title=Replacing_a_ZFS_Failed_Disk"/>
		<link rel="alternate" type="text/html" href="https://wiki.ledhed.net/index.php?title=Replacing_a_ZFS_Failed_Disk&amp;action=history"/>
		<updated>2026-05-12T18:18:09Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.2</generator>

	<entry>
		<id>//wiki.ledhed.net/index.php?title=Replacing_a_ZFS_Failed_Disk&amp;diff=3045&amp;oldid=prev</id>
		<title>Ledhed at 23:24, 12 March 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.ledhed.net/index.php?title=Replacing_a_ZFS_Failed_Disk&amp;diff=3045&amp;oldid=prev"/>
				<updated>2014-03-12T23:24:15Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 23:24, 12 March 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== REPOST ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The below article is a repost of an article I found on the internet. All credit goes the the original author.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Tonight I had to replace a disk in my FreeNAS box that was completely dead, as in, not detected by the BIOS. Below are the steps to replace a completely failed disk. The FreeNAS docs have an article on replacing a failed disk but it does not cover replacing a disk that is no longer detected by the system. You can read that article here.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Tonight I had to replace a disk in my FreeNAS box that was completely dead, as in, not detected by the BIOS. Below are the steps to replace a completely failed disk. The FreeNAS docs have an article on replacing a failed disk but it does not cover replacing a disk that is no longer detected by the system. You can read that article here.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ledhed</name></author>	</entry>

	<entry>
		<id>//wiki.ledhed.net/index.php?title=Replacing_a_ZFS_Failed_Disk&amp;diff=3044&amp;oldid=prev</id>
		<title>Ledhed: Created page with &quot;Tonight I had to replace a disk in my FreeNAS box that was completely dead, as in, not detected by the BIOS. Below are the steps to replace a completely failed disk. The FreeN...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.ledhed.net/index.php?title=Replacing_a_ZFS_Failed_Disk&amp;diff=3044&amp;oldid=prev"/>
				<updated>2014-03-12T23:22:35Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Tonight I had to replace a disk in my FreeNAS box that was completely dead, as in, not detected by the BIOS. Below are the steps to replace a completely failed disk. The FreeN...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Tonight I had to replace a disk in my FreeNAS box that was completely dead, as in, not detected by the BIOS. Below are the steps to replace a completely failed disk. The FreeNAS docs have an article on replacing a failed disk but it does not cover replacing a disk that is no longer detected by the system. You can read that article here.&lt;br /&gt;
&lt;br /&gt;
A zpool status shows the disk as unavailable:&lt;br /&gt;
&lt;br /&gt;
 [root@freenas] ~# zpool status -v zpool0&lt;br /&gt;
  pool: zpool0&lt;br /&gt;
 state: DEGRADED&lt;br /&gt;
 status: One or more devices could not be opened.  Sufficient replicas exist for&lt;br /&gt;
        the pool to continue functioning in a degraded state.&lt;br /&gt;
 action: Attach the missing device and online it using 'zpool online'.&lt;br /&gt;
   see: http://illumos.org/msg/ZFS-8000-2Q&lt;br /&gt;
  scan: scrub repaired 0 in 6h31m with 0 errors on Sun Jul 28 06:31:27 2013&lt;br /&gt;
 config:&lt;br /&gt;
 &lt;br /&gt;
        NAME                                            STATE     READ WRITE CKSUM&lt;br /&gt;
        zpool0                                          DEGRADED     0     0     0&lt;br /&gt;
          mirror-0                                      DEGRADED     0     0     0&lt;br /&gt;
            3282272283788900661                         UNAVAIL      0     0     0  was /dev/gptid/3937b1c2-fec4-11d5-a8b2-001f2961db&lt;br /&gt;
            gptid/398a9808-fec4-11d5-a8b2-001f2961db70  ONLINE       0     0     0&lt;br /&gt;
          mirror-1                                      ONLINE       0     0     0&lt;br /&gt;
            gptid/998b8dc4-ff2b-11d5-a8b2-001f2961db70  ONLINE       0     0     0&lt;br /&gt;
            gptid/99e507d9-ff2b-11d5-a8b2-001f2961db70  ONLINE       0     0     0&lt;br /&gt;
&lt;br /&gt;
errors: No known data errors&lt;br /&gt;
&lt;br /&gt;
Next I took a screenshot of all my disks via the webGUI and noted the serial numbers for the disks in the pool. The failed disk will not show up in the list so we can use that to identify which physical disk we need to pull. Next shutdown the server and start pulling one disk at a time until you find the one with the serial number that is not in your list of serial numbers. When you find it, pull it out and replace it with your new one noting the serial number of the new disk. Next power on the system and login via SSH.&lt;br /&gt;
&lt;br /&gt;
Next, offline the failed disk:&lt;br /&gt;
&lt;br /&gt;
 [root@freenas] ~# zpool offline zpool0 /dev/gptid/3937b1c2-fec4-11d5-a8b2-001f2961db70&lt;br /&gt;
&lt;br /&gt;
Check the status of the disk to ensure it's offline:&lt;br /&gt;
&lt;br /&gt;
 [root@freenas] ~# zpool status -v zpool0&lt;br /&gt;
  pool: zpool0&lt;br /&gt;
 state: DEGRADED&lt;br /&gt;
 status: One or more devices has been taken offline by the administrator.&lt;br /&gt;
        Sufficient replicas exist for the pool to continue functioning in a&lt;br /&gt;
        degraded state.&lt;br /&gt;
 action: Online the device using 'zpool online' or replace the device with&lt;br /&gt;
        'zpool replace'.&lt;br /&gt;
  scan: scrub repaired 0 in 6h31m with 0 errors on Sun Jul 28 06:31:27 2013&lt;br /&gt;
 config:&lt;br /&gt;
 &lt;br /&gt;
        NAME                                            STATE     READ WRITE CKSUM&lt;br /&gt;
        zpool0                                          DEGRADED     0     0     0&lt;br /&gt;
          mirror-0                                      DEGRADED     0     0     0&lt;br /&gt;
            3282272283788900661                         OFFLINE      0     0     0  was /dev/gptid/3937b1c2-fec4-11d5-a8b2-001f2961db&lt;br /&gt;
            gptid/398a9808-fec4-11d5-a8b2-001f2961db70  ONLINE       0     0     0&lt;br /&gt;
          mirror-1                                      ONLINE       0     0     0&lt;br /&gt;
            gptid/998b8dc4-ff2b-11d5-a8b2-001f2961db70  ONLINE       0     0     0&lt;br /&gt;
            gptid/99e507d9-ff2b-11d5-a8b2-001f2961db70  ONLINE       0     0     0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
errors: No known data errors&lt;br /&gt;
&lt;br /&gt;
Now replace the disk in the pool with your new disk. You can use the webGUI to get the block device name, looking for the serial number of the new device you noted above:&lt;br /&gt;
&lt;br /&gt;
 [root@freenas] ~# zpool replace zpool0 /dev/gptid/3937b1c2-fec4-11d5-a8b2-001f2961db70 /dev/ada2&lt;br /&gt;
&lt;br /&gt;
Now just online the disk and ensure its says the new disk is resilvering:&lt;br /&gt;
&lt;br /&gt;
 [root@freenas] ~# zpool online zpool0 /dev/ada2&lt;br /&gt;
 [root@freenas] ~# zpool status -v zpool0&lt;br /&gt;
  pool: zpool0&lt;br /&gt;
 state: DEGRADED&lt;br /&gt;
 status: One or more devices is currently being resilvered.  The pool will&lt;br /&gt;
        continue to function, possibly in a degraded state.&lt;br /&gt;
 action: Wait for the resilver to complete.&lt;br /&gt;
  scan: resilver in progress since Tue Sep  3 21:32:02 2013&lt;br /&gt;
        28.1M scanned out of 3.53T at 1.17M/s, (scan is slow, no estimated time)&lt;br /&gt;
        15.4M resilvered, 0.00% done&lt;br /&gt;
 config:&lt;br /&gt;
 &lt;br /&gt;
        NAME                                            STATE     READ WRITE CKSUM&lt;br /&gt;
        zpool0                                          DEGRADED     0     0     0&lt;br /&gt;
          mirror-0                                      DEGRADED     0     0     0&lt;br /&gt;
            replacing-0                                 DEGRADED     0     0     0&lt;br /&gt;
              3282272283788900661                       OFFLINE      0     0     0  was /dev/gptid/3937b1c2-fec4-11d5-a8b2-001f2961db70&lt;br /&gt;
              ada2                                      ONLINE       0     0     0  (resilvering)&lt;br /&gt;
            gptid/398a9808-fec4-11d5-a8b2-001f2961db70  ONLINE       0     0     0&lt;br /&gt;
          mirror-1                                      ONLINE       0     0     0&lt;br /&gt;
            gptid/998b8dc4-ff2b-11d5-a8b2-001f2961db70  ONLINE       0     0     0&lt;br /&gt;
            gptid/99e507d9-ff2b-11d5-a8b2-001f2961db70  ONLINE       0     0     0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
errors: No known data errors&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
http://dcprom0.blogspot.com/2013/09/freenas-replacing-failed-disk.html&lt;br /&gt;
&lt;br /&gt;
[[Category:ZFS]][[Category:FreeNAS]]&lt;/div&gt;</summary>
		<author><name>Ledhed</name></author>	</entry>

	</feed>