answering inline

W dniu 2016-11-01 o 16:10, Andrew Milner pisze:
Out of curiosity - do you
a)run software other than debian, weewx, SQLite and maybe a webserver on your pi?
no, the pi is dedicated for weewx, so this is a core. Of course I have additional small programs like htop, bwm-ng and other just to monitor the pi.
b)do you regularly - eg once a month - keep your rpi sw up-to-date with update/upgrade?
yes, I do
c)do you regularly keep other software you use up-to-date?
no, because there no software that is outside system update.
d)do you make sure that you do not run experimental sw on your 'production' pi, but only on a backup pi - in case issues are raised during the experiment .....
hard to say what is experimental, I did not provide any bigger chages to the rasbian so I think there is nothing special
e)do you run fsck routinely?
no, I do it only in case of error
f)have you tried repairing the sd card by booting into single user - or touching to force fsck on boot?
2 times, I booted lapton with knoppix, put the card in reader and tried to repair, after few hours of fight - theoretically card was repaired but when I inserted it and booted system from it, the weewex was corrupted
g)do you always - 100% of the time - do orderly powerdowns and in the event of any unexpected power failures routinely do full fsck and repairs?
having pi UPS, it's nearly impossible to have unexpected power failure. This setup is also connected to the APC UPS - to make power better for electric devices.

Some of these questions are relevant in that, for example, the effects of a disorderly loss of power may not be seen until some time after the event - when the disk sector(s) in question are next accessed. Software which crashes can corrupt a disk before crashing - and if that SW is not used (because it crashed) the effect can go unnoticed for some considerable time .... and so on and so forth .....

First crash of card was done thanks to power failrure, so I invested in APC UPS and then Pi UPS
There's no need to respond to this post - it is more intended to just make sure that you are thinking of these things - since I seem to recall that you're not, for example, on the latest weewx - and seemed to have difficulties working out a simple template change to add soilTemp1 to a webpage, so I am not sure of your level of expertise in computers/Linux/RPi/weewx/etc .....

In this case what I can say - I'm little bit lazy but from the other side. I would not open opened door. If somebody has already template with soil temp, what for fight with the problem if I could use somebody else solution? If it's a problem I do not care.

Just trying to be helpful and give you some 'food for thought' ..... as I said, no need to respond!!

Andrew

Thanks for help
regards
Jacek

