LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 08-18-2006, 02:42 AM   #1
matonb
LQ Newbie
 
Registered: Aug 2006
Posts: 14

Rep: Reputation: 0
Copying a large quantity of files (1.5Million) to a new disc


I could use some advice!

I need to move (copy) a large quantity of files from one disc to another, the size of the data isn't a problem (around 36Gb) but the fact there are about 1.5million files to handle!

I tried to do a straight copy using cp and a list file names generated by one of our databases but it only managed to copy 51,000 in almost 3Hours.

I did a test using tar, which managed to archive 17Gb on a similar filesytem in about 34 minutes (no compression).

The question is, given the number of files how long approximately will it take to untar the 1.5million files as the killer is going to be file creation time.

FYI the destination disc is a 300Gb SCSI U320 10K

Any help in getting a ball pack time frame would be greatly appreciated.
 
Old 08-19-2006, 12:39 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,136
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Are you trying to do this over a network or between 2 disks on the same machine? "I tried to do a straight copy using cp"
must be on the same box then.

If on the same machine it will certainly be faster than over network. Put both disks on the same machine and mount them. 36 GB will take a little while though.

DD will get a whole partition for you
http://www.linuxquestions.org/questi...hreadid=366442
 
Old 08-21-2006, 02:08 AM   #3
matonb
LQ Newbie
 
Registered: Aug 2006
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks teckk,

Currently opted to use rsync, as a trial showed that even with rsync running at full tilt it didn't have a noticable performance impact as far as our users were concerned.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Copying large files to FAT32 sketch7 Linux - General 11 10-22-2007 10:13 AM
Problem copying large amount of files from IDE external case in Fedora C4 TruthSeeker Linux - Newbie 8 10-26-2005 02:04 AM
Automate disc copying esears Linux - Software 3 05-04-2005 12:31 AM
Samba hangs up at copying many large files ogcu Linux - Networking 1 05-19-2004 01:29 AM
Error copying large files from cdrom patrickyeo Linux - Hardware 1 11-03-2002 06:46 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 05:51 PM.

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