- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Verify data move
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2007 05:17 PM
тАО01-04-2007 05:17 PM
Verify data move
with this command.
tar -cf - HUNDX|remsh hpdxha "(cd /data2/concordx;tar -xf -)"
What is the best way to verify it is complete and not corrupted?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2007 07:31 PM
тАО01-04-2007 07:31 PM
Re: Verify data move
$ find . -type f -exec cksum + | sort -k3,3
268918048 189 ./ABC/fffff
...
You might want to use "remsh hpdxha -n ..." above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2007 07:42 PM
тАО01-04-2007 07:42 PM
Re: Verify data move
if you are not confident in the error reporting you could nfs mount and then copy.
After your copy you could then also run dircmp or diff to compare directories.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2007 08:01 PM
тАО01-04-2007 08:01 PM
Re: Verify data move
- You can check the total size of the files using "du -sk ."
This will put some load on your machine for a bit, though. But if that's acceptable, you'd know all files are copied and the used diskspace is the same, which might ease your mind.
Also consider checking out rsync for such things, it can be quite useful:
http://samba.anu.edu.au/rsync/
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2007 12:58 AM
тАО01-05-2007 12:58 AM
Re: Verify data move
if you are concerned about performance, you may also try to compress the TAR files before actually transferring the files to another location.
hope this helps too!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2007 01:46 AM
тАО01-05-2007 01:46 AM
Re: Verify data move
# ll -R HUNDX|wc -l
15646
# du -sk HUNDX
16404730 HUNDX
FROM system
# ll -R HUNDX|wc -l
15646
# du -sk HUNDX
16404930 HUNDX
How does this make you feel?
cksum HUNDX
174277909 67584 HUNDX
cksum HUNDX
2081901881 65536 HUNDX
I tried to just copy a directory to a different location and the chksum is different. Must be an directory inode difference or empty directories.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2007 02:04 AM
тАО01-05-2007 02:04 AM
Re: Verify data move
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2007 02:41 AM
тАО01-05-2007 02:41 AM
Re: Verify data move
I agree with Dennis and Clay --- 'cksum' is the most reliable way to confirm success.
The value of 'fbackup/frecover' too is that not only does it handle largefiles should they exist, but it can also keep sparse files sparse.
Do not bother to evaluate the size of directories on the source and target points. Once a directory has been populated with files and space therein consumed, the deletion of a file does *not* return the now free directroy space. Hence you will often find that the target directory after the copy of its files is smaller in size than the source directory from which the files came.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2007 09:17 PM
тАО01-07-2007 09:17 PM
Re: Verify data move
you might also want to check rdist. This tool is intendet to maintain identical copies on several hosts and can be used for a filetransfer. I also has some reporting and comparison options. Do a man rdist for more informations.
For a second look at the copied files i would also do a cksum on all files and compare the sorted output from source and target.
Kind regards
Stefan
BTW: Happy New Year
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 05:49 AM
тАО01-08-2007 05:49 AM
Re: Verify data move
1. On the source system, do:
find
2. tar and gzip the data, copy to the target system, gunzip and untar.
3. Do the find(1) command in step 1 on the target system.
4. Finally, do a cksum of the two /tmp/cksum.out files on the two systems. They should be identical. If they are not, move one to the other system (with a new name) and do a diff to see which files got corrupted.
-Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2007 05:57 AM
тАО01-08-2007 05:57 AM
Re: Verify data move
it does the checksumming on the fly which provides FAR better performance especially when handling large files or file sets.
in Your case I'd do:
rsync -arHlS HUNDX hpdxha:data2/concordx/
rsync is available in the HP-UX Internet Express.