Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

cpio "too large to archive in current mode"

807557Apr 26 2010 — edited Jun 27 2010
Hello:

I am running Solaris 10 u8 on a V490. Whenever I encounter large files with cpio it gives me the error "too large to archive in current mode"

For example one file is a 12 GB file.

This is the command I am running.
find . -depth -print | cpio -cvo > /nfsshare/my-zone/root/opt/par/dir1/source_data.cpio

For some background I am moving zones from one SAN storage area to another. I have tried several variations of tar and cpio to move these files.
I always encounter some problem. Either the ACLs get messed up (switched to nobody), or the tar ball extracts without errors but there are lots of missing files.

Thanks
bg

Comments

807557
If you have access to both Storeg Systems from the hosts, or access from host to host, you can try something like (assuming autofs is running):

1. Login into new server
# (cd /net/old-server/your-directory;find .)|cpio -pdv /new-directory
OR
# cd /destination-directory
# (cd /net/old-server/source-directory; tar cEf - .)|tar xvf -
If you do not have autofs running and do not want to have it running or any other problem with autofs, you can use SSH to transfer files using tar
http://www.cyberciti.biz/faq/howto-use-tar-command-through-network-over-ssh-session/

If You still have problems with SSH, you can also use tar on top of telnet

Cheers
Andy
807557
Quoting cpio man page:

281 ... " .....................................To transfer a large file
282 ... (8 Gb - 1 byte), the header format can be
283 ... tar|TAR, ustar|USTAR, or odc only."

"header format" configured with -H option.
SEE ALSO ...largefile(5).


737 ... " The new pax(1) format, with a command that supports it (for
738 ... example, pax , tar, or cpio), should be used for large
739 ... files. The cpio command is no longer part of the current
740 ... POSIX standard and is deprecated in favor of pax. "
1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 25 2010
Added on Apr 26 2010
2 comments
1,442 views