JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for CCP4BB Archives


CCP4BB Archives

CCP4BB Archives


CCP4BB@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

CCP4BB Home

CCP4BB Home

CCP4BB  October 2015

CCP4BB October 2015

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: File systems, data storage and integrity, and "bitrot"

From:

James Holton <[log in to unmask]>

Reply-To:

James Holton <[log in to unmask]>

Date:

Thu, 22 Oct 2015 11:20:07 -0700

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (139 lines)

As someone who is currently trying to recover files from a RAID5 array 
that lost a second disk before it could finish rebuilding to a hot 
spare, I would certainly recommend RAID6.

I mostly use 3ware (aka LSI) hardware RAID cards, and set them to 
auto-verify for early every morning.  Some IT professionals around LBL 
tell me I'm being "mean" to my disks, but if some sector has gone bad 
I'd rather know sooner than later.  But always remember that RAID is not 
a backup, it is just a way to loose one drive without loosing data. If 
you're lucky.

To be honest, I have never really understood what a "resource fork" is 
good for, other than making copying stuff to non-HFS file systems more 
confusing.  But it is definitely true that scanning files by checking 
their "data" only won't trigger if something other than the file data is 
corrupted.  To really check for media problems, I recommend doing a "dd" 
of the entire device to of=/dev/null and watch the syslog for errors.  
Doing the whole disk at once keeps the cache from hiding bad sectors 
from you.

Pretty much all of my big volumes are XFS, and I've been much more 
pleased with it than any other fs, such as ext2/3 or ReiserFS. I've 
never tried jfs, but heard good things about it.   XFS, however, is 
definitely fast, scales very well (because it uses B-trees), you can 
defrag it while mounted.  Yes, theoretically you don't have to defrag, 
but I like to do it once a week anyway because I have gone through the 
experience of having to recover files from device with a nuked 
superblock, and it is MUCH easier if the files are all on contiguous 
blocks (defragged).  True, bttrfs, gfs, and others look promising.  They 
have been looking promising for a while. But all the rampant warning 
labels on them have given me pause.  For compression, especially 
archival compression I do like squashFS (as Scott already mentioned).  
The cool part of squashFS is that the network traffic is compressed, as 
the decompression is done on the machine that has NFS access to the 
squashFS file.  I do not use squashFS as a backup, however, it is simply 
a convenient way to keep things on spinning disk.

For backup, starting around 2000 I used to make two DVDs, for 
redundancy.  But in 2007 I did a retrospective analysis and found that 
if you can't read one DVD the chances of not being able to read the 
other DVD written with the same drive on the same day with the files in 
the same order and from the same stack of media, ... is > 50%.  So, I've 
still got 3000 images out of ~5 million that I can't recover.  The main 
failure mode of DVDs is not actually scratching but warping.  
Particularly if you store them in flip-folders.  If they warp, then most 
DVD drives can still keep the data pits in focus by servoing the read 
head as the disk spins.  Different model drives have different 
effectiveness at doing this, but if the degree of warping is high no 
drive will be able to read the files on the outside tracks of the disk.  
The solution is to put the DVD under at least volumes A, B, and C of the 
International Tables of Crystallography for a few weeks to a few 
months.  Particularly in a hot room.  Then you can usually read them 
again.  Those "scratch remover" devices have only ever made things worse 
(in my hands).

This experience taught me that having "orthogonal" failure modes is 
important.  That is, try to store your two backups as differently as 
possible.  Different media, different locations, different timing.  Yes, 
timing, don't do both your backups at the same time because if you make 
a mistake with one you are very likely to make the same mistake with the 
other.  Currently, I use one DVD and one LTO4 tape.  Both systems are 
automated by different scripts and maintained by different people (me 
and George Meigs).

