[Bug 228750] panic on zfs mirror removal

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Oct 13 18:09:20 UTC 2018


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

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

yes, that patch works.  

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

root at 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 at freebsd12:~ #
root at 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 at freebsd12:~ #



and for extra:

root at freebsd12:~ # zpool remove test mirror-2
root at 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 at freebsd12:~ #

root at 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 at freebsd12:~ #



root at freebsd12:~ # zpool clear test
root at 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 at freebsd12:~ #


root at freebsd12:~ # zpool export test
root at freebsd12:~ # zpool import test
zpool status test
root at 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 at freebsd12:~ #

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

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


More information about the freebsd-fs mailing list