User Tools

Site Tools


zfs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

zfs [2015/08/21 13:49]
127.0.0.1 external edit
zfs [2020/02/13 22:55]
Line 1: Line 1:
- 
-<h1><var name="TITLE"/></h1><p>Using ZFS on Linux (Ubuntu 14.04 LTS).</p> 
-<h1>Zpool Import</h1><p>Because I am using a partition (sdX3) of the disks, and ZFS assumes you are using the whole disk (when it searches /dev by default), it was necessary to symlink the partition names to a new directory and zpool import referencing devices in that new directory.</p> 
-<code> 
-# cd /etc/zfs 
-# ln -s /dev/disk/by-id/ata-ST2000VX000-1CU164_*-part3 . 
-# zfs import -d /etc/zfs -a 
-</code> 
-<h1>Disk Replacement</h1><p>When using /dev/disk/by-id, I was unable to replace a failed disk with a new working disk when using human readable device paths (by-id).</p><p>I had to grab the numeric disk guid using the zdb command, and then use that ID in the zpool replace command.</p><p>Here disk S/N Z1E2EEN3 died, and was replaced with disk S/N Z1E77EXB.</p> 
-<code> 
-# zdb | grep -B1 Z1E2EEN3 
-                guid: 12406595063271178607 
-                path: '/etc/zfs/ata-ST2000VX000-1CU164_Z1E2EEN3-part3' 
- 
-# zpool replace datapool 12406595063271178607 /etc/zfs/ata-ST2000VX000-1CU164_Z1E77EXB-part3 
-</code> 
-<code> 
-# zpool status  
-  pool: datapool 
- state: DEGRADED 
-status: One or more devices is currently being resilvered.  The pool will 
-    continue to function, possibly in a degraded state. 
-action: Wait for the resilver to complete. 
-  scan: resilver in progress since Wed Jul 30 19:10:38 2014 
-    63.6G scanned out of 915G at 112M/s, 2h10m to go 
-    21.2G resilvered, 6.96% done 
-config: 
- 
-    NAME                                         STATE     READ WRITE CKSUM 
-    datapool                                     DEGRADED             0 
-      raidz1-0                                   DEGRADED             0 
-        ata-ST2000VX000-1CU164_Z1E2D6LM-part3    ONLINE               0 
-        ata-ST2000VX000-1CU164_W1E4RN90-part3    ONLINE               0 
-        replacing-2                              UNAVAIL      0         0 
-          ata-ST2000VX000-1CU164_Z1E2EEN3-part3  UNAVAIL      0         0 
-          ata-ST2000VX000-1CU164_Z1E77EXB-part3  ONLINE                (resilvering) 
-</code> 
  
zfs.txt ยท Last modified: 2020/02/13 22:55 (external edit)

free spam filter