Operating System - HP-UX
1832765 Members
3354 Online
110045 Solutions
New Discussion

Tricky question (cp and cpio)

 
SOLVED
Go to solution
twtandigi.com.my
Frequent Advisor

Tricky question (cp and cpio)

hi,

I would like to place a few question about cp and cpio. As i know this to commands are used to copy the files from point a to point b.
Now i have a scenario, i have a HP L-class and i would need to copy one mount point to another.

a) which commands is the best to be used to in order to get about 30G copied from one mount point to another?
b) how long would the process roughly take?
c) would there be any implication (i.e. there would be files missing during the process, how can i check it on the fly?)

Regards,
Calvin
5 REPLIES 5
Hein van den Heuvel
Honored Contributor
Solution

Re: Tricky question (cp and cpio)


Just do it. 30 GB s not enough to worry about.
At a VERY conservative 10mb/sec that is less than 1 hour.
That would seem to be less time than to ask the question here and wait for answer. An answer which will start with 'it depends' (on how many files, average size, adapter types...)

CPIO is generaly expected to perform best

Hey, How about trying both and report back here for our learning/entertainment!

Now if you need to do this ins a restricted time window with a critical application down, then most certain first try both!

Cheers,
Hein.
Ravi_8
Honored Contributor

Re: Tricky question (cp and cpio)

Hi Calvin

a) cpio since it's faster than cp
b) propable an hour
c) don't open any files, you can check the open files using "lsof" tool
never give up
twtandigi.com.my
Frequent Advisor

Re: Tricky question (cp and cpio)

This would be quite interesting...
The server i am going to perform the task is a critical server and the tricky thing to do is that the files are regularly updated.
A down time would mean an out of sync would happen.
but neverless i would still go on "Gung-HO" style to get the job do.
wish me all the best and thank you for the advise.
twtandigi.com.my
Frequent Advisor

Re: Tricky question (cp and cpio)

Another question,
the question of time...about 1 hour.
but i am having all of the disk in the same disk storage.
would this environment take a longer time to copy the files over?
Ravi_8
Honored Contributor

Re: Tricky question (cp and cpio)

Hi

Since you are saying that data is 30GB(quite huge data), yes it would take about a hour time
never give up