Hi!
joining the TrueNAS SCALE family almost 4 days ago, I am currently trying to understand how the OS handles swap memory.
The OS is currently running on an external SSD (Crucial MX500 via USB 3.2) on a single partition using this guide on reddit which basically edits the install script before the initial installation. During the installation I accepted the 16GB swap creation and I am also able to see the partition using
But I can also see, that each of the 4 drives are also holding a 2GB swap partition, which seems normal and could be solved via CLI.
Looking for the way linux normally seems to handles the swap I've the seen that
Also
I've also tried do
So my question is, how does SCALE handles swap and how can I utilise the 16GB swap partition created during the setup.
I think I am currently at a point where I cannot proceed due to my lack in linux knowledge. But perhaps some else does.
Thanks for any idea in advance!
joining the TrueNAS SCALE family almost 4 days ago, I am currently trying to understand how the OS handles swap memory.
The OS is currently running on an external SSD (Crucial MX500 via USB 3.2) on a single partition using this guide on reddit which basically edits the install script before the initial installation. During the installation I accepted the 16GB swap creation and I am also able to see the partition using
parted
for example.Code:
root@truenas[/mnt/ssd-storage/ix-applications]# parted /dev/sde print Disk /dev/sde: 1000GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 2097kB 3146kB 1049kB bios_grub, legacy_boot 2 3146kB 540MB 537MB fat32 boot, esp 4 540MB 17.7GB 17.2GB swap 3 17.7GB 86.4GB 68.7GB zfs 5 86.4GB 1000GB 914GB zfs
Code:
root@truenas[~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 3.6T 0 disk ├─sda1 8:1 0 2G 0 part │ └─md127 9:127 0 2G 0 raid1 │ └─md127 253:0 0 2G 0 crypt [SWAP] └─sda2 8:2 0 3.6T 0 part sdb 8:16 0 3.6T 0 disk ├─sdb1 8:17 0 2G 0 part │ └─md127 9:127 0 2G 0 raid1 │ └─md127 253:0 0 2G 0 crypt [SWAP] └─sdb2 8:18 0 3.6T 0 part sdc 8:32 0 3.6T 0 disk ├─sdc1 8:33 0 2G 0 part │ └─md126 9:126 0 2G 0 raid1 │ └─md126 253:1 0 2G 0 crypt [SWAP] └─sdc2 8:34 0 3.6T 0 part sdd 8:48 0 3.6T 0 disk ├─sdd1 8:49 0 2G 0 part │ └─md126 9:126 0 2G 0 raid1 │ └─md126 253:1 0 2G 0 crypt [SWAP] └─sdd2 8:50 0 3.6T 0 part sde 8:64 0 931.5G 0 disk ├─sde1 8:65 0 1M 0 part ├─sde2 8:66 0 512M 0 part ├─sde3 8:67 0 64G 0 part ├─sde4 8:68 0 16G 0 part └─sde5 8:69 0 851G 0 part
root@truenas# cat /etc/sysctl.conf
shows that this document doesn't seem to be used. On the other hand root@truenas# cat /etc/fstab
produces an output and seems to mount two devices. Code:
root@truenas[~]# cat /etc/fstab boot-pool/grub /boot/grub zfs relatime,defaults 0 0 tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=100m 0 0
root@truenas[~]# swapon --show
does.Code:
NAME TYPE SIZE USED PRIO /dev/dm-0 partition 2G 2G -2 /dev/dm-1 partition 2G 425.5M -3
dd
a swapfile (with chmod 600, mkswap, swapon
) using this guide which doesn't work. So my question is, how does SCALE handles swap and how can I utilise the 16GB swap partition created during the setup.
I think I am currently at a point where I cannot proceed due to my lack in linux knowledge. But perhaps some else does.
Thanks for any idea in advance!