[Bug 228750] panic on zfs mirror removal

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Oct 14 18:24:26 UTC 2018


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

--- Comment #12 from Roger Hammerstein <cheeky.m at live.com> ---
11.2-stable also works (for one removal) with the second patch from 229007#c12

FreeBSD freebsd11 11.2-STABLE FreeBSD 11.2-STABLE #0 r339346: Sat Oct 13
15:30:06 EDT 2018   


without the second patch, the removal seemed to never finish, after leaving it
overnight:


root at freebsd11:~ # zpool create test mirror /dev/da8 /dev/da7 mirror /dev/da6
/dev/da5 mirror /dev/da4 /dev/da3 mirror /dev/da2 /dev/da1
root at freebsd11:~ # zpool status
  pool: test
 state: ONLINE
  scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        test        ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            da8     ONLINE       0     0     0
            da7     ONLINE       0     0     0
          mirror-1  ONLINE       0     0     0
            da6     ONLINE       0     0     0
            da5     ONLINE       0     0     0
          mirror-2  ONLINE       0     0     0
            da4     ONLINE       0     0     0
            da3     ONLINE       0     0     0
          mirror-3  ONLINE       0     0     0
            da2     ONLINE       0     0     0
            da1     ONLINE       0     0     0

errors: No known data errors
root at freebsd11:~ # cp -a /usr/src /test/
root at freebsd11:~ # zpool remove test mirror-2
root at freebsd11:~ #
root at freebsd11:~ # zpool status
  pool: test
 state: ONLINE
  scan: none requested
remove: Evacuation of mirror-2 in progress since Sat Oct 13 15:44:31 2018
    22.2M copied out of 22.2M at 2.46M/s, 100.00% done, 0h0m to go
config:

        NAME        STATE     READ WRITE CKSUM
        test        ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            da8     ONLINE       0     0     0
            da7     ONLINE       0     0     0
          mirror-1  ONLINE       0     0     0
            da6     ONLINE       0     0     0
            da5     ONLINE       0     0     0
          mirror-2  ONLINE       0     0     0
            da4     ONLINE       0     0     0
            da3     ONLINE       0     0     0
          mirror-3  ONLINE       0     0     0
            da2     ONLINE       0     0     0
            da1     ONLINE       0     0     0


errors: No known data errors
root at freebsd11:~ # 


root at freebsd11:~ # zpool status
  pool: test
 state: ONLINE
  scan: none requested
remove: Evacuation of mirror-2 in progress since Sat Oct 13 15:44:31 2018
    22.2M copied out of 22.2M at 169K/s, 100.00% done, 0h0m to go
config:

        NAME        STATE     READ WRITE CKSUM
        test        ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            da8     ONLINE       0     0     0
            da7     ONLINE       0     0     0
          mirror-1  ONLINE       0     0     0
            da6     ONLINE       0     0     0
            da5     ONLINE       0     0     0
          mirror-2  ONLINE       0     0     0
            da4     ONLINE       0     0     0
            da3     ONLINE       0     0     0
          mirror-3  ONLINE       0     0     0
            da2     ONLINE       0     0     0
            da1     ONLINE       0     0     0

errors: No known data errors
root at freebsd11:~ #



root at freebsd11:/usr/src # zpool status
  pool: test
 state: ONLINE
  scan: none requested
remove: Evacuation of mirror-2 in progress since Sat Oct 13 15:44:31 2018
    22.2M copied out of 22.2M at 6.68K/s, 100.00% done, 0h0m to go
config:

        NAME        STATE     READ WRITE CKSUM
        test        ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            da8     ONLINE       0     0     0
            da7     ONLINE       0     0     0
          mirror-1  ONLINE       0     0     0
            da6     ONLINE       0     0     0
            da5     ONLINE       0     0     0
          mirror-2  ONLINE       0     0     0
            da4     ONLINE       0     0     0
            da3     ONLINE       0     0     0
          mirror-3  ONLINE       0     0     0
            da2     ONLINE       0     0     0
            da1     ONLINE       0     0     0

errors: No known data errors
root at freebsd11:/usr/src #


