SirNight
Posts: 36
Joined: Fri Jul 18, 2014 1:01 pm

Does B+ resistant against SD Card corruption ?

Fri Jul 18, 2014 1:13 pm

Hello All,

We do have a Raspberry Pi Type B Farm for a specific purpose application. There are currently 650 Raspis..
As I am working on a high number of computer nodes, SD Card corruption becomes pain in the neck..
I use Kingston SD10V/8GB which is listed on Compatible SD & SDHC Cards for Raspi.
All firmwares & softwares are up to date.

My question is: Does Raspberry Pi B+ resistant against SD Card corruption ?

Also What can I do with my current hardware...

Thanks,
Last edited by SirNight on Fri Jul 18, 2014 3:13 pm, edited 1 time in total.

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: Does B+ resistant against SD Card corruption & Power los

Fri Jul 18, 2014 1:49 pm

In terms of data corruption protection against power loss there is no difference between the Model B+ and B.
If you want to protect your Pi from loss of power then use a UPS / battery backup device.

Richard S.

SirNight
Posts: 36
Joined: Fri Jul 18, 2014 1:01 pm

Re: Does B+ resistant against SD Card corruption & Power los

Fri Jul 18, 2014 1:53 pm

redhawk wrote:In terms of data corruption protection against power loss there is no difference between the Model B+ and B.
If you want to protect your Pi from loss of power then use a UPS / battery backup device.

Richard S.
Hi Richard,
Obviously I have UPS for that number of Raspi.. I asked the power loss for making the topic useful for everyone.
My main issue is SD Card corruption. "sudo halt" nicely shutdowns.. No reboot..

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 11004
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Does B+ resistant against SD Card corruption & Power los

Fri Jul 18, 2014 3:08 pm

Nothing will protect against power loss at just the wrong moment when using SD-Cards, (for example if you remove power at the exact moment the card is doing "Wear leveling" it will cause corruptions) , also SD-cards were never designed to be a full HD replacement, like SSD's are. They can and will go bad, especially ones that use a cheap simple and primitive flash controller.

User avatar
RaTTuS
Posts: 10103
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Does B+ resistant against SD Card corruption ?

Fri Jul 18, 2014 3:28 pm

never shut down ;-p
I've not had any corruption in the last 12months - what are you doing to them ?
how much writing do they get ?
what is being run on them ?
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

rln
Posts: 160
Joined: Wed Apr 09, 2014 1:43 pm
Location: Sweden
Contact: Website

Re: Does B+ resistant against SD Card corruption ?

Fri Jul 18, 2014 5:36 pm

SirNight wrote:Hello All,
I use Kingston SD10V/8GB which is listed on Compatible SD & SDHC Cards for Raspi.
Also What can I do with my current hardware...
Hi
There are are a number of preventive actions to minimize the SD card wear:
  • Use a "read only" operatingsystem, that is, one that never writes to the SD-card during normal operation.
  • Try another filesystem, such as f2fs which was made for flash devices.
  • Increase the SD-card capacity. The bigger the better for spreading out the wear.
  • Modify your application to store data on a network server instead of in the SD-card. Resort to the SD-card only when the power is failing (the UPS can send an alarm) or when the network is down.
My project Nard SDK http://www.arbetsmyra.dyndns.org/nard/ can handle the first two issues for you (but there are others as well, just search this forum). The remaining you need to adapt to your particular project.

/Ronny
Last edited by rln on Fri Jul 18, 2014 7:32 pm, edited 1 time in total.
Author of the robust Nard distro http://www.nard.se

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 20712
Joined: Sat Jul 30, 2011 7:41 pm

Re: Does B+ resistant against SD Card corruption ?

Fri Jul 18, 2014 6:59 pm

It does sound more like SD cards wearing out than corruption, so see previous post.

Just me being nosey, but controlling a bitcoin farm?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Please direct all questions to the forum, I do not do support via PM.

User avatar
RaTTuS
Posts: 10103
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Does B+ resistant against SD Card corruption ?

Sat Jul 19, 2014 7:11 am

jamesh wrote:It does sound more like SD cards wearing out than corruption, so see previous post.

Just me being nosey, but controlling a bitcoin farm?
aha Dave is that you
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
Jim JKla
Posts: 2219
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK

Re: Does B+ resistant against SD Card corruption ?

Sat Jul 19, 2014 7:31 am

If and it looks like you are running loads of SD then I suggest you watch this video

Link to Video

This video does get a little heavy in places but it does explain some of the flakieness about some SD cards and the abundance of fakes out there.
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick

SirNight
Posts: 36
Joined: Fri Jul 18, 2014 1:01 pm

Re: Does B+ resistant against SD Card corruption ?

Sat Jul 19, 2014 9:48 am

Jim JKla Thanks for the video link. Long but good to know.

Ronny Nilsson Thanks for the recommendations. I 've checked your work, and I will give a go with Nard SDK.. Let's see if we can implement it on our project. Also, I will keep your Donationware notice on my mind.

jamesh So James, you think my SD cards are not reliable or somehow wearing out easily. It there any testing tool or sth like this to prove it? Well, yes, kind of a bitcoin farm.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 20712
Joined: Sat Jul 30, 2011 7:41 pm

Re: Does B+ resistant against SD Card corruption ?

Sat Jul 19, 2014 10:34 am

SirNight wrote: Jim JKla Thanks for the video link. Long but good to know.

Ronny Nilsson Thanks for the recommendations. I 've checked your work, and I will give a go with Nard SDK.. Let's see if we can implement it on our project. Also, I will keep your Donationware notice on my mind.

jamesh So James, you think my SD cards are not reliable or somehow wearing out easily. It there any testing tool or sth like this to prove it? Well, yes, kind of a bitcoin farm.
SD cards have a finite life, less than that of HD's for example, since each bit has a limited read/write/erase cycle. There is firmware in the card to do wear levelling, but some are better than others. SO the best bet is to reduce the amount of writing that you do to the card, as I think it quite difficult to determine which cards are better or worse at wear levelling.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Please direct all questions to the forum, I do not do support via PM.

Return to “General discussion”