Odd Behavior importing OmniOS pool with L2Arc #5554

Open
dave-fl opened this Issue Jan 3, 2017 · 0 comments

Projects

None yet

1 participant

@dave-fl
dave-fl commented Jan 3, 2017 edited

System information

Type Version/Name
Distribution Name Debian
Distribution Version Stable with jessie backports
Linux Kernel 3.16.0-4-amd64
Architecture
ZFS Version 0.6.5.8-2~bpo8+1
SPL Version 0.6.5.8-2~bpo8+1

Describe the problem you're observing

zpool import is stating status as "One or more devices contains corrupted data." when pool is fine. Pool was originally created on OmniOS. Error is not displayed if L2Arc is removed.

Describe how to reproduce the problem

  1. Export Pool

  2. Import pool on Linux

  3. Error will show

  4. If above steps are repeated but L2Arc is removed prior to doing so then no error.

  5. If using zpool import -d /dev/disk/by-id/ the correct device is shown but system still believes pool has corrupted data.

  6. In example below storage1 is OmniOS, storage2 is Debian.

     root@storage1:/root# zpool status
       pool: main
      state: ONLINE
       scan: scrub repaired 0 in 4h19m with 0 errors on Mon Jan  2 07:19:05 2017
     config:
    
             NAME                       STATE     READ WRITE CKSUM
             main                       ONLINE       0     0     0
               mirror-0                 ONLINE       0     0     0
                 c3t50014EE0040F7ABBd0  ONLINE       0     0     0
                 c3t50014EE0AEBA43E8d0  ONLINE       0     0     0
             logs
               c3t55CD2E404C007405d0    ONLINE       0     0     0
             cache
               c3t55CD2E404B7D75C2d0    ONLINE       0     0     0
    
     errors: No known data errors
     root@storage1:/root# zpool export main
    
     root@storage2:~# zpool import
        pool: main
          id: 16726137309503869186
       state: ONLINE
      status: One or more devices contains corrupted data.
      action: The pool can be imported using its name or numeric identifier.
        see: http://zfsonlinux.org/msg/ZFS-8000-4J
      config:
    
             main                       ONLINE
               mirror-0                 ONLINE
                 sdd                    ONLINE
                 sdc                    ONLINE
             cache
               c3t55CD2E404B7D75C2d0s0
             logs
               sde                      ONLINE
    
    
     root@storage1:/root# zpool remove main c3t55CD2E404B7D75C2d0
     root@storage1:/root# zpool status main
       pool: main
      state: ONLINE
       scan: scrub repaired 0 in 4h19m with 0 errors on Mon Jan  2 07:19:05 2017
     config:
    
             NAME                       STATE     READ WRITE CKSUM
             main                       ONLINE       0     0     0
               mirror-0                 ONLINE       0     0     0
                 c3t50014EE0040F7ABBd0  ONLINE       0     0     0
                 c3t50014EE0AEBA43E8d0  ONLINE       0     0     0
             logs
               c3t55CD2E404C007405d0    ONLINE       0     0     0
    
     errors: No known data errors
     root@storage1:/root# zpool export main
    
     root@storage2:~# zpool import
        pool: main
          id: 16726137309503869186
       state: ONLINE
      action: The pool can be imported using its name or numeric identifier.
      config:
    
             main        ONLINE
               mirror-0  ONLINE
                 sdd     ONLINE
                 sdc     ONLINE
             logs
               sde       ONLINE
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment