- Joined
- May 28, 2011
- Messages
- 10,996
So I'm curious if FreeNAS will work properly if there is no SWAP file present.
Currently when you create a pool (Volume) it creates a swap file of 2GB (default) for each drive. This can be reduced to 1GB via the GUI before creating the pool.
I have read concerns about the swap file in that the swap file is made up of all the swap partitions on each drive and is treated as a single partition in that should the swap file be in use and a single hard drive failure should occur, the swap file would be broken/corrupt because some of the data is no longer accessible. I have been unable to test this myself since I have been unable to get my system to use the swap file.
My question is, if I create a pool through the CLI, without creating a swap partition, will FreeNAS realize there is no swap file and function properly or will it crash thinking there is a swap file present? I know it can import pools that were not created with the GUI so I assume not all pools have a dedicated swap partition.
Maybe understanding the swap file more would help, and I don't mean it's function but how the software detects it and utilizes it. Details.
Currently when you create a pool (Volume) it creates a swap file of 2GB (default) for each drive. This can be reduced to 1GB via the GUI before creating the pool.
I have read concerns about the swap file in that the swap file is made up of all the swap partitions on each drive and is treated as a single partition in that should the swap file be in use and a single hard drive failure should occur, the swap file would be broken/corrupt because some of the data is no longer accessible. I have been unable to test this myself since I have been unable to get my system to use the swap file.
My question is, if I create a pool through the CLI, without creating a swap partition, will FreeNAS realize there is no swap file and function properly or will it crash thinking there is a swap file present? I know it can import pools that were not created with the GUI so I assume not all pools have a dedicated swap partition.
Maybe understanding the swap file more would help, and I don't mean it's function but how the software detects it and utilizes it. Details.