theone11 / swapfile_plugin Goto Github PK
View Code? Open in Web Editor NEWSwap File plugin for unRAID
Swap File plugin for unRAID
So according to the BTRFS wiki and my own testing, BTRFS foesn't support having swap files upon it. This isn't indicated in the web UI, and as such confused me as to why the file was failing to be used with no clear error output. Considering on unraid 6.2 at least the default filesystem for the cache disk is BTRFS, it would be nice if there were a check in the plugin to make sure the swap file isn't on a BTRFS filesystem.
Just tried to install plugin, and unraid gave an error
"Feb 17 14:45:49 Tower rc.swapfile[26573]: Icon downloaded from icon hosting server
Feb 17 14:45:49 Tower rc.swapfile[26574]: Icon does not exist locally - cannot copy to emhttp plugin folder"
I manually downloaded it to the plugin folder and then manually copied to usr/local. . .etc.
By the way, the plugin worked, it just did not display an icon in settings before I manually copied it over
Thanks
I have my swap on my cache drive /mnt/cache/swap and when I start into Maintenance Mode it tries to create the file even though the disk is not mounted and fulls up the tmpfs
I have it set to start on Start Swap file during array mount
Cache is btrfs
Apr 14 09:49:47 emhttpd: Local plugin is the same version as on hosting server (v2015.09.21)
Apr 14 09:49:47 rc.swapfile[19664]: Starting swap file during array mount ...
Apr 14 09:49:47 emhttpd: Starting swap file during array mount ...
Apr 14 09:49:47 rc.swapfile[19666]: Creating swap file /mnt/cache/Swap/swapfile please wait ...
Apr 14 09:49:47 emhttpd: Creating swap file /mnt/cache/Swap/swapfile please wait ...
Apr 14 09:49:49 emhttpd: Setting up swapspace version 1, size = 6.4 GiB (6894563328 bytes) ----should be 8gb ran out of space in tempfs
Apr 14 09:49:49 emhttpd: LABEL=UNRAID-SWAP, UUID=c7f7af2b-2d0b-4527-83f5-b6bc4aa1c120
Apr 14 09:49:49 emhttpd: swapon /mnt/cache/Swap/swapfile
Apr 14 09:49:49 rc.swapfile[19682]: Swap file /mnt/cache/Swap/swapfile created and started
Apr 14 09:49:49 emhttpd: Swap file /mnt/cache/Swap/swapfile created and started
let me know if you need more info
Hello @theone11,
Please forgive me for using github issues in this manner, I did also PM you on the unRAID forums but I havent yet gotten a response. Are you still maintaining this plugin? And if so are you willing to accept pull requests?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.