Missing Swap on 2 of 10 disks?

lrosenman

Dabbler
Joined
Oct 22, 2021
Messages
17
I have a 10-disk VDev that I think I'replaced a couple of disks via the CLI:

root@freenas[~]# zpool status -v data
pool: data
state: ONLINE
scan: scrub repaired 0B in 21:19:43 with 0 errors on Sun May 29 21:26:42 2022
config:

NAME STATE READ WRITE CKSUM
data ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
gptid/ab0b5b33-e8f3-11e8-b80f-003048cf2b1c ONLINE 0 0 0
mfid6p2 ONLINE 0 0 0
gptid/ac72d693-e8f3-11e8-b80f-003048cf2b1c ONLINE 0 0 0
mfid9p2 ONLINE 0 0 0
gptid/ae16198d-e8f3-11e8-b80f-003048cf2b1c ONLINE 0 0 0
gptid/af193be9-e8f3-11e8-b80f-003048cf2b1c ONLINE 0 0 0
gptid/affd6430-e8f3-11e8-b80f-003048cf2b1c ONLINE 0 0 0
gptid/b0c7182a-e8f3-11e8-b80f-003048cf2b1c ONLINE 0 0 0
gptid/b14ca5d0-e8f3-11e8-b80f-003048cf2b1c ONLINE 0 0 0
mfid0p2 ONLINE 0 0 0

errors: No known data errors
root@freenas[~]#

and the SWAP partitions on mfid0/1 are NOT being used, but the ones on ada0/1 (boot) and all the other mfid* drives are:
root@freenas[~]# swapinfo
Device 1K-blocks Used Avail Capacity
/dev/mirror/swap0.eli 16777216 0 16777216 0%
/dev/mirror/swap1.eli 2097152 0 2097152 0%
/dev/mirror/swap2.eli 2097152 0 2097152 0%
/dev/mirror/swap3.eli 2097152 0 2097152 0%
/dev/mirror/swap4.eli 2097152 0 2097152 0%
Total 25165824 0 25165824 0%
root@freenas[~]# gmirror list
Geom name: swap0
State: COMPLETE
Components: 2
Balance: load
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 3259427990
Type: MANUAL
Providers:
1. Name: mirror/swap0
Mediasize: 17179869184 (16G)
Sectorsize: 512
Mode: r1w1e1
Consumers:
1. Name: ada1p3
Mediasize: 17179869184 (16G)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 544768
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: (null)
GenID: 0
SyncID: 1
ID: 2672264905
2. Name: ada0p3
Mediasize: 17179869184 (16G)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 544768
Mode: r1w1e1
State: ACTIVE
Priority: 1
Flags: (null)
GenID: 0
SyncID: 1
ID: 3125543285

Geom name: swap1
State: COMPLETE
Components: 2
Balance: load
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 1440968696
Type: MANUAL
Providers:
1. Name: mirror/swap1
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Mode: r1w1e1
Consumers:
1. Name: mfid9p1
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 65536
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: NONE
GenID: 0
SyncID: 1
ID: 2484355730
2. Name: mfid8p1
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 65536
Mode: r1w1e1
State: ACTIVE
Priority: 1
Flags: NONE
GenID: 0
SyncID: 1
ID: 2878922721

Geom name: swap2
State: COMPLETE
Components: 2
Balance: load
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 4049243210
Type: MANUAL
Providers:
1. Name: mirror/swap2
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Mode: r1w1e1
Consumers:
1. Name: mfid7p1
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 65536
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: NONE
GenID: 0
SyncID: 1
ID: 933727995
2. Name: mfid6p1
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 65536
Mode: r1w1e1
State: ACTIVE
Priority: 1
Flags: NONE
GenID: 0
SyncID: 1
ID: 228284537

Geom name: swap3
State: COMPLETE
Components: 2
Balance: load
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 4165360929
Type: MANUAL
Providers:
1. Name: mirror/swap3
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Mode: r1w1e1
Consumers:
1. Name: mfid5p1
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 65536
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: NONE
GenID: 0
SyncID: 1
ID: 801299533
2. Name: mfid4p1
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 65536
Mode: r1w1e1
State: ACTIVE
Priority: 1
Flags: NONE
GenID: 0
SyncID: 1
ID: 2323783043

Geom name: swap4
State: COMPLETE
Components: 2
Balance: load
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 2217129449
Type: MANUAL
Providers:
1. Name: mirror/swap4
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Mode: r1w1e1
Consumers:
1. Name: mfid3p1
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 65536
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: NONE
GenID: 0
SyncID: 1
ID: 1264056469
2. Name: mfid2p1
Mediasize: 2147483648 (2.0G)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 65536
Mode: r1w1e1
State: ACTIVE
Priority: 1
Flags: NONE
GenID: 0
SyncID: 1
ID: 1532570608

root@freenas[~]#

this is on TrueNAS 13.0

Is there a way to "fix" it, or am is just out of luck? I don't really need the swap, but I'd like to know.

Also, the "disks" menu item does not show the 10 disks for data

Ideas?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Is there a way to "fix" it, or am is just out of luck? I don't really need the swap, but I'd like to know.
While there's still the "replace disk workaround" on 13.0 (waiting on U1 for the fix to the GUI for that), you can't do the normal replacement of a disk in the GUI... but let's assume that we're talking about 13.0 U1 or 12.8 U1...

Offline the disk

Wipe it.

Replace it with the same disk in the GUI (you may need to force a refresh of the GUI in the browser to have that disk appear again as an option).

Wait for resilver to complete.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
and the SWAP partitions on mfid0/1 are NOT being used, but the ones on ada0/1 (boot) and all the other mfid* drives are
Actually that's quite normal... I think it goes to a maximum of 8 partitions, so if you have more than that available, it makes sense you have some unused ones.
 

lrosenman

Dabbler
Joined
Oct 22, 2021
Messages
17
Aha, that ALSO explains when I added 6 new 8TB drives it set swap partitions up, but isn't using them. Thanks!
 
Top