Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Huge LV transfer 1

Status
Not open for further replies.

mixmouse

Programmer
Mar 22, 2001
26
CA
I have a huge LV,more than 130G needs to be transfered to from old disk using JFS to a new disk using JFS2. I tried to use "cp", but cp command has a buffer limited, so I can not use "cp -R *" to move files.
I think about the tape backup, but it takes too long to finish, also I don't have enough tapes to do store this huge LV. What about disk mirroring?

Is there any other ways to do this job?

Thanks.
 
Code:
cd /olddir
find . -print | cpio -pd /newdir

"man cpio" for details.

Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
There is another way to do this, using tar, as follows:

cd /olddir
tar -cf - | ( cd /newdir ; tar -xvf - )

The first tar creates an archive stream on its stdout, and a shell reads it into the stdin of the another tar after changing working directory.

The second tar is set to verbose to see if all files are transferred in order.

--Trifo
 
tar won't work if any of the files are over 2GB in size.


Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

 
Yes, you are right. AiX native tar (especially in version 4.3.3) can't handle big files over 2 Gigs. GNU tar can do it. Backup/restore commands also work.

--Trifo
 
also the pax command - as an alternative to tar

Mike

"Deliver me from that bane of civilised life; teddy bear envy."

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top