Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jun 2024 18:30:21 +0300
From:      Artem Hevorhian <artemhevorhian@gmail.com>
To:        freebsd-stable@freebsd.org
Subject:   FreeBSD 14-0 file swapping broken.
Message-ID:  <CA%2BAExUSDxFr5kZ8dAu=iderBkJbU-9RSYj%2BybUedx5YMN3bZ9w@mail.gmail.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hello!

I would like to report that, likely, in FreeBSD version 14.0-stable, file
swapping is broken. To confirm, here is what I tried to do and what I
achieved. In order to reproduce the problem, please follow the following
steps.

I was following this tutorial
https://www.cyberciti.biz/faq/create-a-freebsd-swap-file/

I created a large swap file (8192 MiB) and saved it to /root/swap.8G.bin.

After that, I ran

sudo chmod 0600 /root/swap.8G.bin

After that, I updated fstab by adding the following line to the end.

md42 none swap sw,file=/root/swap.8G.bin 0 0

On running

sudo swapon -aq

I got the swap file working initially, and I saw it after running swapinfo.
But on reboot, it disappeared.

Thank you for your help.

Artyom.

[-- Attachment #2 --]
<div dir="auto">Hello!<div dir="auto"><br></div><div dir="auto">I would like to report that, likely, in FreeBSD version 14.0-stable, file swapping is broken. To confirm, here is what I tried to do and what I achieved. In order to reproduce the problem, please follow the following steps.</div><div dir="auto"><br></div><div dir="auto">I was following this tutorial <a href="https://www.cyberciti.biz/faq/create-a-freebsd-swap-file/">https://www.cyberciti.biz/faq/create-a-freebsd-swap-file/</a></div><div dir="auto"><br></div><div dir="auto">I created a large swap file (8192 MiB) and saved it to /root/swap.8G.bin.</div><div dir="auto"><br></div><div dir="auto">After that, I ran </div><div dir="auto"><br></div><div dir="auto">sudo chmod 0600 /root/swap.8G.bin</div><div dir="auto"><br></div><div dir="auto">After that, I updated fstab by adding the following line to the end.</div><div dir="auto"><br></div><div dir="auto">md42 none swap sw,file=/root/swap.8G.bin 0 0</div><div dir="auto"><br></div><div dir="auto">On running </div><div dir="auto"><br></div><div dir="auto">sudo swapon -aq</div><div dir="auto"><br></div><div dir="auto">I got the swap file working initially, and I saw it after running swapinfo. But on reboot, it disappeared. </div><div dir="auto"><br></div><div dir="auto">Thank you for your help. </div><div dir="auto"><br></div><div dir="auto">Artyom.</div><div dir="auto"><br></div></div>
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BAExUSDxFr5kZ8dAu=iderBkJbU-9RSYj%2BybUedx5YMN3bZ9w>