Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^6: DateTime throwing an error

by nachtmsk (Acolyte)
on Apr 16, 2021 at 12:37 UTC ( [id://11131373]=note: print w/replies, xml ) Need Help??


in reply to Re^5: DateTime throwing an error
in thread DateTime throwing an error

Hi,

I built the Pi this past January, it's been running since then. The 2019 Timestamp on the Module file was (I assume) the most recent version of that particular file at the time of install. I installed the Module this past January through Cpan. But I agree about your suggestion in replacing the SD card with something more robust.

This just started as a fun project to monitor my property with some Pi's I had laying around the the house.

I'm wondering if the Pi can run off of an external drive enclosure in a mirrored array. I need to check on that.

Thanks very much,

Mike

Replies are listed 'Best First'.
Re^7: DateTime throwing an error
by afoken (Chancellor) on Apr 16, 2021 at 14:03 UTC
    this past January, it's been running since then. [...] But I agree about your suggestion in replacing the SD card with something more robust.

    Consider making some changes: Log only to RAM (i.e. mount a tmpfs for /var/log and some other places), keep the SD-Card mounted read-only, or - if you have the memory - put everything you need into an initramfs and don't mount the SD-Card at all. If you want to keep the logs, copy them once per day or at shutdown to the SD-Card. Logging to another system (e.g. using rsyslog) could also be an option. Also, just using the noatime or relatime mount options (see Re^4: Analyzing Files Within a Directory) could help a little bit.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re^7: DateTime throwing an error
by haukex (Archbishop) on Apr 16, 2021 at 12:45 UTC
    I built the Pi this past January, it's been running since then.

    Ah, well it could also be an early failure (Bathtub curve), especially if it's a cheap noname SD card.

    I'm wondering if the Pi can run off of an external drive enclosure in a mirrored array. I need to check on that.

    Several models do support USB mass storage boot. I run several RPis off of SD cards and they've been running fine so far; it really depends on how much you wear out the flash memory.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11131373]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-16 12:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found