Project

General

Profile

Bug #30519

Add the ability to "Offline" a disk

Added by Bonnie Follweiler over 2 years ago. Updated over 1 year ago.

Status:
Done
Priority:
No priority
Assignee:
Peter Southwell
Category:
GUI (new)
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

I upgraded to the latest FreeNAS Nightlies and was testing the alerts
I wanted to offline a disk to create an alert since this would change the status of the volume from Healthy to Degraded
There was no option, or I couldn't find it, in the New GUI
I was able to offline the volume in the legacy UI


Subtasks

Feature #30840: Need api/v1.0/storage/disk/{id:number|name:string}/detach (Detaches a disk from a volume). Inorder to offline it.ClosedWilliam Grzybowski

History

#1 Updated by Erin Clark over 2 years ago

  • Assignee changed from Erin Clark to Peter Southwell
  • Priority changed from No priority to Expected
  • Target version set to 11.2-RC2

#2 Updated by Peter Southwell over 2 years ago

  • Status changed from Not Started to In Progress

Found detach disk... Ill use that (which I believe is correct).

#3 Updated by Peter Southwell over 2 years ago

  • % Done changed from 0 to 70

:feature_30519

Still to test ;)

#4 Updated by Peter Southwell over 2 years ago

Need api/v1.0/storage/disk/{id:number|name:string}/detach (Detaches a disk from a volume). Inorder to offline it.

#5 Updated by Peter Southwell over 2 years ago

  • Status changed from In Progress to Blocked

#6 Updated by Erin Clark over 2 years ago

  • Target version changed from 11.2-RC2 to 11.2-BETA1

#7 Updated by Peter Southwell over 2 years ago

Code or this (That's waiting for api)... is at origin/feature_30519

#8 Updated by Erin Clark over 2 years ago

A user should also not be able to offline a disk in the following cases:

Never when a stripe or single disk
Never when a mirror where number of disks < 1
Never when a raidz where number of disks < 2
Never when a raidz2 where number of disks < 3
Never when a raidz3 where number of disks < 4

#9 Updated by Eric Loewenthal over 2 years ago

In the RAIDZ vdev cases, you have to test for at least n-p drives remaining, where n is the width of the vdev and p is the parity level (RAIDZ1, 2 or 3). A 10-wide RAIDZ2 vdev only tolerates a minimum of eight disks present, which is greater than 3.

#10 Updated by Peter Southwell over 2 years ago

  • Status changed from Blocked to In Progress

#11 Updated by Peter Southwell over 2 years ago

#12 Updated by Peter Southwell over 2 years ago

Ok... API is called successfully get the message..

Disk has been detached. BUT..

I still see no way in the rest or websocket get disks that has a status field indicating offline vs online.

https://github.com/freenas/webui/pull/610

#14 Updated by Peter Southwell over 2 years ago

  • Status changed from In Progress to Ready for Testing

#15 Updated by Dru Lavigne over 2 years ago

  • Target version changed from 11.2-BETA1 to Master - FreeNAS Nightlies
  • Needs Merging changed from Yes to No

#16 Updated by Dru Lavigne over 1 year ago

  • Status changed from Ready for Testing to Done
  • Severity set to New
  • Needs QA changed from Yes to No
  • Needs Doc changed from Yes to No

Also available in: Atom PDF