Project

General

Profile

Feature #25825

Show resilvering progress in the GUI

Added by John Smith about 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
No priority
Assignee:
Nesma Shah
Category:
GUI (new)
Estimated time:
(Total: 0.00 h)
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

Description

GUI currently indicates when a drive is being resilvered.
zfs status shows more useful information like how much data was processed and how much is left, and also percentage.
These details could be useful in the GUI.


Subtasks

Feature #26373: Middleware events for scrub/resilver progressResolvedWilliam Grzybowski

Related issues

Related to FreeNAS - Feature #25323: API function to retrieve resilvering progressResolved2017-07-26

History

#1 Updated by Dru Lavigne about 3 years ago

  • Related to Feature #25323: API function to retrieve resilvering progress added

#2 Updated by Dru Lavigne about 3 years ago

  • Category changed from 2 to GUI (new)
  • Assignee changed from Release Council to Erin Clark

#3 Avatar?id=14398&size=24x24 Updated by Kris Moore almost 3 years ago

  • Assignee changed from Erin Clark to Nesma Shah
  • Target version set to 11.1

This should be discussed with the wider team, but I'm thinking if a resilver is active, we should have a new icon show up top right that has status message on click showing % finished, speed, etc.

#4 Avatar?id=14398&size=24x24 Updated by Kris Moore almost 3 years ago

For this issue, what I was thinking was adding a new "icon" to show up in the top right header, to the left of the language drop-down. It should show on-hover / click a small dialog (not modal) (Snackbar?) that shows the text "Resilvering <pool> - % Complete"

#5 Updated by Dru Lavigne almost 3 years ago

  • Target version changed from 11.1 to Master - FreeNAS Nightlies

#6 Updated by Nesma Shah almost 3 years ago

  • Status changed from Unscreened to 15

#7 Updated by Dru Lavigne almost 3 years ago

  • Status changed from 15 to 46

Nesma: what feedback are you waiting for and who should provide it.

#8 Updated by Nesma Shah almost 3 years ago

  • Status changed from 46 to Fix In Progress

Dru, I got answers from team and work is in Progress.

#9 Updated by Nesma Shah almost 3 years ago

The sub event doesn't bring response to the frontend, althought it gets sent from the backend.

So which method to use, sub or subscribe?

#10 Updated by Nesma Shah almost 3 years ago

  • Status changed from Fix In Progress to 15

#11 Updated by Dru Lavigne almost 3 years ago

  • Status changed from 15 to Screened

#12 Updated by Nesma Shah almost 3 years ago

The sub event doesn't bring response to the frontend, althought it gets sent from the backend.
So which method to use, sub or subscribe?

#13 Updated by Nesma Shah almost 3 years ago

  • Status changed from Screened to 15
  • Assignee changed from Nesma Shah to Lola Yang

#14 Updated by Lola Yang almost 3 years ago

Nesma Shah wrote:

The sub event doesn't bring response to the frontend, althought it gets sent from the backend.
So which method to use, sub or subscribe?

william posted on https://redmine.ixsystems.com/issues/26373:

# 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"}}

#15 Updated by Lola Yang almost 3 years ago

  • Status changed from 15 to Screened
  • Assignee changed from Lola Yang to Nesma Shah

#16 Updated by Nesma Shah almost 3 years ago

  • Status changed from Screened to Needs Developer Review
  • Assignee changed from Nesma Shah to Lola Yang

#17 Updated by Lola Yang almost 3 years ago

  • Status changed from Needs Developer Review to Screened
  • Assignee changed from Lola Yang to Nesma Shah

I saw the icon shows when getting the response from middleware and then disappeared few seconds until next response gotten. I suggest making the icon shows all the way start from the resilver start and end of the resilver finished. And when clicking the icon, show the process/percentage of the task. Thanks.

#18 Updated by Nesma Shah almost 3 years ago

  • Status changed from Screened to Needs Developer Review
  • Assignee changed from Nesma Shah to Lola Yang

#19 Updated by Lola Yang almost 3 years ago

  • Status changed from Needs Developer Review to Reviewed by Developer
  • Assignee changed from Lola Yang to Nesma Shah

LGTM

#20 Updated by Dru Lavigne almost 3 years ago

  • Status changed from Reviewed by Developer to Resolved

Also available in: Atom PDF