Void64
Cadet
- Joined
- Nov 10, 2018
- Messages
- 8
TrueNAS-13.0-U6.1
New install. Using two 480G enterprise grade SSD's in a zfs mirrored boot pool. Upon install, chose to create the swap on the boot disks. (which is fine, we realize they're not used hardly at all, if ever)
Crated the main zpool for data. By default this caused TrueNAS to move the swap and create 2G mirrors on every device. (I get it). But I already have a mirrored zpool on the boot devices with a TON of space that's not being used.
Destroyed the pool and recreated it with the swap size set to "0". This worked as expected on the primary storage pool. No swap partitions.
However, when I did this and rebooted the server, TrueNAS will only pick up ONE of the SSD's and not the gmirror partition. In fact, it looks like it destroyed the gmirror and now I only have two "adaXp3" partitions as type "freebsd-swap"
I tried manually recreating the gmirror, and I can stop swap, create the mirror and then turn the swap back on for the mirror, but if I reboot, it reverts again by destroying the gmirror and goes back to using one one of the two drives.
Mirror before with swap:
After reboot,, partition table is the same, however mirror is gone and I see:
I would expect this to be "/dev/mirror/swap0.eli" which is what it was before I rebuilt the primary storage pool.
Is there a way to have gmirror persist and have TrueNAS use that device? I'm not really sure why it keeps destroying the gmirror. That has always been persistent within FreeBSD, so something must keep breaking and recreating it.
I know /etc/fstab is not persistent either, so it's not like I can list the new device there. I'm trying to figure out how/where TrueNAS devices how/what devices to use for swap when it starts... not having much luck.
New install. Using two 480G enterprise grade SSD's in a zfs mirrored boot pool. Upon install, chose to create the swap on the boot disks. (which is fine, we realize they're not used hardly at all, if ever)
Crated the main zpool for data. By default this caused TrueNAS to move the swap and create 2G mirrors on every device. (I get it). But I already have a mirrored zpool on the boot devices with a TON of space that's not being used.
Destroyed the pool and recreated it with the swap size set to "0". This worked as expected on the primary storage pool. No swap partitions.
However, when I did this and rebooted the server, TrueNAS will only pick up ONE of the SSD's and not the gmirror partition. In fact, it looks like it destroyed the gmirror and now I only have two "adaXp3" partitions as type "freebsd-swap"
I tried manually recreating the gmirror, and I can stop swap, create the mirror and then turn the swap back on for the mirror, but if I reboot, it reverts again by destroying the gmirror and goes back to using one one of the two drives.
Mirror before with swap:
Code:
Name Status Components mirror/swap0 COMPLETE ada1p3 (ACTIVE) ada0p3 (ACTIVE) => 40 937703008 ada0 GPT (447G) 40 532480 1 efi (260M) 532520 33554432 3 freebsd-swap (16G) 34086952 903610368 2 freebsd-zfs (431G) 937697320 5728 - free - (2.8M) => 40 937703008 ada1 GPT (447G) 40 532480 1 efi (260M) 532520 33554432 3 freebsd-swap (16G) 34086952 903610368 2 freebsd-zfs (431G) 937697320 5728 - free - (2.8M)
After reboot,, partition table is the same, however mirror is gone and I see:
Code:
swapinfo Device 1K-blocks Used Avail Capacity /dev/ada1p3.eli 16777216 0 16777216 0%
I would expect this to be "/dev/mirror/swap0.eli" which is what it was before I rebuilt the primary storage pool.
Is there a way to have gmirror persist and have TrueNAS use that device? I'm not really sure why it keeps destroying the gmirror. That has always been persistent within FreeBSD, so something must keep breaking and recreating it.
I know /etc/fstab is not persistent either, so it's not like I can list the new device there. I'm trying to figure out how/where TrueNAS devices how/what devices to use for swap when it starts... not having much luck.