I have had luck with sandisk drives right out the package. What guessed means is that try a usb drive fresh out of the package without mounting it on the computer prior to adding it to vera. Just take it straight from the package and plug it into vera.
Ok, that’s what I planned to try today. The one I had been using is “new” but it might have been plugged in to determine how large it is, so it might be “tainted.”
It used to be that the script creates a 512MB ext3 partition, so you’d want something that is at least big enough for that. I currently have one of those Staples-branded Relay micro drives in Vera 3 for USB logging. It was $4.99, after coupon, a while back, for the 4GB version.
I finally got my USB logging working. I think free memory was so low, that Vera had trouble downloading the packages to unzip. I have to delete the LuaUPnP.log after startup to get things to work.
I also re-did the scripts pointed to earlier to watch for errors, and ran them one by one, deleting the log files in between steps.
Now I have moves to USB logging and a USB swap file.
Before USB swap:root@MiOS_17744:~# free
total used free shared buffers
Mem: 30540 29664 876 0 1776
Swap: 0 0 0
Total: 30540 29664 876
After USB swap:root@MiOS_17744:~# free
total used free shared buffers
Mem: 30540 29524 1016 0 1432
Swap: 65528 0 65528
Total: 96068 29524 66544
Thanks for the pointers!! We’ll see how it works now.
Also, my load averages are still settling down, but around 0.77.
Just to update…things have been running just fine for over a day now.
I forgot I had my Vera on a timer to reboot every night, so my swap file was deactivated, so it looks like just doing USB logging was enough, but to be safe, I plan to use the swap file as well.
The wiki says “Please note that rebooting Vera will require a manual start of the swapfile.”
Can the “swapon” command be added to /etc/init.d/rcS or is that not safe? Or maybe as some LUUP code/cron job that runs a script every hour or so to see if the swap file is in use, and if not, enable it?
Hi everyone, I have tried this and manage to create the swap partition and activated, but since I activated it, it seems it is not being used be Vera since it is always in 0 used. Is that normal? Or how can I make Vera use it?
This is my output of free:
total used free shared buffers
Mem: 62480 54224 8256 0 3404
Swap: 65532 0 65532
Total: 128012 54224 73788
[quote=“Vreo, post:30, topic:169987”]Hi everyone, I have tried this and manage to create the swap partition and activated, but since I activated it, it seems it is not being used be Vera since it is always in 0 used. Is that normal? Or how can I make Vera use it?
This is my output of free:
total used free shared buffers
Mem: 62480 54224 8256 0 3404
Swap: 65532 0 65532
Total: 128012 54224 73788
[/quote]Do you have a Vera lite? That isn’t as memory constrained as a Vera 2, and the swap isn’t really needed as much. It shows as available, but will only be used if needed (as a last resort).
Yes, I have a VeraLite. I opt for the swap file because almost everytime I excecute an All-off scene that turns all my devices off and send some alerts, Vera crashes. It is not always, so I think it is a memory issue. Also it sometimes crashes when executing PLEG actions.