Reconfigure swap when a disk vanishes
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.
- 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?
Additional info: the system is in “faulted state” at the moment. We're receiving those emails daily.
- 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.