Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Oct 2018 18:09:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        fs@FreeBSD.org
Subject:   [Bug 228750] panic on zfs mirror removal
Message-ID:  <bug-228750-3630-NLjDhIJ7zW@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-228750-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-228750-3630@https.bugs.freebsd.org/bugzilla/>

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

--- Comment #11 from Roger Hammerstein <cheeky.m@live.com> ---
(In reply to Allan Jude from comment #10)

yes, that patch works.=20=20

root@freebsd12:~ # zpool remove test mirror-1
root@freebsd12:~ #

root@freebsd12:~ # zpool status
  pool: test
 state: ONLINE
  scan: none requested
remove: Evacuation of mirror-1 in progress since Sat Oct 13 10:03:42 2018
    5.81M copied out of 5.81M at 850K/s, 100.00% done, 0h0m to go
config:

        NAME        STATE     READ WRITE CKSUM
        test        ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            da9     ONLINE       0     0     0
            da8     ONLINE       0     0     0
          mirror-1  ONLINE       0     0     0
            da7     ONLINE       0     0     0
            da6     ONLINE       0     0     0
          mirror-2  ONLINE       0     0     0
            da5     ONLINE       0     0     0
            da4     ONLINE       0     0     0



errors: No known data errors
root@freebsd12:~ #
root@freebsd12:~ # zpool status
  pool: test
 state: ONLINE
  scan: none requested
remove: Removal of vdev 1 copied 5.81M in 0h0m, completed on Sat Oct 13
10:03:51 2018
    384 memory used for removed device mappings
config:

        NAME          STATE     READ WRITE CKSUM
        test          ONLINE       0     0     0
          mirror-0    ONLINE       0     0     0
            da9       ONLINE       0     0     0
            da8       ONLINE       0     0     0
          mirror-2    ONLINE       0     0     0
            da5       ONLINE       0     0     0
            da4       ONLINE       0     0     0

errors: No known data errors
root@freebsd12:~ #



and for extra:

root@freebsd12:~ # zpool remove test mirror-2
root@freebsd12:~ # zpool status
  pool: test
 state: ONLINE
  scan: none requested
remove: Evacuation of mirror-2 in progress since Sat Oct 13 10:05:49 2018
    7.15M copied out of 7.15M at 1.79M/s, 100.00% done, 0h0m to go
    384 memory used for removed device mappings
config:

        NAME          STATE     READ WRITE CKSUM
        test          ONLINE       0     0     0
          mirror-0    ONLINE       0     0     0
            da9       ONLINE       0     0     0
            da8       ONLINE       0     0     0
          mirror-2    ONLINE       0     0     0
            da5       ONLINE       0     0     0
            da4       ONLINE       0     0     0

errors: No known data errors
root@freebsd12:~ #

root@freebsd12:~ # zpool status
  pool: test
 state: ONLINE
  scan: none requested
remove: Removal of vdev 2 copied 7.15M in 0h0m, completed on Sat Oct 13
10:05:54 2018
    912 memory used for removed device mappings
config:

        NAME          STATE     READ WRITE CKSUM
        test          ONLINE       0     0     0
          mirror-0    ONLINE       0     0     0
            da9       ONLINE       0     0     0
            da8       ONLINE       0     0     0

errors: No known data errors
root@freebsd12:~ #



root@freebsd12:~ # zpool clear test
root@freebsd12:~ # zpool status test
  pool: test
 state: ONLINE
  scan: none requested
remove: Removal of vdev 2 copied 7.15M in 0h0m, completed on Sat Oct 13
10:05:54 2018
    912 memory used for removed device mappings
config:

        NAME          STATE     READ WRITE CKSUM
        test          ONLINE       0     0     0
          mirror-0    ONLINE       0     0     0
            da9       ONLINE       0     0     0
            da8       ONLINE       0     0     0

errors: No known data errors
root@freebsd12:~ #


root@freebsd12:~ # zpool export test
root@freebsd12:~ # zpool import test
zpool status test
root@freebsd12:~ # zpool status test
  pool: test
 state: ONLINE
  scan: none requested
remove: Removal of vdev 2 copied 7.15M in 0h0m, completed on Sat Oct 13
10:05:54 2018
    912 memory used for removed device mappings
config:

        NAME          STATE     READ WRITE CKSUM
        test          ONLINE       0     0     0
          mirror-0    ONLINE       0     0     0
            da9       ONLINE       0     0     0
            da8       ONLINE       0     0     0

errors: No known data errors
root@freebsd12:~ #

FreeBSD freebsd12 12.0-ALPHA9 FreeBSD 12.0-ALPHA9 #3 r339345M

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



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