Project

General

Profile

Bug #32772

Reconfigure swap when a disk vanishes

Added by Marco . about 1 year ago. Updated 12 months ago.

Status:
Done
Priority:
No priority
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Seen in:
Severity:
Medium
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

A disk has failed and been ejected from the pool which continued to run in a degraded state. A replacement disk has been successfully resilvered and the pool is back online with redundancy. Done via hot-swap, no reboot.

However, the swap partition on the disk has not been re-enabled. Therefore, we receive daily emails:

Checking status of gmirror(8) devices:
        Name    Status  Components
mirror/swap0  COMPLETE  da7p1 (ACTIVE)
                        da6p1 (ACTIVE)
mirror/swap1  DEGRADED  da4p1 (ACTIVE)
mirror/swap2  COMPLETE  da3p1 (ACTIVE)
                        da2p1 (ACTIVE)
mirror/swap3  COMPLETE  da1p1 (ACTIVE)
                        da0p1 (ACTIVE)

-- End of daily output --

Workaround: A reboot rebuilds the swap mirror. But that shouldn't be required.

Desired outcome: Disk replacement should result in a successfully rebuilt mirror (or raidz) of the data pool as well as swap.


Related issues

Related to FreeNAS - Bug #28560: Removed disk remained in geom databaseClosed

Associated revisions

Revision 89cd0864 (diff)
Added by William Grzybowski about 1 year ago

feat(middlwared): reconfigure swaps when disk vanishes

Ticket: #32772

Revision 37d95aa4 (diff)
Added by William Grzybowski about 1 year ago

feat(middlwared): reconfigure swaps when disk vanishes

Ticket: #32772

History

#1 Updated by Dru Lavigne about 1 year ago

  • Assignee changed from Release Council to William Grzybowski

#2 Updated by William Grzybowski about 1 year ago

  • Status changed from Unscreened to Screened

#3 Updated by William Grzybowski about 1 year ago

  • Severity set to Medium

#4 Updated by William Grzybowski about 1 year ago

  • Status changed from Screened to Not Started
  • Target version changed from Backlog to 11.2-RC2
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#5 Updated by William Grzybowski about 1 year ago

  • Status changed from Not Started to Blocked
  • Reason for Blocked set to Waiting for feedback

I cant seem to reproduce this on Nightlies.

Can you attach your System -> Advanced -> Save Debug?

#6 Updated by Marco . about 1 year ago

  • File debug-freenas-20180514182441.tgz added
  • Private changed from No to Yes

William Grzybowski wrote:

I cant seem to reproduce this on Nightlies.

Can you attach your System -> Advanced -> Save Debug?

done

Additional info: the system is in “faulted state” at the moment. We're receiving those emails daily.

#7 Updated by William Grzybowski about 1 year ago

  • Status changed from Blocked to Ready for Testing
  • Reason for Blocked deleted (Waiting for feedback)

#8 Updated by Dru Lavigne about 1 year ago

  • Subject changed from Degraded swap after disk replacement to Reconfigure swap when a disk vanishes
  • Target version changed from 11.2-RC2 to 11.2-BETA1
  • Private changed from Yes to No

#9 Updated by Dru Lavigne about 1 year ago

  • File deleted (debug-freenas-20180514182441.tgz)

#10 Updated by William Grzybowski about 1 year ago

  • Related to Bug #28560: Removed disk remained in geom database added

#11 Updated by Timothy Moore II 12 months ago

  • Status changed from Ready for Testing to Passed Testing
  • Needs QA changed from Yes to No

Testing with FreeNAS Mini on INTERNAL13:

Created pool “test-32772” with two disks. Offline second disk. Replace disk and wait for resilver to finish. Check /var/log/messages and confirm swap is rebuilt.

#12 Updated by Dru Lavigne 12 months ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF