tar를 사용하여 아카이브 할때 "아카이브하기에 너무 큽니다" 라는 메시지가 나오는 케이스를 발견했습니다.
솔라리스에서 8GB 가 넘는 백업 파일을 압축한 경우입니다. 정확하게 얘기하면 단일 파일이 8GB가 이상인 경우이고
전체 tar 파일은 파일시스템 제한이 허용하는 한도까지 만들어집니다.
영문으로는 "too large to archive" 라는 메시지가 출력됩니다.
조금 검색을 해보니 솔라리스 외에도 이런 경우가 발생하는 케이스가 보입니다.
아카이브를 할 때나 해제할 때 E옵션을 사용하는 것입니다.
tar의 manpage를 살펴보면 다음과 같습니다.
E Write a tarfile with extended headers. (Used
with c, r, or u function letters. Ignored
with t or x function letters.) When a tarfile
is written with extended headers, the modifi-
cation time is maintained with a granularity
of microseconds rather than seconds. In addi-
tion, filenames no longer than PATH_MAX char-
acters that could not be archived without E,
and file sizes greater than 8GB, are sup-
ported. The E flag is required whenever the
larger files and/or files with longer names,
or whose UID/GID exceed 2097151, are to be
archived, or if time granularity of
microseconds is desired.
이런 현상은 플랫폼이 x86이나 sparc이든 동일합니다. 확인한 버전은 SunOS 5.10입니다.
https://kr.forums.oracle.com/forums/thread.jspa?threadID=2316728
https://forums.oracle.com/forums/thread.jspa?threadID=1920265
https://forums.oracle.com/forums/thread.jspa?threadID=2162326
'*nix' 카테고리의 다른 글
Tape Device Names for Specific UNIX Platforms (0) | 2013.12.23 |
---|---|
Reducing Paging Space %Used (0) | 2013.06.19 |
AIX에서 tar.gz 압축/압축해제 방법 (0) | 2012.07.01 |
How to find the processor type in AIX OS (0) | 2011.11.20 |
Determining if there are Multiple Network Cards on a Digital Unix (OSF1) Machine (0) | 2011.11.20 |