Project

General

Profile

Feature #26373

Feature #25825: Show resilvering progress in the GUI

Middleware events for scrub/resilver progress

Added by William Grzybowski about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Important
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Estimated time:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

Description

Middleware needs to report progress of a scrub/resilver so UI does not have to poll for it every couple seconds.

Associated revisions

Revision 5cb06cad (diff)
Added by William Grzybowski about 1 year ago

feat(middlewared/zfs): send `zfs.pool.scan` events for scrub/resilver progress

- Move devd zfs event handling to zfs plugin

Ticket: #26373

Revision 34d9c07b (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared): grab pool again to re-evaluate config

Ticket: #26373

Revision 61a07d9c (diff)
Added by William Grzybowski about 1 year ago

fix typo

Ticket: #26373

History

#1 Updated by William Grzybowski about 1 year ago

  • Status changed from Screened to Needs Developer Review
  • Assignee changed from William Grzybowski to Vladimir Vinogradenko
  • Target version changed from 11.1 to 11.1-RC1

#2 Updated by William Grzybowski about 1 year ago

  • Status changed from Needs Developer Review to Ready For Release
  • Assignee changed from Vladimir Vinogradenko to William Grzybowski

#3 Updated by William Grzybowski about 1 year ago

# midclt subscribe zfs.pool.scan   
{"msg": "changed", "collection": "zfs.pool.scan", "fields": {"scan": {"function": "SCRUB", "state": "SCANNING", "start_time": {"$date": 1509127457000}, "end_time": {"$date": -10800000}, "percentage": 9.93536114692688, "bytes_to_process": 5535055872, "bytes_processed": 5535809536, "errors": 0, "bytes_issued": 550002688}, "name": "tank"}}
{"msg": "changed", "collection": "zfs.pool.scan", "fields": {"scan": {"function": "SCRUB", "state": "SCANNING", "start_time": {"$date": 1509127457000}, "end_time": {"$date": -10800000}, "percentage": 23.891688883304596, "bytes_to_process": 5535055872, "bytes_processed": 5535809536, "errors": 0, "bytes_issued": 1322598400}, "name": "tank"}}
{"msg": "changed", "collection": "zfs.pool.scan", "fields": {"scan": {"function": "SCRUB", "state": "SCANNING", "start_time": {"$date": 1509127457000}, "end_time": {"$date": -10800000}, "percentage": 39.56904709339142, "bytes_to_process": 5535055872, "bytes_processed": 5535809536, "errors": 0, "bytes_issued": 2190467072}, "name": "tank"}}
{"msg": "changed", "collection": "zfs.pool.scan", "fields": {"scan": {"function": "SCRUB", "state": "SCANNING", "start_time": {"$date": 1509127457000}, "end_time": {"$date": -10800000}, "percentage": 57.90712237358093, "bytes_to_process": 5535055872, "bytes_processed": 5535809536, "errors": 0, "bytes_issued": 3205627904}, "name": "tank"}}
{"msg": "changed", "collection": "zfs.pool.scan", "fields": {"scan": {"function": "SCRUB", "state": "SCANNING", "start_time": {"$date": 1509127457000}, "end_time": {"$date": -10800000}, "percentage": 74.374258518219, "bytes_to_process": 5535055872, "bytes_processed": 5535809536, "errors": 0, "bytes_issued": 4117217280}, "name": "tank"}}
{"msg": "changed", "collection": "zfs.pool.scan", "fields": {"scan": {"function": "SCRUB", "state": "SCANNING", "start_time": {"$date": 1509127457000}, "end_time": {"$date": -10800000}, "percentage": 92.5715982913971, "bytes_to_process": 5535055872, "bytes_processed": 5535809536, "errors": 0, "bytes_issued": 5124587520}, "name": "tank"}}
{"msg": "changed", "collection": "zfs.pool.scan", "fields": {"scan": {"function": "SCRUB", "state": "FINISHED", "start_time": {"$date": 1509127457000}, "end_time": {"$date": 1509127470000}, "percentage": 99.9863862991333, "bytes_to_process": 5535055872, "bytes_processed": 5535809536, "errors": 0, "bytes_issued": 5535055872}, "name": "tank"}}

#4 Updated by Dru Lavigne about 1 year ago

  • Status changed from Ready For Release to Resolved

#5 Updated by Bonnie Follweiler about 1 year ago

  • Needs QA changed from Yes to No
  • QA Status Test Passes FreeNAS added
  • QA Status deleted (Not Tested)

Also available in: Atom PDF