I also keep byte-for-byte copies of critical system disks on offline 
drives.  That way they can be replaced quickly.  This isn't foolproof, 
of course, because a drive sitting on the shelf can still suffer from a 
bearing lock-up, but the failure rate is lower than if the drive is hot 
and spinning.  I suppose I should spin these offline drives up every 
once in a while for good measure.  Its also a good idea to burn a DVD or 
BLU-Ray image of really important system drives, but its arguably 
unnecessary to do that every day.  First and foremost, I maintain a 
written "back from the dead" procedure for critical machines.  This 
usually starts with "install Centos x.y" followed by yum commands, wget 
urls. etc.  Always a good idea to keep your own copy of installation 
tarballs (and back that up too). I try to make sure I edit these "back 
from the dead" documents every time I make configuration changes, so 
they reflect each machine's current state.  Yes, I know there are tons 
of configuration management packages out there, but to me these are just 
one more bit of software to install and keep track of versions.  Maybe 
I'm just a Luddite that way.

Oh yes, and always print out a hard copy of your cell phone contacts.  
Just in case.  There's nothing more frustrating than having 100 TB 
backed up in duplicate at work when the 10k you really need is lost 
forever.  Ever try to get files from your phone using the "iCloud" 
website?  Not as easy as you'd think.

It's true that corruption in X-ray image files is much easier to detect 
in "flat" files.  I wrote a little routine to look for an inordinate 
amount of zeroes, which is the default byte you get from failing 
devices.  The number of false positives (usually direct-beam hits or bad 
darks) is small enough to inspect manually.  This won't work on images 
without a pixel pedestal though, such as those from a Pilatus, but those 
are internally compressed anyway, so looking for long runs of zeroes 
could again be useful.

At the risk of making data recovery more problematic, I think the 
long-run solution for X-ray images is 3D file formats.  That is, x,y and 
"time" or whatever other coordinate is appropriate to stack the images.  
This is because with increasing framing rates the file creation overhead 
in the kernel of most operating systems seems to have become 
rate-limiting.  A silly limitation? To be honest most data processing 
programs are now smart enough to let you select out undesirable images 
without having to resort to deleting or re-naming the files on disk.  So 
why not instead of a directory with 36,000 files in it you have one big 
"movie"?  I think imgCIF supports that, doesn't it?

-James Holton
MAD Scientist

On 10/21/2015 12:03 PM, William G. Scott wrote:
> Dear CCP4 Citizenry:
>
> I’m worried about medium to long-term data storage and integrity.  At the moment, our lab uses mostly HFS+ formatted filesystems on our disks, which is the OS X default.  HFS+ always struck me as somewhat fragile, and resource forks at best are a (seemingly needless) headache, at least as far as crystallography datasets go.  (True, you can do HFS-compression and losslessly shrink your images by a factor of 2, or shrink your ccp4 installation, but these are fairly minor advantages).
>
> I read the CCP4 wiki page http://strucbio.biologie.uni-konstanz.de/ccp4wiki/index.php/Filesystems that summarizes some of the other options. From what I have read, there and elsewhere, it seems like zfs and btrfs might be significantly better alternatives to HFS+, but I really would like to get a sense of what others have experienced with these, or other, equally or more robust options. I don’t feel like I know enough to critically evaluate the information.
>
> Anyone know what the NSA uses?
>
> I recently created a de novo backup of some personal data on an external HFS+ drive (photos, movies, music, etc).  I was very unpleasantly surprised to find several files had been silently corrupted.  (In the case of a movie file, for example, the file would play but could not be copied. In another case, a music file would not copy, yet it had identical md5sum and sha1 checksums when compared to an uncorrupted redundant backup I had.  I’m still puzzled by this, but it suggests the resource fork might be the source of the corruption, and, more worrisome still, that conventional checksums aren’t detecting some silently corrupted data, so I am not even sure if zfs self-healing would be the answer.)
>
> Since we as a community are now encouraging primary X-ray diffraction images to be stored, I can only imagine the problem could be ubiquitous, and a discussion might be worth having.  (I apologize if this has been addressed previously; I did search the archive.)
>
> All the best,
>
> Bill
>
>
>
> William G. Scott
> Director, Program in Biochemistry and Molecular Biology
> Professor, Department of Chemistry and Biochemistry
> and The Center for the Molecular Biology of RNA
> University of California at Santa Cruz
> Santa Cruz, California 95064
> USA
>   

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager