Project

General

Profile

Bug #8617

zpool scrub disappears when taking a disk online

Added by Simon Klinkert about 2 years ago. Updated about 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2017-09-06
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

Recently I was wondering why a zfs scrub disappeared without any error. It turns out I took an offline disk online again.

I wrote a little reproducer (see attachment):

[host ~]#  /var/tmp/zpool-scrub-reproducer.sh
zpool status pol.s | egrep 'scrub|scan|resilver'
  scan: resilvered 512 in 0h0m with 0 errors on Wed Sep  6 11:38:21 2017
zpool scrub pol.s
zpool status pol.s | egrep 'scrub|scan|resilver'
  scan: scrub in progress since Wed Sep  6 11:39:11 2017
    210M scanned out of 40.8T at 17.5M/s, 678h24m to go
zpool offline pol.s c3t5000C5001A4DCB6Ed0
zpool status pol.s | egrep 'scrub|scan|resilver'
  scan: scrub in progress since Wed Sep  6 11:39:11 2017
    332M scanned out of 40.8T at 15.8M/s, (scan is slow, no estimated time)
zpool online pol.s c3t5000C5001A4DCB6Ed0
zpool status pol.s | egrep 'scrub|scan|resilver'
  scan: resilvered 512 in 0h0m with 0 errors on Wed Sep  6 11:39:37 2017

I'm not quite sure if this is a bug or if there are some good reasons for this behaviour. Maybe someone can clarify it.


Files

zpool-scrub-reproducer.sh (673 Bytes) zpool-scrub-reproducer.sh Simon Klinkert, 2017-09-06 02:13 PM

History

#1

Updated by Simon Klinkert about 2 years ago

  • Category set to zfs - Zettabyte File System
#2

Updated by Yuri Pankov about 2 years ago

resilver overrides scrub?

#3

Updated by Yuri Pankov about 2 years ago

and this is really better asked on mailing lists, this doesn't look like problem report per se.

#4

Updated by Simon Klinkert about 2 years ago

Yuri Pankov wrote:

resilver overrides scrub?

Hm yes, you might be right. Maybe a scrub should continue after resilver. Especially if the scrub needs days or even worse weeks and the resilver for a single disk needs only minutes/hours.

Also available in: Atom PDF