LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-10-2009, 04:30 AM   #1
floss
LQ Newbie
 
Registered: Oct 2006
Location: INDIA
Distribution: Redhat, suse
Posts: 9

Rep: Reputation: 0
Verifying data of storage


I am moving the data from netapp storage to sun 7410 storage.
I am using rsync to move all the data from old storage to the new storage.
The total size of the data is 4TB.
After i have all the data on the new storage i would like to do an integrity check of the entire data.

What could be the best solution ? I know i could do a md5sum recursively on the entire 4TB data but i guess it would takes ages to complete.

Any suggestion would be highly appreciated.

Thanks,
FLOSS
 
Old 11-10-2009, 07:34 AM   #2
chiragrk
Member
 
Registered: Nov 2009
Location: India
Distribution: Xandros, Ubuntu
Posts: 74

Rep: Reputation: 16
The only other thing that comes to my mind if compare the file sizes. Doing md5sum sequentially would take ages on a slow machine, but on a machine with faster CPU it shouldn't be very slow. How about trying to do it parallely? In other words dont wait for md5sum output for file1 before proceeding to check md5sum for file2.
 
Old 11-10-2009, 08:44 AM   #3
floss
LQ Newbie
 
Registered: Oct 2006
Location: INDIA
Distribution: Redhat, suse
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the reply.

I think i would tried that as the storage is accessible from different linux box.
 
Old 11-10-2009, 07:34 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You may this relevant
Quote:
Note that rsync always verifies that each transferred file was
correctly reconstructed on the receiving side by checking a whole-file checksum that is generated as the file is transferred, but that automatic after-the-transfer verification has nothing to do with this option's before-the-transfer lqDoes this file need to be updated?rq check.
Sounds like rsync does the check for you.
http://linux.die.net/man/1/rsync
 
Old 11-15-2009, 01:43 PM   #5
floss
LQ Newbie
 
Registered: Oct 2006
Location: INDIA
Distribution: Redhat, suse
Posts: 9

Original Poster
Rep: Reputation: 0
My management was not convinced about md5sum and rsync. They insisted that i write a script to compare the old and the new storage after rsync.

I wrote a script which look like below. The csv file was later imported to database and compared.


#!/bin/sh

echo `date`
RWXSIZEFILE=/home/floss/rwxsizefile.csv
rm -f $RWXSIZEFILE
touch $RWXSIZEFILE

find /u02 -name "*" -exec stat -c "%A, %s, %n" {} \; | tee -a $RWXSIZEFILE

echo `date`

Last edited by floss; 11-15-2009 at 01:46 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIOS "Verifying DMI Pool Data ..." Hangs... lmancini Linux - Hardware 1 06-09-2007 04:02 AM
Verifying dmi pool data Russ S. Linux - Newbie 3 09-16-2006 01:51 PM
data storage in applications dave bean Programming 3 01-18-2005 05:39 PM
Hang at "Verifying DMI Pool Data" NomDeGuerre Linux - Newbie 6 10-12-2004 03:04 AM
Verifying DMI Data Pool Lock Up (Hardware Related?) scotth Linux - Hardware 9 09-02-2004 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration