Hello all!
I'm in the process of evaluating several different NAS operating systems and I'm currently giving TrueNAS SCALE a go.
While installing TrueNAS SCALE I was given the option to put a 16GB SWAP partition onto my boot device.
I decided to add the Partition and now my partition configuration looks like this:
Notice the 2GB Linux swap partition on sda1. This partition does not appear to be in use by the system. Only the 16GB on the boot device (behind a dm-crypt mapper, is swap encrypted for security?)
Nor does it even contain a valid swap signature.
If I do not choose to create a 16GB SWAP on the bootdevice the 2GB SWAP partition on the pool disks is also created but still not used (swapon not outputting anything)
What's the reason to create an empty SWAP partition on disk like this? Should I do anything about it (run mkswap and add it with swapon)?
Cheers
I'm in the process of evaluating several different NAS operating systems and I'm currently giving TrueNAS SCALE a go.
HP ProLiant Microserver Gen8
Intel Xeon E3-1265Lv2 8-core
16GB ECC Memory
Boot device: 64GB MicroSD Card in the Servers MicroSD slot
Disk for testing: 500GB WD Blue 3.5"
I am aware that using a MicroSD as boot medium is discouraged, but I accept the possible performance impact and looked out to pick a slightly more expensive card geared towards 24/7 use. The SD Card is connected trough a USB 2.0 bridge.
Intel Xeon E3-1265Lv2 8-core
16GB ECC Memory
Boot device: 64GB MicroSD Card in the Servers MicroSD slot
Disk for testing: 500GB WD Blue 3.5"
I am aware that using a MicroSD as boot medium is discouraged, but I accept the possible performance impact and looked out to pick a slightly more expensive card geared towards 24/7 use. The SD Card is connected trough a USB 2.0 bridge.
I decided to add the Partition and now my partition configuration looks like this:
Code:
NAME TYPE SIZE MOUNTPOINT PARTTYPENAME VENDOR MODEL TRAN sda disk 465.8G ATA WDC_WD5000AAKX-07U6AA0 sata ├─sda1 part 2G Linux swap └─sda2 part 463.8G Solaris /usr & Apple ZFS sdb disk 59.6G HP iLO Internal_SD-CARD usb ├─sdb1 part 1M BIOS boot ├─sdb2 part 512M EFI System ├─sdb3 part 43.1G Solaris /usr & Apple ZFS └─sdb4 part 16G Linux swap └─sdb4 crypt 16G [SWAP]
Notice the 2GB Linux swap partition on sda1. This partition does not appear to be in use by the system. Only the 16GB on the boot device (behind a dm-crypt mapper, is swap encrypted for security?)
Code:
NAME TYPE SIZE USED PRIO /dev/dm-0 partition 16G 0B -2
Nor does it even contain a valid swap signature.
Code:
swapon: /dev/sda1: read swap header failed
If I do not choose to create a 16GB SWAP on the bootdevice the 2GB SWAP partition on the pool disks is also created but still not used (swapon not outputting anything)
Code:
NAME TYPE SIZE MOUNTPOINT PARTTYPENAME VENDOR MODEL TRAN sda disk 59.6G HP iLO Internal_S usb |-sda1 part 1M BIOS boot |-sda2 part 512M EFI System `-sda3 part 59.1G Solaris /usr & Apple ZFS sdb disk 465.8G ATA WDC_WD5000 sata |-sdb1 part 2G Linux swap `-sdb2 part 463.8G Solaris /usr & Apple ZFS
What's the reason to create an empty SWAP partition on disk like this? Should I do anything about it (run mkswap and add it with swapon)?
Cheers