|
Be careful of Synology......Second Synology NAS Failure in 5 Months - YouTube
I recently moved my 10 year old QNap TS509Pro from UK to Cyprus, wrapped it up well, and carried it in my suitcase. Dead on arrival wont power on....took it to bits, poked about, power supply starts ok with jumper on ATX, but no amount of wiggling on any other jumpers or plugs etc made any difference. Fortunately had no critical data on it, and I had also lost the key for the 5 drive bays. Needless to say it has been ripped apart now and the HDDs have been re-purposed.
Happy hangover for when you wake up
|
|
|
|
|
Hi all,
Probably I'll start this next year playing with a Raspberry Pi.
I'm worried about the SDCard corruption given an unexpected shutdown due to a power loss.
I would like to know if I should worry about it and if there is any UPS system that any of you have tried with a Raspberry Pi that could shut it down gracefully if a power loss happens.
After all this... Thank you all and HAPPY NEW YEAR YOU ALL!
|
|
|
|
|
Build one yourself. The Pi could run for days on one of my RC model batteries. In the old days of self built 8 bit computers it was not rare to keep the computer and the static memory in standby. Usually this took not much more than the battery and a few transistors and diodes. The battery was charged during normal operation and started supplying the RAMs as soon as the power failed. You could build something similar for the Pi, but for the main supply, not just for the RAMs. That actually makes it simpler. Just don't use a Lithium something battery. They don't like to be charged in such a crude manner and react really badly to overcharging.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Joan M wrote: Hi all,
Probably I'll start this next year playing with a Raspberry Pi.
I'm worried about the SDCard corruption given an unexpected shutdown due to a power loss.
I would like to know if I should worry about it and if there is any UPS system that any of you have tried with a Raspberry Pi that could shut it down gracefully if a power loss happens.
After all this... Thank you all and HAPPY NEW YEAR YOU ALL! [beer] [beer] [beer] [beer] [beer] [beer] [beer]
Mobile power | JB Hi-Fi[^], just keep it plugged in to power and side step the mains power adapters for the Pi.
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
A Pi's power draw is so minimal that a small UPS could power it for days/weeks.
BTW, if you're concerned with SD card corruption, boot from a USB thumb drive. It's much faster booting and corruption is not an issue (or at least not nearly as big of one).
Here's a helpful booting hint. If you switch to booting from a USB thumb drive, and after you move your OS to the thumb drive, reformat the SD card (fat 32) and insert it into the SD card reader. It takes much less time for the OS to boot if there's an empty SD card inserted than if it wasn't.
Here's the thumb drive I use in all of my Pi's - https://www.amazon.com/gp/product/B00SGPG6I6/ref=oh_aui_detailpage_o06_s00?ie=UTF8&psc=1[^]
It's 32gb, fast (USB 3.0), and when they update the Pi to have USB 3, it'll boot even faster. Fast is good.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
hum... why the corruption possibility is reduced? Isn't the problem the same? I mean, if anything is reading/writing and the power is removed... problems should happen... or am I missing anything here?
I'm not worried on keeping the Pi working for days, I just want it to ensure it will shut down properly if there's a power outage, and given the Pi will be placed far away from people, I wanted to remove the power to shut it down...
Thanks for comenting!
|
|
|
|
|
Well, why would you want to shut it down at all? If it's "far away from people", someone would have to go turn it back on. Put a big enough UPS behind it, and it will run for months. I think a small UPS (no bigger than 650VA, should be more than large enough for even extended power outages.
SD cards are prone to corruption (file corruption notwithstanding). That's why booting from a USB thumb drive is preferable. Putting the Pi on a UPS will mean never having to worry about either. I was simply recommending what I do on my Pi's. (I personally have been burned before by the "corrupted SD card" thing - never again.)
Amazon has a crapload of UPS's for less than $50 that will fill the bill for you.
If you insist on having the Pi shutdown at loss of power, you can still do that via the UPS. I know that there's an app for Linux and APC UPSs, but then again, there's the hassle of sending someone to turn the Pi back on.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
modified 31-Dec-18 9:42am.
|
|
|
|
|
I think I'll go this way, the APC UPS daemon and put a switch there...
That way I'm fully covered:
- If they leave for holidays and want to shut all the devices down, they can just switch power OFF.
- If there is a power outage the UPS will do the work.
- If for any reason any of the softwares there hangs, then they'll be able to reset it easily.
Even I would prefer something like PiJuice Hat, it seems they are having stock problems... And I have not found any replacement that looks good enough...
Thank you John!
|
|
|
|
|
You can also remote in with the terminal, and reset or shutdown. There are ramifications when you connect anything to the Pi pin header (the PiJuice thing). Tread carefully.
You can also get a local Pi to test the apc connnectivity stuff before deploying it to the remote location. If power outages are brief, a small UPS should do the job nicely. You should also be able to have the Pi email you when the UPS kicks on/off, or setup a web app on the pi that you can connect to to keep an eye on things.
Automation is cool once it's setup correctly.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Working in this field and having been bitten many times over the years, our general rule of thumb is to write as little as possible to the boot device. I have no idea why booting from an SD card or a USB drive would make any difference - the corruption is a file system issue. It typically occurs when you are writing to the file system structures
A boot operation is typically read only. I have products in factories that have to run for years, so we have come up with approaches to minimize writes to anything important. For example, diagnostics are collected using a USB drive. Working storage is ram, the results are copied to the USB, the boot device is not touched. Logging is another issue. What we've found is that if writing only occurs on a user commanded basis, typically you don't lose power during that operation .
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
I have 3 Pi's that I am playing with. There is nothing graceful about shutting one down. You just kill the power. I bought a cheap battery UPS and run it with one of them and it works, ie: the Pi continues to run when you kill the power but I still have to kill the UPS power when I want to shut down. I haven't experienced any corruption from the shut down procedure but I do have one experimental OS that doesn't boot anymore (which may be from corruption but seems like more of a video problem).
<sig notetoself="think of a better signature">
<first>Jim</first> <last>Meadors</last>
</sig>
|
|
|
|
|
Terminal in and issue the "shutdown -r" command. Voila! Graceful shutdown.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
In the old days (~thirty years ago), a UPS would have a "dry contact" that would be closed when there is power and it would open when power is removed. We would use an open serial port and wire the RTS line to one side of the contact and the CTS line to the other side of it. Then we set one signal high and monitor the other one and this would tell us when we had power. I am certain you could easily do something similar if you have a UPS with a relay contact. I don't know if they have them any more.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
|
Thinking around two corners, this also explains why so few birds eat at McDonald's.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Looks like a snowman with a red scarf to me.
|
|
|
|
|
...in the UK, we have Mass stabbings[^]
39 people?
What happened, did they form a queue?
[edit]
They changed the article as more news came in: the original didn't mention the party, or that the whole party was arrested for not cooperating; it just said "Man stabbed, 39 arrested for attempted murder". Spoilsports.
[/edit]
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
modified 31-Dec-18 8:41am.
|
|
|
|
|
When I first saw the article, I thought 39 people had been stabbed. But 39 against one!?
/ravi
|
|
|
|
|
He was clearly a popular fellow ... but
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Some people going one better (or 27) than Murder on The Orient Express?
I'll get me coat...
|
|
|
|
|
What a bunch of Brutes!
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
Et tu?
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Initially, I thought that this was a database-design error, with a one-to-many the wrong way around, but it turns out that the victim was only stabbed once, so it's a one-to-one relationship, and they often cause problems (although I believe that more stabbings, divorces, etc, are caused by one-to-two relationships).
Nutshell version: I blame Oracle.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
I finally got SWMBO migrated to Linux (Mint)! I am now in a Windows-free environment at home (not counting the Windows 7 VM I use for the occassional hobby dev work).
She hasn’t used the machine yet, so the true test has yet to be performed.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
John Simmons / outlaw programmer wrote: She hasn’t used the machine yet, so the true test has yet to be performed.
If she's like my wife, she'll find 10 ways to break it that you never thought possible.
|
|
|
|
|