I just swapped out a drive which was involved in a gmirror swap. This is the current status:
$ gmirror status Name Status Components mirror/swap DEGRADED da0p2 (ACTIVE) da2p2 (ACTIVE) da3p2 (ACTIVE) da4p2 (ACTIVE) da5p2 (ACTIVE) da9p2 (ACTIVE) da10p2 (ACTIVE)
Here is how I can fix that:
sudo gmirror forget swap
The above tells gmirror to forget about components which are not connected. As you can see here, it makes gmirror happy.
$ gmirror status Name Status Components mirror/swap COMPLETE da0p2 (ACTIVE) da2p2 (ACTIVE) da3p2 (ACTIVE) da4p2 (ACTIVE) da5p2 (ACTIVE) da9p2 (ACTIVE) da10p2 (ACTIVE) $
Now I add in the swap partition on the newly inserted drive:
$ sudo gmirror insert swap da1p2 gmirror: Provider da1p2 too small.
Oh. That’s because the swap partition on the new drives is 2GB. On the existing drives, it is 4GB. I will have to wait until all my drives are replaced.
Or I could destroy the gmirror now, and create a new gmirror based on the 2GB partitions from the newly inserted drives.
Decisions. Decisions.
I will delay that decision for now. Which means: I’ll wait.