Sir.Robin
Guru
- Joined
- Apr 14, 2012
- Messages
- 554
I found this on a blog:
FreeNAS by default creates a swap partition on each drive, and then stripes the swap across them so that if any one drive fails there’s a chance your system will crash. We don’t want this.
System, Advanced…
Swap size on each drive in GiB, affects new disks only. Setting this to 0 disables swap creation completely (STRONGLY DISCOURAGED). Set this to 0.
Open the shell. This will create a 4GB swap file (based on https://www.freebsd.org/doc/handbook/adding-swap-space.html)
System, Tunables, Add Tunable.
Variable=swapfile, Value=/usr/swap0, Type=rc.conf
Can someone with the knowledge on this please explain? Is this true and should one do this?
FreeNAS by default creates a swap partition on each drive, and then stripes the swap across them so that if any one drive fails there’s a chance your system will crash. We don’t want this.
System, Advanced…
Swap size on each drive in GiB, affects new disks only. Setting this to 0 disables swap creation completely (STRONGLY DISCOURAGED). Set this to 0.
Open the shell. This will create a 4GB swap file (based on https://www.freebsd.org/doc/handbook/adding-swap-space.html)
Code:
dd if=/dev/zero of=/usr/swap0 bs=1m count=4096 chmod 0600 /usr/swap0
System, Tunables, Add Tunable.
Variable=swapfile, Value=/usr/swap0, Type=rc.conf
Can someone with the knowledge on this please explain? Is this true and should one do this?
Last edited: