You original scrub took just under 4.5 hours. Have you let the second
scrub run anywhere near that long? If not, start there.

The new scrub code uses a two-phase approach. First it works through
metadata determining what (on-disk) blocks to scrub. Second, it does the
actual scrub. This allows ZFS to coalesce the blocks and do large,
sequential reads in the second phase. This dramatically speeds up the
total scrub time. In contrast, the original scrub code is doing a lot of
small, random reads.

You might just be seeing the first phase completing in 5 minutes, but
the second phase still needs to occur. Or, maybe it did part of the
first phase but hit the RAM limit and needed to start the second phase.

If you've let it run for 4.5 hours and it's still showing that status,
then I'd say something is wrong.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to zfs-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1860182

Title:
  zpool scrub malfunction after kernel upgrade

Status in zfs-linux package in Ubuntu:
  Triaged

Bug description:
  I ran a zpool scrub prior to upgrading my 18.04 to the latest HWE
  kernel (5.3.0-26-generic #28~18.04.1-Ubuntu) and it ran properly:

  eric@eric-8700K:~$ zpool status
    pool: storagepool1
   state: ONLINE
    scan: scrub repaired 1M in 4h21m with 0 errors on Fri Jan 17 07:01:24 2020
  config:

        NAME                                          STATE     READ WRITE CKSUM
        storagepool1                                  ONLINE       0     0     0
          mirror-0                                    ONLINE       0     0     0
            ata-WDC_WD20EZRZ-00Z5HB0_WD-WCC4M3YFRVJ3  ONLINE       0     0     0
            ata-ST2000DM001-1CH164_Z1E285A4           ONLINE       0     0     0
          mirror-1                                    ONLINE       0     0     0
            ata-WDC_WD20EZRZ-00Z5HB0_WD-WCC4M1DSASHD  ONLINE       0     0     0
            ata-ST2000DM006-2DM164_Z4ZA3ENE           ONLINE       0     0     0


  I ran zpool scrub after upgrading the kernel and rebooting, and now it
  fails to work properly. It appeared to finish in about 5 minutes but
  did not, and says it is going slow:


  eric@eric-8700K:~$ sudo zpool status
    pool: storagepool1
   state: ONLINE
    scan: scrub in progress since Fri Jan 17 15:32:07 2020
        1.89T scanned out of 1.89T at 589M/s, (scan is slow, no estimated time)
        0B repaired, 100.00% done
  config:

        NAME                                          STATE     READ WRITE CKSUM
        storagepool1                                  ONLINE       0     0     0
          mirror-0                                    ONLINE       0     0     0
            ata-WDC_WD20EZRZ-00Z5HB0_WD-WCC4M3YFRVJ3  ONLINE       0     0     0
            ata-ST2000DM001-1CH164_Z1E285A4           ONLINE       0     0     0
          mirror-1                                    ONLINE       0     0     0
            ata-WDC_WD20EZRZ-00Z5HB0_WD-WCC4M1DSASHD  ONLINE       0     0     0
            ata-ST2000DM006-2DM164_Z4ZA3ENE           ONLINE       0     0     0

  errors: No known data errors

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: zfsutils-linux 0.7.5-1ubuntu16.7
  ProcVersionSignature: Ubuntu 5.3.0-26.28~18.04.1-generic 5.3.13
  Uname: Linux 5.3.0-26-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.9-0ubuntu7.9
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Jan 17 16:22:01 2020
  InstallationDate: Installed on 2018-03-07 (681 days ago)
  InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20180105.1)
  SourcePackage: zfs-linux
  UpgradeStatus: Upgraded to bionic on 2018-08-02 (533 days ago)
  modified.conffile..etc.sudoers.d.zfs: [inaccessible: [Errno 13] Permission 
denied: '/etc/sudoers.d/zfs']

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1860182/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to