Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2017 12:56:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 224272] zfs replace doesn't detach old device
Message-ID:  <bug-224272-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224272

            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@FreeBSD.org
          Reporter: matthias.pfaller@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=20=20=20
          gpt/zfs7    AVAIL=20=20=20

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...

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224272-8>