after overnight:


root at freebsd11:/usr/src # zpool status
  pool: test
 state: ONLINE
  scan: none requested
remove: Evacuation of mirror-2 in progress since Sat Oct 13 15:44:31 2018
    22.2M copied out of 22.2M at 355/s, 100.00% done, 0h0m to go
config:

        NAME        STATE     READ WRITE CKSUM
        test        ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            da8     ONLINE       0     0     0
            da7     ONLINE       0     0     0
          mirror-1  ONLINE       0     0     0
            da6     ONLINE       0     0     0
            da5     ONLINE       0     0     0
          mirror-2  ONLINE       0     0     0
            da4     ONLINE       0     0     0
            da3     ONLINE       0     0     0
          mirror-3  ONLINE       0     0     0
            da2     ONLINE       0     0     0
            da1     ONLINE       0     0     0

errors: No known data errors



rebooting onto the new kernel with the patch from 229007



root at freebsd11:~ # zpool status
  pool: test
 state: ONLINE
  scan: none requested
remove: Evacuation of mirror-2 in progress since Sat Oct 13 15:44:31 2018
    1 copied out of 22.2M at 1/s, 0.00% done, (copy is slow, no estimated time)
config:

        NAME        STATE     READ WRITE CKSUM
        test        ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            da8     ONLINE       0     0     0
            da7     ONLINE       0     0     0
          mirror-1  ONLINE       0     0     0
            da6     ONLINE       0     0     0
            da5     ONLINE       0     0     0
          mirror-2  ONLINE       0     0     0
            da4     ONLINE       0     0     0
            da3     ONLINE       0     0     0
          mirror-3  ONLINE       0     0     0
            da2     ONLINE       0     0     0
            da1     ONLINE       0     0     0

errors: No known data errors


root at freebsd11:~ # zpool status
  pool: test
 state: ONLINE
  scan: none requested
remove: Removal of vdev 2 copied 22.2M in 18h20m, completed on Sun Oct 14
10:04:46 2018
    816 memory used for removed device mappings
config:

        NAME          STATE     READ WRITE CKSUM
        test          ONLINE       0     0     0
          mirror-0    ONLINE       0     0     0
            da8       ONLINE       0     0     0
            da7       ONLINE       0     0     0
          mirror-1    ONLINE       0     0     0
            da6       ONLINE       0     0     0
            da5       ONLINE       0     0     0
          mirror-3    ONLINE       0     0     0
            da2       ONLINE       0     0     0
            da1       ONLINE       0     0     0

errors: No known data errors



but then a second remove of

 zpool remove test mirror-0 

paniced

KDB: stack backtrace:
#0 0xffffffff80b40df7 at kdb_backtrace+0x67
#1 0xffffffff80afa337 at vpanic+0x177
#2 0xffffffff80afa1b3 at panic+0x43
#3 0xffffffff80f7c38f at trap_fatal+0x35f
#4 0xffffffff80f7c3e9 at trap_pfault+0x49
#5 0xffffffff80f7ba8c at trap+0x29c
#6 0xffffffff80f5bfcc at calltrap+0x8
#7 0xffffffff824bc89b at vdev_indirect_io_start+0x9b
#8 0xffffffff824e9fa9 at zio_vdev_io_start+0x2a9
#9 0xffffffff824e68ec at zio_execute+0xbc
#10 0xffffffff824e61fb at zio_nowait+0xcb
#11 0xffffffff824c248f at vdev_mirror_io_start+0x41f
#12 0xffffffff824e9e5c at zio_vdev_io_start+0x15c
#13 0xffffffff824e68ec at zio_execute+0xbc
#14 0xffffffff80b52694 at taskqueue_run_locked+0x154
#15 0xffffffff80b537f8 at taskqueue_thread_loop+0x98
#16 0xffffffff80abd963 at fork_exit+0x83
#17 0xffffffff80f5cf8e at fork_trampoline+0xe
Uptime: 11m46s



but i think not everything that is in head has been mfcd back to 11 yet

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


More information about the freebsd-fs mailing list