Project

General

Profile

Feature #77286

Reconfigure swap on ZFS changes and fix behavior with single disk swap to mirror

Added by IT IGP 9 months ago. Updated 8 months ago.

Status:
Done
Priority:
No priority
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Estimated time:
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:

Description

maybe related Bug #35560

the default is, that a disk has a swap partition. yet once you take a disk offline (usually for planned removal), the swap partition on that disk currently stays active. IF you remove the disk, the fail one copy of the corresponding swap mirror, which is then fixed automatically. but there is more...

e.g. you want to run dd on a disk to write some sectors with permanent errors.

what you usually want to do is, take the disk offline and then be allowed to dd on the disk device. currently you manually have to take down the swap device, geli, gmirror, before you are allowed to. or is there a much better way and i am missing something how to deal with bad sectors?

also, IF the other swap device fails before the swap device was removed sucessfully, the system might panic. proactive removal of left-over swap seems safer.

Associated revisions

Revision a47bdb9a (diff)
Added by William Grzybowski 9 months ago

fix(middlewared/disk): reconfigure swaps on ZFS changes Ticket: #77286

Revision b2c17928 (diff)
Added by William Grzybowski 9 months ago

fix(middlewared/disk): do not use strip to remove ".eli" Pointed out by Vladimir Vinogradenko Ticket: #77286

Revision 8ed91672 (diff)
Added by William Grzybowski 9 months ago

fix(middlewared/disk): reconfigure swaps on ZFS changes Ticket: #77286

Revision 78d63917 (diff)
Added by William Grzybowski 9 months ago

fix(middlewared/disk): do not use strip to remove ".eli" Pointed out by Vladimir Vinogradenko Ticket: #77286

Revision 81ac7823 (diff)
Added by William Grzybowski 7 months ago

fix(middlewared/disk): do not use strip to remove ".eli" Pointed out by Vladimir Vinogradenko Ticket: #77286

History

#1 Updated by Dru Lavigne 9 months ago

  • Category changed from OS to Middleware
  • Assignee changed from Release Council to William Grzybowski

#3 Updated by Bug Clerk 9 months ago

  • Status changed from Unscreened to In Progress

#4 Updated by Bug Clerk 9 months ago

  • Status changed from In Progress to Ready for Testing

#5 Updated by Bug Clerk 9 months ago

  • Target version changed from Backlog to 11.3-BETA1

#6 Updated by Dru Lavigne 9 months ago

  • Subject changed from proactively remove swap partition from gmirror/geli/swap when taking corresponding disk offline to Reconfigure swap on ZFS changes and fix behavior with single disk swap to mirror
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#7 Updated by William Grzybowski 8 months ago

  • Status changed from Ready for Testing to Passed Testing

#9 Updated by Dru Lavigne 8 months ago

  • Status changed from Passed Testing to Done
  • Target version changed from 11.3-BETA1 to 11.3-ALPHA1
  • Needs QA changed from Yes to No

Also available in: Atom PDF