<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: gzcat limits? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/gzcat-limits/m-p/3396187#M514459</link>
    <description>All these tests were performed on an HP-UX B.11.00 system.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;01) The gzcat utility does not handle files &amp;gt; 2gb:&lt;BR /&gt;-----------------------------------------------------------------&lt;BR /&gt;    The gzcat utility is provided by the HP product called Software&lt;BR /&gt;    Distributor (SW-DIST).  It does not handle large files as we can&lt;BR /&gt;    see from the tusc output below:&lt;BR /&gt;&lt;BR /&gt;        # which gzcat&lt;BR /&gt;        /usr/contrib/bin/gzcat&lt;BR /&gt;        # /usr/contrib/bin/gzcat -V&lt;BR /&gt;        gzcat 1.2.4 (18 Aug 93)&lt;BR /&gt;        Compilation options:&lt;BR /&gt;        DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H &lt;BR /&gt;        # ls -al OSarch.gz&lt;BR /&gt;        -rw-rw-rw-  1 root  sys    2278914411 Oct 11 16:26 OSarch.gz&lt;BR /&gt;        # (tusc -o2 /usr/contrib/bin/gzcat OSarch.gz) 2&amp;gt;&amp;amp;1 | head | tail -1&lt;BR /&gt;        stat("OSarch.gz", 0x400345a0) .................. ERR#72 EOVERFLOW&lt;BR /&gt;&lt;BR /&gt;    As you can see above, gzcat attempted to issue a "stat" system&lt;BR /&gt;    call on the large file, and that (predictably) fails with errno=72&lt;BR /&gt;    (EOVERFLOW) which basically means "Value too large to be stored in&lt;BR /&gt;    data type".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;02) The cat utility will handle files &amp;gt; 2gb:&lt;BR /&gt;------------------------------------------------------&lt;BR /&gt;    The cat utility is provided by the HP product called Core&lt;BR /&gt;    Operating System (OS-Core).  It will handle files &amp;gt; 2gb as&lt;BR /&gt;    can be seen from the following tusc output:&lt;BR /&gt;&lt;BR /&gt;        # which cat&lt;BR /&gt;        /usr/bin/cat&lt;BR /&gt;        # ident /usr/bin/cat&lt;BR /&gt;        /usr/bin/cat:&lt;BR /&gt;            $Revision: 1.13 $&lt;BR /&gt;            $Revision: 1.13 $&lt;BR /&gt;        # (tusc -o2 /usr/bin/cat OSarch.gz) 2&amp;gt;&amp;amp;1 | head -55 | tail -2&lt;BR /&gt;        open("OSarch.gz", O_RDONLY|O_LARGEFILE, 0) ..... = 3&lt;BR /&gt;        fstat64(3, 0x7a002fa8) ......................... = 0&lt;BR /&gt;&lt;BR /&gt;    As you can see from the above output, the cat utility first&lt;BR /&gt;    opens the file with attribute "O_LARGEFILE" (thus enabling large&lt;BR /&gt;    file access) and then does an fstat64 system call sucessfully.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;03) The gzip utility works on a file &amp;gt; 2gb when used in a pipe:&lt;BR /&gt;-----------------------------------------------------------------------------------&lt;BR /&gt;    Create a file bigger than the 2gb barrier (2,147,483,647 bytes):&lt;BR /&gt;        # rm -f BigFile ; touch BigFile&lt;BR /&gt;        # perl -e '$f="BigFile";syscall(129,$f,0x7fffffff)'&lt;BR /&gt;        # ls / &amp;gt;&amp;gt; BigFile&lt;BR /&gt;        # ls -la BigFile&lt;BR /&gt;        -rwxrwxrwx  1 kole  users  2147484058 Oct 11 14:47 BigFile&lt;BR /&gt;&lt;BR /&gt;    And we have the standard HP-UX gzip:&lt;BR /&gt;        # which gzip&lt;BR /&gt;        /usr/contrib/bin/gzip&lt;BR /&gt;        # /usr/contrib/bin/gzip -V&lt;BR /&gt;        gzip 1.2.4 (18 Aug 93)&lt;BR /&gt;        Compilation options:&lt;BR /&gt;        DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H &lt;BR /&gt;&lt;BR /&gt;    And we try to gzip it from the command line:&lt;BR /&gt;        # /usr/contrib/bin/gzip BigFile &amp;gt; /dev/null&lt;BR /&gt;        BigFile: Unknown error&lt;BR /&gt;    FAILURE!&lt;BR /&gt;&lt;BR /&gt;    But if we give gzip the same amount of data via a Unix pipe:&lt;BR /&gt;        # /usr/bin/cat BigFile | gzip --fast &amp;gt; /dev/null&lt;BR /&gt;        #&lt;BR /&gt;    SUCCESS!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;04) The gunzip utility works on a OS archive &amp;gt; 2gb when used in a pipe:&lt;BR /&gt;-------------------------------------------------------------------------------------------------&lt;BR /&gt;    If we have an existing OS archive &amp;gt; 2gb:&lt;BR /&gt;        # ls -al OSarch.gz&lt;BR /&gt;        -rw-rw-rw-  1 root  sys    2278914411 Oct 11 16:26 OSarch.gz&lt;BR /&gt;    &lt;BR /&gt;    Then the gunzip utility command line option fails:&lt;BR /&gt;        # /usr/contrib/bin/gunzip -c OSarch.gz  | pax -vf -&lt;BR /&gt;        OSarch.gz: Unknown error&lt;BR /&gt;        pax: The archive is empty.&lt;BR /&gt;    FAILURE!&lt;BR /&gt;&lt;BR /&gt;    But if we include gunzip as part of a Unix pipe, all is OK (and&lt;BR /&gt;    this is how it is done within Ignite's archive extract):&lt;BR /&gt;        # /usr/bin/cat OSarch.gz | /usr/contrib/bin/gunzip | pax -vf - | head -4&lt;BR /&gt;        USTAR format archive&lt;BR /&gt;        drwxr-xr-x  0 root  root          Oct 11 15:51 ./&lt;BR /&gt;        drwxr-xr-x  0 root  root          Oct  5 09:36 lost+found/&lt;BR /&gt;        dr-xr-xr-x  0 bin   bin           Oct 11 15:51 etc/&lt;BR /&gt;        -r--r--r--  0 bin   bin       184 Mar 26  2004 etc/group&lt;BR /&gt;        #&lt;BR /&gt;    SUCCESS!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;05) On a side note, gzip, gunzip and gzcat are identical:&lt;BR /&gt;---------------------------------------------------------------------------&lt;BR /&gt;    By looking at the inode number and the link count for the 3&lt;BR /&gt;    utilities (gzip, gunzip and gzcat) we can see they are all&lt;BR /&gt;    actually the same executable (delivered by SW-DIST):&lt;BR /&gt;        # ls -ali $(which gzip gunzip gzcat) &lt;BR /&gt;        33844 -r-xr-xr-x  3 bin   bin    139264 Aug  5  2003 /usr/contrib/bin/gunzip&lt;BR /&gt;        33844 -r-xr-xr-x  3 bin   bin    139264 Aug  5  2003 /usr/contrib/bin/gzcat&lt;BR /&gt;        33844 -r-xr-xr-x  3 bin   bin    139264 Aug  5  2003 /usr/contrib/bin/gzip&lt;BR /&gt;&lt;BR /&gt;    So I am not surprised they have common limitations.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;06) The pax utility can not handle a file &amp;gt; 2gb without a patch:&lt;BR /&gt;-----------------------------------------------------------------------------------&lt;BR /&gt;    First, be sure patch PHCO_30150 is NOT on the system:&lt;BR /&gt;        # swremove PHCO_30150&lt;BR /&gt;    &lt;BR /&gt;    Create a file bigger than the 2gb barrier (2,147,483,647 bytes):&lt;BR /&gt;        # rm -f BigFile ; touch BigFile&lt;BR /&gt;        # perl -e '$f="BigFile";syscall(129,$f,0x7fffffff)'&lt;BR /&gt;        # ls / &amp;gt;&amp;gt; BigFile&lt;BR /&gt;        # ls -la BigFile&lt;BR /&gt;        -rwxrwxrwx  1 kole  users  2147484058 Oct 11 14:47 BigFile&lt;BR /&gt;    &lt;BR /&gt;    Try to pax the file which is now &amp;gt; 2gb:&lt;BR /&gt;        # pax -wvf /dev/null BigFile&lt;BR /&gt;        pax: BigFile : &amp;gt; 2GB. Not Dumped.&lt;BR /&gt;    FAILURE!&lt;BR /&gt;    &lt;BR /&gt;    Now install patch PHCO_30150 (this patch can be obtained from&lt;BR /&gt;    &lt;A href="ftp://hpatlse.atl.hp.com/hp-ux_patches/s700_800/11.X/PHCO_30150" target="_blank"&gt;ftp://hpatlse.atl.hp.com/hp-ux_patches/s700_800/11.X/PHCO_30150&lt;/A&gt; ):&lt;BR /&gt;        # vpatch -a PHCO_30150&lt;BR /&gt;    &lt;BR /&gt;    Retry the pax command:&lt;BR /&gt;        # pax -wvf /dev/null BigFile&lt;BR /&gt;        BigFile&lt;BR /&gt;        #&lt;BR /&gt;    SUCCESS!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;07) And please remember:&lt;BR /&gt;-------------------------------------&lt;BR /&gt;    Please remove the BigFile (your sysadmin will thank you):&lt;BR /&gt;        # rm BigFile&lt;BR /&gt;&lt;BR /&gt;[end]&lt;BR /&gt;</description>
    <pubDate>Tue, 12 Oct 2004 14:15:54 GMT</pubDate>
    <dc:creator>John P. Kole</dc:creator>
    <dc:date>2004-10-12T14:15:54Z</dc:date>
    <item>
      <title>gzcat limits?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzcat-limits/m-p/3396181#M514453</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Looking at extracting single files from ignite make_net_recovery archives and I am having problems.&lt;BR /&gt;&lt;BR /&gt;It appears that gzcat fails (with 'unkown error') when the archive &amp;gt; 2Gb, its fine below that.&lt;BR /&gt;&lt;BR /&gt;Is this a problem with gzcat genrally, or the version I have - gzcat 1.2.4 (18 Aug 93)&lt;BR /&gt;&lt;BR /&gt;Any help appreciated!&lt;BR /&gt;&lt;BR /&gt;Tony.</description>
      <pubDate>Fri, 08 Oct 2004 05:43:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzcat-limits/m-p/3396181#M514453</guid>
      <dc:creator>Tony Scully_3</dc:creator>
      <dc:date>2004-10-08T05:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: gzcat limits?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzcat-limits/m-p/3396182#M514454</link>
      <description>See this thread: -&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=397889" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=397889&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The default version of gzip tools supplied with hpux don't support &amp;gt;2Gb files.  Update your gzip and this should sort your problem.</description>
      <pubDate>Fri, 08 Oct 2004 06:01:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzcat-limits/m-p/3396182#M514454</guid>
      <dc:creator>Simon Hargrave</dc:creator>
      <dc:date>2004-10-08T06:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: gzcat limits?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzcat-limits/m-p/3396183#M514455</link>
      <description>Simon,&lt;BR /&gt;&lt;BR /&gt;Thanks - I feel a bit stupid because I had actually scanned that posting!  Obviously I should pay more attention.&lt;BR /&gt;&lt;BR /&gt;I'll upgrade to the later gzip packages.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Tony.</description>
      <pubDate>Fri, 08 Oct 2004 06:14:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzcat-limits/m-p/3396183#M514455</guid>
      <dc:creator>Tony Scully_3</dc:creator>
      <dc:date>2004-10-08T06:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: gzcat limits?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzcat-limits/m-p/3396184#M514456</link>
      <description>The gzip/gunzip utility comes from the HP-UX product called Software Distributor (SW-DIST).&lt;BR /&gt;&lt;BR /&gt;Before replacing gzip, please read what one Ignite-UX guru once told me:&lt;BR /&gt;&lt;BR /&gt;----------------------------------------------------------------------&lt;BR /&gt;8. Ignite-UX, gzip, and large files&lt;BR /&gt;&lt;BR /&gt;There seems have been some of questions recently about Ignite-UX,&lt;BR /&gt;gzip, and large files.  There is a lot of misinformation and&lt;BR /&gt;customer confusion related to this issue as well.&lt;BR /&gt;&lt;BR /&gt;The issue of gzip/gunzip and the fact that the version shipped with&lt;BR /&gt;HP-UX doesn't support large files directly makes people think that any&lt;BR /&gt;large file issues must be because of gzip (or at the very least the&lt;BR /&gt;first thing to look at).  This is not necessarily true.&lt;BR /&gt;&lt;BR /&gt;The way that Ignite-UX uses gzip/gunzip ensures that the version&lt;BR /&gt;shipped with HP-UX works perfectly.  There was a problem back in 1999&lt;BR /&gt;and it was resolved then and has worked since.  Lets look at an&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt;If you use gzip as follows you can create a large gzipped file (this&lt;BR /&gt;is similar to the way that make_sys_image uses gzip):&lt;BR /&gt;&lt;BR /&gt;# tar cvf - . | gzip &amp;gt; /var/largefiles/a.tgz&lt;BR /&gt;&lt;BR /&gt;The gzip command will cope with whatever amount of data is being piped&lt;BR /&gt;through it by tar. To unzip the data you would do something like:&lt;BR /&gt;&lt;BR /&gt;# cat /var/largefiles/a.tgz | gzip d | tar tvf -&lt;BR /&gt;&lt;BR /&gt;This works because the shells on HP-UX support large files.  The gzip&lt;BR /&gt;command does not have to directly support large files to make this&lt;BR /&gt;work.  Of course the gzip command still won't directly operate on a&lt;BR /&gt;large file but it is usually possible to do things in a pipeline&lt;BR /&gt;instead of operating directly on a file.&lt;BR /&gt;&lt;BR /&gt;Please understand that one doesn't necessarily need to update&lt;BR /&gt;gzip when encountering large file errors from Ignite-UX and there&lt;BR /&gt;has been a lot of misinformation and myth propogated around this&lt;BR /&gt;issue.&lt;BR /&gt;&lt;BR /&gt;The only known reasons for large file errors in Ignite-UX is from&lt;BR /&gt;make_net_recovery (except when make_sys_image is used directly).&lt;BR /&gt;And typically, there errors are caused by:&lt;BR /&gt;&lt;BR /&gt;  1) NFSv2 is being used instead of NFSv3, NFSv2 only supports&lt;BR /&gt;     2Gb files and does not support large files at all.&lt;BR /&gt;&lt;BR /&gt;  2) The local or remote file system the archive or golden image&lt;BR /&gt;     is being written to does not have large file support enabled.&lt;BR /&gt;&lt;BR /&gt;When the file system does not support large files, it is gzip (from&lt;BR /&gt;within make_sys_image and make_net_recovery) that will print an error&lt;BR /&gt;about the file.  Although gzip itself could successfully write a large&lt;BR /&gt;file via a shell pipe, an error can occur when a write is attempted&lt;BR /&gt;to a file system which does not support large files.  This is not a&lt;BR /&gt;problem with gzip but rather a problem with the file system being&lt;BR /&gt;written to.&lt;BR /&gt;----------------------------------------------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Oct 2004 12:33:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzcat-limits/m-p/3396184#M514456</guid>
      <dc:creator>John P. Kole</dc:creator>
      <dc:date>2004-10-11T12:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: gzcat limits?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzcat-limits/m-p/3396185#M514457</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;I appreciate the information, but I believe in this case the issue was the version of the gzip utils that was at fault.  make_net_recovery had created an archive of over 2Gb in size.  The filesystems on both the host being archived and the NFS mounted ignite fs have largefiles on.  The archive had been created OK, but when I tried to use gzcat to extract a single file (or list of files) I got 'unspecified error'.  Updating gzip allowed me to extract a file -- I have only updated gzip on the ignite host so far, but will be doing it everywhere in case I need to use the archive 'in anger'.  Thanks once again for the info.&lt;BR /&gt;&lt;BR /&gt;Tony.</description>
      <pubDate>Tue, 12 Oct 2004 03:14:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzcat-limits/m-p/3396185#M514457</guid>
      <dc:creator>Tony Scully_3</dc:creator>
      <dc:date>2004-10-12T03:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: gzcat limits?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzcat-limits/m-p/3396186#M514458</link>
      <description>Tony,&lt;BR /&gt;&lt;BR /&gt;You are using gzcat and it will have the same limitation as gzip and gunzip in that it can not "directly" open a LARGEFILE.&lt;BR /&gt;&lt;BR /&gt;I have worked up some notes... I'll post them in a separate reply.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;jpkole</description>
      <pubDate>Tue, 12 Oct 2004 14:07:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzcat-limits/m-p/3396186#M514458</guid>
      <dc:creator>John P. Kole</dc:creator>
      <dc:date>2004-10-12T14:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: gzcat limits?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzcat-limits/m-p/3396187#M514459</link>
      <description>All these tests were performed on an HP-UX B.11.00 system.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;01) The gzcat utility does not handle files &amp;gt; 2gb:&lt;BR /&gt;-----------------------------------------------------------------&lt;BR /&gt;    The gzcat utility is provided by the HP product called Software&lt;BR /&gt;    Distributor (SW-DIST).  It does not handle large files as we can&lt;BR /&gt;    see from the tusc output below:&lt;BR /&gt;&lt;BR /&gt;        # which gzcat&lt;BR /&gt;        /usr/contrib/bin/gzcat&lt;BR /&gt;        # /usr/contrib/bin/gzcat -V&lt;BR /&gt;        gzcat 1.2.4 (18 Aug 93)&lt;BR /&gt;        Compilation options:&lt;BR /&gt;        DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H &lt;BR /&gt;        # ls -al OSarch.gz&lt;BR /&gt;        -rw-rw-rw-  1 root  sys    2278914411 Oct 11 16:26 OSarch.gz&lt;BR /&gt;        # (tusc -o2 /usr/contrib/bin/gzcat OSarch.gz) 2&amp;gt;&amp;amp;1 | head | tail -1&lt;BR /&gt;        stat("OSarch.gz", 0x400345a0) .................. ERR#72 EOVERFLOW&lt;BR /&gt;&lt;BR /&gt;    As you can see above, gzcat attempted to issue a "stat" system&lt;BR /&gt;    call on the large file, and that (predictably) fails with errno=72&lt;BR /&gt;    (EOVERFLOW) which basically means "Value too large to be stored in&lt;BR /&gt;    data type".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;02) The cat utility will handle files &amp;gt; 2gb:&lt;BR /&gt;------------------------------------------------------&lt;BR /&gt;    The cat utility is provided by the HP product called Core&lt;BR /&gt;    Operating System (OS-Core).  It will handle files &amp;gt; 2gb as&lt;BR /&gt;    can be seen from the following tusc output:&lt;BR /&gt;&lt;BR /&gt;        # which cat&lt;BR /&gt;        /usr/bin/cat&lt;BR /&gt;        # ident /usr/bin/cat&lt;BR /&gt;        /usr/bin/cat:&lt;BR /&gt;            $Revision: 1.13 $&lt;BR /&gt;            $Revision: 1.13 $&lt;BR /&gt;        # (tusc -o2 /usr/bin/cat OSarch.gz) 2&amp;gt;&amp;amp;1 | head -55 | tail -2&lt;BR /&gt;        open("OSarch.gz", O_RDONLY|O_LARGEFILE, 0) ..... = 3&lt;BR /&gt;        fstat64(3, 0x7a002fa8) ......................... = 0&lt;BR /&gt;&lt;BR /&gt;    As you can see from the above output, the cat utility first&lt;BR /&gt;    opens the file with attribute "O_LARGEFILE" (thus enabling large&lt;BR /&gt;    file access) and then does an fstat64 system call sucessfully.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;03) The gzip utility works on a file &amp;gt; 2gb when used in a pipe:&lt;BR /&gt;-----------------------------------------------------------------------------------&lt;BR /&gt;    Create a file bigger than the 2gb barrier (2,147,483,647 bytes):&lt;BR /&gt;        # rm -f BigFile ; touch BigFile&lt;BR /&gt;        # perl -e '$f="BigFile";syscall(129,$f,0x7fffffff)'&lt;BR /&gt;        # ls / &amp;gt;&amp;gt; BigFile&lt;BR /&gt;        # ls -la BigFile&lt;BR /&gt;        -rwxrwxrwx  1 kole  users  2147484058 Oct 11 14:47 BigFile&lt;BR /&gt;&lt;BR /&gt;    And we have the standard HP-UX gzip:&lt;BR /&gt;        # which gzip&lt;BR /&gt;        /usr/contrib/bin/gzip&lt;BR /&gt;        # /usr/contrib/bin/gzip -V&lt;BR /&gt;        gzip 1.2.4 (18 Aug 93)&lt;BR /&gt;        Compilation options:&lt;BR /&gt;        DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H &lt;BR /&gt;&lt;BR /&gt;    And we try to gzip it from the command line:&lt;BR /&gt;        # /usr/contrib/bin/gzip BigFile &amp;gt; /dev/null&lt;BR /&gt;        BigFile: Unknown error&lt;BR /&gt;    FAILURE!&lt;BR /&gt;&lt;BR /&gt;    But if we give gzip the same amount of data via a Unix pipe:&lt;BR /&gt;        # /usr/bin/cat BigFile | gzip --fast &amp;gt; /dev/null&lt;BR /&gt;        #&lt;BR /&gt;    SUCCESS!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;04) The gunzip utility works on a OS archive &amp;gt; 2gb when used in a pipe:&lt;BR /&gt;-------------------------------------------------------------------------------------------------&lt;BR /&gt;    If we have an existing OS archive &amp;gt; 2gb:&lt;BR /&gt;        # ls -al OSarch.gz&lt;BR /&gt;        -rw-rw-rw-  1 root  sys    2278914411 Oct 11 16:26 OSarch.gz&lt;BR /&gt;    &lt;BR /&gt;    Then the gunzip utility command line option fails:&lt;BR /&gt;        # /usr/contrib/bin/gunzip -c OSarch.gz  | pax -vf -&lt;BR /&gt;        OSarch.gz: Unknown error&lt;BR /&gt;        pax: The archive is empty.&lt;BR /&gt;    FAILURE!&lt;BR /&gt;&lt;BR /&gt;    But if we include gunzip as part of a Unix pipe, all is OK (and&lt;BR /&gt;    this is how it is done within Ignite's archive extract):&lt;BR /&gt;        # /usr/bin/cat OSarch.gz | /usr/contrib/bin/gunzip | pax -vf - | head -4&lt;BR /&gt;        USTAR format archive&lt;BR /&gt;        drwxr-xr-x  0 root  root          Oct 11 15:51 ./&lt;BR /&gt;        drwxr-xr-x  0 root  root          Oct  5 09:36 lost+found/&lt;BR /&gt;        dr-xr-xr-x  0 bin   bin           Oct 11 15:51 etc/&lt;BR /&gt;        -r--r--r--  0 bin   bin       184 Mar 26  2004 etc/group&lt;BR /&gt;        #&lt;BR /&gt;    SUCCESS!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;05) On a side note, gzip, gunzip and gzcat are identical:&lt;BR /&gt;---------------------------------------------------------------------------&lt;BR /&gt;    By looking at the inode number and the link count for the 3&lt;BR /&gt;    utilities (gzip, gunzip and gzcat) we can see they are all&lt;BR /&gt;    actually the same executable (delivered by SW-DIST):&lt;BR /&gt;        # ls -ali $(which gzip gunzip gzcat) &lt;BR /&gt;        33844 -r-xr-xr-x  3 bin   bin    139264 Aug  5  2003 /usr/contrib/bin/gunzip&lt;BR /&gt;        33844 -r-xr-xr-x  3 bin   bin    139264 Aug  5  2003 /usr/contrib/bin/gzcat&lt;BR /&gt;        33844 -r-xr-xr-x  3 bin   bin    139264 Aug  5  2003 /usr/contrib/bin/gzip&lt;BR /&gt;&lt;BR /&gt;    So I am not surprised they have common limitations.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;06) The pax utility can not handle a file &amp;gt; 2gb without a patch:&lt;BR /&gt;-----------------------------------------------------------------------------------&lt;BR /&gt;    First, be sure patch PHCO_30150 is NOT on the system:&lt;BR /&gt;        # swremove PHCO_30150&lt;BR /&gt;    &lt;BR /&gt;    Create a file bigger than the 2gb barrier (2,147,483,647 bytes):&lt;BR /&gt;        # rm -f BigFile ; touch BigFile&lt;BR /&gt;        # perl -e '$f="BigFile";syscall(129,$f,0x7fffffff)'&lt;BR /&gt;        # ls / &amp;gt;&amp;gt; BigFile&lt;BR /&gt;        # ls -la BigFile&lt;BR /&gt;        -rwxrwxrwx  1 kole  users  2147484058 Oct 11 14:47 BigFile&lt;BR /&gt;    &lt;BR /&gt;    Try to pax the file which is now &amp;gt; 2gb:&lt;BR /&gt;        # pax -wvf /dev/null BigFile&lt;BR /&gt;        pax: BigFile : &amp;gt; 2GB. Not Dumped.&lt;BR /&gt;    FAILURE!&lt;BR /&gt;    &lt;BR /&gt;    Now install patch PHCO_30150 (this patch can be obtained from&lt;BR /&gt;    &lt;A href="ftp://hpatlse.atl.hp.com/hp-ux_patches/s700_800/11.X/PHCO_30150" target="_blank"&gt;ftp://hpatlse.atl.hp.com/hp-ux_patches/s700_800/11.X/PHCO_30150&lt;/A&gt; ):&lt;BR /&gt;        # vpatch -a PHCO_30150&lt;BR /&gt;    &lt;BR /&gt;    Retry the pax command:&lt;BR /&gt;        # pax -wvf /dev/null BigFile&lt;BR /&gt;        BigFile&lt;BR /&gt;        #&lt;BR /&gt;    SUCCESS!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;07) And please remember:&lt;BR /&gt;-------------------------------------&lt;BR /&gt;    Please remove the BigFile (your sysadmin will thank you):&lt;BR /&gt;        # rm BigFile&lt;BR /&gt;&lt;BR /&gt;[end]&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Oct 2004 14:15:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzcat-limits/m-p/3396187#M514459</guid>
      <dc:creator>John P. Kole</dc:creator>
      <dc:date>2004-10-12T14:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: gzcat limits?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gzcat-limits/m-p/3396188#M514460</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;Thanks for the info.&lt;BR /&gt;&lt;BR /&gt;With the upgraded gzip tools (v 1.3.5) I can use gzcat to extract files, which is what I'm used to doing.&lt;BR /&gt;&lt;BR /&gt;I have applied the lateest pax patch prior to installing Ignite 5.4.0.&lt;BR /&gt;&lt;BR /&gt;Thanks again for the info.&lt;BR /&gt;&lt;BR /&gt;My bigger concern is why the rootdg should be more than 2Gb anyway!&lt;BR /&gt;&lt;BR /&gt;Tony.</description>
      <pubDate>Wed, 13 Oct 2004 03:17:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gzcat-limits/m-p/3396188#M514460</guid>
      <dc:creator>Tony Scully_3</dc:creator>
      <dc:date>2004-10-13T03:17:20Z</dc:date>
    </item>
  </channel>
</rss>