On 1 November 2016 at 16:25, Jacek Skowroński <[email protected] <mailto:[email protected]>> wrote:

    It's my secind pi first was pi 1b the secind is pi 3

    W dniu wtorek, 1 listopada 2016 Daniel Rich <[email protected]
    <mailto:[email protected]>> napisał(a):

        To be honest, that sounds like a bad Pi, not a bad SD card.
        The Pi is fairly tolerant of power issues, I have run them off
        of USB cables connected to other systems, USB wall power
        adaptors, and even POE adaptors with never a problem like the
        one you are seeing.

        The only thing that comes immediately to mind is to make sure
        you don't have swap enabled in your system. In general, you
        never want to run anything on a Pi that uses enough memory to
        cause swapping -- both for performance and SD write issues.
        The kind of writes that weewx does for the sqlite database and
        logging shouldn't cause enough write traffic to hit the SD
        write limits for several years (there is a really good article
        from a couple of years ago on the myth of SD write
        limitations, I'll see if I can dig it up and post it to the list).

        In all my years of using SD cards in various devices
        (PoGoPlug, Pi, an old firewall I have since retired, assorted
        tablets, etc.), I have only ever had a single card failure --
        and that was from a bad card, not any sort of write limit
        being reached.

        On Monday, October 31, 2016 at 8:25:43 AM UTC-7, Jacek
        Skowroński wrote:

            I mean crash of the rasbperry Pi

            and many errors like kernel panic connected with the
            filesystem

            Few times I had tried to get card to the PC with knoppix
            and do fsck to repair filesystem but all trials make the
            data corrupted -> I gave up and bougth new card and system
            was working for some time.

            At the begining I thought it's a case of power / stability
            of power.

            For about 6months I have PiUPS and APC UPS, APC is mainly
            for making the power more electric user friendly and to
            keep power for 5minutes. PiUPS is for keeping power for
            30minutes and then to clearly poweroff. From this time - I
            have 100% power on, but on Saturday second card failed. I
            get mail from WU about no data from station, I attached tv
            to the Pi and I had seen kernel panic because of filesystem.

            This is my problem.


            W dniu 2016-10-31 o 16:19, Daniel Rich pisze:

            Jacek,

            When you say you are seeing "corruption", what do you
            mean? In my experience SD card failures typically show as
            write or read failures, but not data corruption.

            Like Thomas, I have PI systems that have been running for
            over two years with no SD card failures. As long as you
            don't do something like enable a swap partition and run
            so much on the PI that you cause swapping, there
            shouldn't be enough data activity to hit any of the SD
            write limits for several years.

            ---
            Dan Rich<[email protected]>  |http://www.employees.org/~drich/
            <http://www.employees.org/%7Edrich/>
                                            |  "Step up to red alert!"  "Are 
you sure, sir?
                                            |   It means changing the bulb in the 
sign..."
                                            |          - Red Dwarf (BBC)

            On 2016-10-31 05:36, Jacek Skowroński wrote:

            I had 5 already

            toshiba claas 10 samsung evo pro sandisk extreme sandisk
            ultra Intenso claas 10

            in general all get corrupted after 3-4 month

            all cards had been 16-32gb

            W dniu 2016-10-31 o 13:34, Thomas Keffer pisze:
            I've been running an experiment
            <http://www.threefools.org/weewx/status/index.html> on
            how long an SD card can survive in the weewx environment.
            So far, using a Sandisk Extreme Plus, it's been running
            nearly 2 years without a problem.
            If you buy a good one, it can last quite a long time.
            What kind of card are you using?
            -tk
            On Mon, Oct 31, 2016 at 4:11 AM, Jacek Skowroński
            <[email protected]> wrote:

                great, I will update my environment with hdd.

                Regards Jacek

                W dniu 2016-10-31 o 12:09, Andrew Milner pisze:
                Yes, they work.  I use a powered usb hub because
                the rpi usb is somewhat flakey - and my fineoffset
                weather station is also going to the rpi via a
                powered usb hub.
                On Monday, 31 October 2016 11:56:48 UTC+2, Jacek
                Skowroński wrote:

                    Have You tried and it work? Could You
                    recommend any certain HDD model and usb-hdd
                    adapter model? Does it need external power
                    connector? On Monday, October 31, 2016 at
                    10:39:57 AM UTC+1, gjr80 wrote:

                        Hi again,

                        As usual Google is your friend - search
                        for 'boot raspberry Pi from USB disk' and
                        you will find a plethora of replies, many
                        of which have tutorials or links to tutorials.

                        Gary

                -- You received this message because you are
                subscribed to a topic in the Google Groups
                "weewx-user" group. To unsubscribe from this
                topic, visit
                
https://groups.google.com/d/topic/weewx-user/atRpRzKrlyk/unsubscribe
                
<https://groups.google.com/d/topic/weewx-user/atRpRzKrlyk/unsubscribe>.
                To unsubscribe from this group and all its topics,
                send an email to
                [email protected] more options,
                visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
                -- 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
                <https://groups.google.com/d/optout>.

            -- You received this message because you are subscribed
            to a topic in the Google Groups "weewx-user" group. To
            unsubscribe from this topic, visit
            https://groups.google.com/d/topic/weewx-user/atRpRzKrlyk/unsubscribe
            
<https://groups.google.com/d/topic/weewx-user/atRpRzKrlyk/unsubscribe>.
            To unsubscribe from this group and all its topics, send
            an email to [email protected]. For more
            options, visit https://groups.google.com/d/optout
            <https://groups.google.com/d/optout>.

            -- 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
            <https://groups.google.com/d/optout>.

            -- You received this message because you are subscribed
            to a topic in the Google Groups "weewx-user" group. To
            unsubscribe from this topic, visit
            https://groups.google.com/d/topic/weewx-user/atRpRzKrlyk/unsubscribe
            
<https://groups.google.com/d/topic/weewx-user/atRpRzKrlyk/unsubscribe>.
            To unsubscribe from this group and all its topics, send
            an email to [email protected]. For more
            options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.

        -- You received this message because you are subscribed to a
        topic in the Google Groups "weewx-user" group. To unsubscribe
        from this topic, visit
        https://groups.google.com/d/topic/weewx-user/atRpRzKrlyk/unsubscribe
        <https://groups.google.com/d/topic/weewx-user/atRpRzKrlyk/unsubscribe>.
        To unsubscribe from this group and all its topics, send an
        email to [email protected]. For more
        options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
    -- You received this message because you are subscribed to a topic
    in the Google Groups "weewx-user" group. To unsubscribe from this
    topic, visit
    https://groups.google.com/d/topic/weewx-user/atRpRzKrlyk/unsubscribe
    <https://groups.google.com/d/topic/weewx-user/atRpRzKrlyk/unsubscribe>.
    To unsubscribe from this group and all its topics, send an email
    to [email protected]
    <mailto:[email protected]>. For more
    options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>. -- You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/atRpRzKrlyk/unsubscribe. To unsubscribe from this group and all its topics, send an email to [email protected] <mailto:[email protected]>. For more options, visit https://groups.google.com/d/optout.

--
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