-
-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Drive_Manager | Allow separate swap partition on Btrfs formatted drive #1715
Comments
maybe this will help or have it integrated with dietpi as an option? |
I am having a hard time understanding why i cant swap on btrfs. Its a fairly modern filesystem for Linux, is the os moving away from swap ? |
@mgherghi Overall btrfs still seems to have some issues, that prevent most distributions from using it as default. I am not sure about the performance issues with swap on btrfs, but I think there are good reasons why this is not possible without workarounds. Thus I would still name ext4 as default Linux fs for good reasons and as this is fact for most Linux distros 😉. @elRadix
@Fourdee |
I'am not personally keen on running a loopback to achieve a swapfile on btrfs. As hacks goes, its long winded and the performance impact negates its purpose. We do offer multiple filesystem support in DietPi, allowing users to experiment outside of the standard ext4, however, there is always downsides (EG: FAT doesn't support permissions). Regardless, if our users want the ability to run a swapfile on btrfs, and Sebastian Philipp's workaround offers a solution, we can try to integrate it at the very least. But, this will be a low priority task. |
Further reference: File corruption disk is mentioned there as well, if file system includes multiple drives (internal RAID), workaround via loopback workaround mentioned as well to provide bad performance. |
Why bother? Anybody who prefers btrfs for the files (like me) should simply set up a separate swap partition. Anything else is insanity. |
@leggewie This is actually something we could offer instead from within DietPi-Drive_Manager, if a
|
Linux 5.0 supports swap file on BTRFS: https://kernelnewbies.org/LinuxChanges/#Linux_5.0.Btrfs_swap_file_support Alternative reasonable request: Allow using an existing partition as swap partition. So it's then up to the user to create the partition manually. Our script will just toggle swap on it. |
I mark this as closed. Swap partition support is a separate topic and generally not related to BTRFS. |
Creating a bug report/issue:
Not sure if this is possible, but may i create a swap on my btrfs disk ?
Required Information:
cat /DietPi/dietpi/.version
?uname -a
?Additional Information (if applicable):
Expected behaviour:
Actual behaviour:
Steps to reproduce:
Did you submit a
dietpi-bugreport
?Extra details:
The text was updated successfully, but these errors were encountered: