Posts: 940
Threads: 161
Joined: Jul 2015
Reputation:
33
This was the purpose of this script
But I know that there are different LM versions and also current versions has 2 storages so the best would be if admin would prepare such script or include such monitoring in firmware.
Done is better than perfect
Posts: 4646
Threads: 24
Joined: Aug 2017
Reputation:
207
Hi
New LMs use NOR flash, industrial quality. Whole database, storage and trends are stored on to this flash. SD cards is now used only to store static files which are written once. SD was failing due to bigger amount of data was written now we hardly ever use it. Even when it will switch to read only LM will keep running as normal and everything will work just fine.
As we want to preserve the card as much as possible any script which will be checking it state will just make unnecessary additional write to it.
I don't think there is any need for such script now.
BR
------------------------------
Ctrl+F5
Posts: 940
Threads: 161
Joined: Jul 2015
Reputation:
33
But still there are a lot LMs with older version of hardware and there is such need because when you notice that your LM is read-only you can have a big lack of data which was not stored. Or you know that maybe better not to switch of or update such LM because after it will be without e.g. some scripts or some data.
So do I understand well that in the newest version there will be no SD errors in "System log"? If they will be still existing then there is no need to do some additional and unnescessary read/write because it would be enough to monitor if there are specific errors in the "System logs".
Done is better than perfect
Posts: 4646
Threads: 24
Joined: Aug 2017
Reputation:
207
When I say new version I mean version which we ship since Feb 2018.
There is no need to monitor SD as all the data you care about are stored in NOR flash.
------------------------------
Ctrl+F5
Posts: 940
Threads: 161
Joined: Jul 2015
Reputation:
33
Yes, but what about older versions?
Done is better than perfect
Posts: 4646
Threads: 24
Joined: Aug 2017
Reputation:
207
(24.09.2018, 08:29)buuuudzik Wrote: Yes, but what about older versions?
you have your scripts
------------------------------
Ctrl+F5
Posts: 940
Threads: 161
Joined: Jul 2015
Reputation:
33
It was prepared for LM4 and it was working well so if you has also some LM with old hardware (before FEB 2018) than it should work. Maybe you still have some errors in System logs. If they're match to: "mmcblk*..*: (.*error" than it will work.
Done is better than perfect
Posts: 221
Threads: 45
Joined: Nov 2015
Reputation:
2
Does this script still work?
My SL has apparently been read only the last 10 days and when I get it swapped I would like to have something to check the state of the SD card at intervals.
I tried this script now, but it gives 0 errors..
Posts: 940
Threads: 161
Joined: Jul 2015
Reputation:
33
Look in System config -> Status -> System logs. If you didn' replace SD card then still you should have such errors like "mmcblk*..*: (.*error*..*)" but if you've changed SD card then probably you don't have such errors because they are on old SD card. But to be sure if this script is good for your LM version you have to compare above pattern with errors in you System logs, because this is how I've created this script.
When you have such error do the picture of logs, alerts, errors, System logs, because then it is helpful for others and also for helpers how to really solve the problem or create monitoring for it, and not only replace the SD card when it breaks in unknown circumstances and after unknown period of time and unknown manufacturer.
Done is better than perfect
Posts: 7764
Threads: 42
Joined: Jun 2015
Reputation:
447
There's no 100% working way to figure out whether SD card is working fine or switched to read-only without full system reset. Even then not all cards report that they are in read-only state.
Posts: 940
Threads: 161
Joined: Jul 2015
Reputation:
33
29.10.2018, 07:14
(This post was last modified: 29.10.2018, 07:15 by buuuudzik.)
Ok, but with EMBS suggestions which manufacturer cards to use there is such possibility to achieve. Probably nobody who has LM doesn't buy the cheapest noname card, but more like Samsung, Sandisk or other to have a peace of mind for as much time as it is possible
Done is better than perfect