[Bug 224272] zfs replace doesn't detach old device

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Dec 12 12:56:20 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224272

            Bug ID: 224272
           Summary: zfs replace doesn't detach old device
           Product: Base System
           Version: 11.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: matthias.pfaller at familie-pfaller.de

One of our drives is starting to show errors with smart self tests. Output of
zpool status:

  pool: zmnt
 state: ONLINE
  scan: resilvered 1.03T in 14h11m with 0 errors on Mon Dec 11 22:23:44 2017
config:

        NAME          STATE     READ WRITE CKSUM
        zmnt          ONLINE       0     0     0
          raidz2-0    ONLINE       0     0     0
            gpt/zfs0  ONLINE       0     0     0
            gpt/zfs1  ONLINE       0     0     0
            gpt/zfs2  ONLINE       0     0     0
            gpt/zfs3  ONLINE       0     0     0
            gpt/zfs4  ONLINE       0     0     0
            gpt/zfs5  ONLINE       0     0     0
        logs
          mirror-1    ONLINE       0     0     0
            gpt/zil0  ONLINE       0     0     0
            gpt/zil1  ONLINE       0     0     0
        spares
          gpt/zfs6    AVAIL   
          gpt/zfs7    AVAIL   

errors: No known data errors

I tried to replace gpt/zfs4 with gpt/zfs6:
  zpool replace zmnt /dev/gpt/zfs4 /dev/gpt/zfs6

After the resilver finished the pool was in the same state as before...

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list