On Thursday, December 15, 2016 at 5:06:06 PM UTC-8, John Pierce wrote:
>
> I'm running WeeWx on a RasPi3 on a sd card.    I've got it loggging to a 
> mysql server on my FreeNAS jail but its still outputting log info every 
> cycle to /var/log/syslog, I'd like to eliminate all non-error logging to 
> the SD card.... can I get weewx to log via rsyslog or something to another 
> system?
>
> could/should I use an nfs mount for the working directories so the 
> html/image files aren't all written to the sd card each time?
>

There was a long discussion about this about a month ago, the one answer I 
thought was really cool was the setup 
in https://groups.google.com/d/msg/weewx-user/atRpRzKrlyk/4T3Wp7eRBQAJ 
where a weewx user uses tmpfs for just about everything.  I tried it on a 
pi, and it worked great.

Upside of the tmpfs approach in the linked article is that you don't have 
to pre-allocate sizes of each partition, it just magically works.   Similar 
to the wiki info, it just goes much further.

Stuff to remember:

   - if you put your html/image directory in tmpfs, you'll replay all your 
   archive info and regenerate your NOAA pages on every reboot of the pi. 
   Probably not what you want.   If you can mount your tree off your NAS that 
   might work a little better, but I'm not sure how much those writes hurt 
   anyway.


   - if you put your syslogs in tmpfs they are gone when you reboot, making 
   it harder to debug things after an event. Having a remote loghost as the 
   wiki suggests is probably the ideal solution


   - you don't want to use sqlite3 to anything other than a local 
   filesystem, according to the sqlite3 project.  But you're ok there since 
   you use mysql.


For a really standalone pi with no local data, that 'everything to tmpfs' 
method in the article above is very cool.  I'm going to go that way with my 
timelapse cam pi next time it fries its SD card, which happens occasionally 
(unfortunately).


-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to