Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.

Swap allocation broken in 12.0 nightly

Description

Hi folks,

Version: TrueNAS-12.0-MASTER-202004071325

instead of two mirror pairs TrueNAS configures one three-way mirror:

freenas-pmh-backup# swapinfo
Device 1K-blocks Used Avail Capacity
/dev/mirror/swap0.eli 16777216 0 16777216 0%
freenas-pmh-backup# gmirror status
Name Status Components
mirror/swap0 COMPLETE ada3p1 (ACTIVE)
ada2p1 (ACTIVE)
ada1p1 (ACTIVE)
freenas-pmh-backup# gpart show
=> 40 5860533088 ada0 GPT (2.7T)
40 88 - free - (44K)
128 33554432 1 freebsd-swap (16G)
33554560 5826978568 2 freebsd-zfs (2.7T)

=> 40 5860533088 ada1 GPT (2.7T)
40 88 - free - (44K)
128 33554432 1 freebsd-swap (16G)
33554560 5826978568 2 freebsd-zfs (2.7T)

=> 40 5860533088 ada2 GPT (2.7T)
40 88 - free - (44K)
128 33554432 1 freebsd-swap (16G)
33554560 5826978568 2 freebsd-zfs (2.7T)

=> 40 5860533088 ada3 GPT (2.7T)
40 88 - free - (44K)
128 33554432 1 freebsd-swap (16G)
33554560 5826978568 2 freebsd-zfs (2.7T)

=> 40 537234688 ada4 GPT (256G)
40 88 - free - (44K)
128 537234600 1 freebsd-zfs (256G)

=> 40 537234688 ada5 GPT (256G)
40 88 - free - (44K)
128 537234600 1 freebsd-zfs (256G)

=> 40 61865904 ada6 GPT (30G)
40 532480 1 efi (260M)
532520 61308928 2 freebsd-zfs (29G)
61841448 24496 - free - (12M)

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Bug Clerk 
April 14, 2020 at 1:08 PM

William Gryzbowski 
April 9, 2020 at 1:23 PM

Well, that does seem like a bug at first glance.

Patrick M. Hausen 
April 9, 2020 at 8:57 AM

Admin philosophy aside - when I set up my pool like this it stil creates a single three-way mirror for swap:

pool: fusion state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM fusion ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gptid/07df41ba-7a3f-11ea-b40e-0cc47afa3c72 ONLINE 0 0 0 gptid/08070e83-7a3f-11ea-b40e-0cc47afa3c72 ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 gptid/07ed410b-7a3f-11ea-b40e-0cc47afa3c72 ONLINE 0 0 0 gptid/07f9ddc8-7a3f-11ea-b40e-0cc47afa3c72 ONLINE 0 0 0 special mirror-2 ONLINE 0 0 0 gptid/060f8f8a-7a3f-11ea-b40e-0cc47afa3c72 ONLINE 0 0 0 gptid/06433a9c-7a3f-11ea-b40e-0cc47afa3c72 ONLINE 0 0 0 errors: No known data errors

Patrick M. Hausen 
April 8, 2020 at 8:37 PM

Ok ... no matter what will be coming out of this. I don't like systems changin $stuff under the hood without me knowing, I am root, I control how things are set up. I want computers to do as I say, not try to guess what I intend.

I can live with a TrueNAS doing weird things no human sysadmin I know would. It's still the best system around.

Best regards,
Patrick

William Gryzbowski 
April 8, 2020 at 7:38 PM

If you are hugely dependent on swap space, I'm sorry but you have much bigger problems to worry about.

Complete

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

More fields

Katalon Platform

Created April 8, 2020 at 7:23 AM
Updated July 1, 2022 at 4:49 PM
Resolved April 14, 2020 at 1:08 PM