When tar is packaged, the following error occurs: reached end-of-file before expected solution.

Source: Internet
Author: User
Tags tmp file

----------------------------------------------------------------------------

---- This is andkylee's personal originality. Please repost it with respect to the author's Labor achievements;

---- The original source must be specified for reprinting.
:
Http://blog.csdn.net/andkylee

--- 2010-05-12 11:18:43


---- Keyword: Tar AIX ulimit jfs2 package compression Decompression

----------------------------------------------------------------------------

When packaging a folder with tar in a ibm-aix5.3, an error is reported: Tar: 0511-194 reached end-of-file before expected.

Command: tar-CVF/tmp/sybase12503.tar/Sybase/sybase12x

 

Solution:

 

If you run ulimit-F, the returned result is 2097151, indicating that the system limits the file size to 2097151*512 = 1g.

Check the/tmp/sybase12503.tar file that is not successfully packaged. The size of the file is exactly 1073741312 (bytes ).

 

You can modify/Etc/security/limits

File fsize to set to unlimited:

Default: <br/> fsize =-1 <br/>To enable /Etc/security/limits

File changes take effect. You must log off the current logon session and log on again. After you log on again, run ulimit-A and the returned result is unlimited. At this time, the change has taken effect, and there is no limit on the file size that users can use. However
How to Set Up, Aix
The standard file systems on all have 2 GB file size restrictions, if you need to create a file larger than 2 GB, You need to enable large files
Option to create a file system. Then run tar-CVF/tmp/sybase12503.tar/Sybase/sybase12x to package/Sybase/sybase12503.tar into/tmp/sybase12503.tar. -Bash-3.2 $ LS-Al/tmp/sybase12503.tar <br/>-RW-r -- 1 root system 1142118400 May 12 :17/tmp/sybase12503.tarSupplement: the same error is reported when files packed with tar exceed 2 GB. This is the reason for the file system. It should not be jfs2 or big file enable's JFS file system. -Bash-3.2 $ LSFS-Q/tmp <br/> name nodename Mount pt vfs size options auto accounting <br/>/dev/hd3 --/tmp jfs2 20971520 -- Yes NoThe local/tmp file system is jfs2 and should support files larger than 2 GB.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.