----------------------------------------------------------------------------
---- 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.