1835033 Members
2471 Online
110073 Solutions
New Discussion

error when unzipping

 
Ravinder Singh Gill
Regular Advisor

error when unzipping

Guys I am trying to unzip a file and I get the following error. It is a big file. Can anyone help?

system:/u01/oradata/VIMC_DEV/AP# unzip paf1.zip
Archive: paf1.zip
inflating: paf.txt
paf.txt: write error (disk full?). Continue? (y/n/^C)
27 REPLIES 27
Kent Ostby
Honored Contributor

Re: error when unzipping

looks like you don't have room on the disk for both the zip file and the temporary file it is using to unzip the new file.

Look for another file system to unzip the file on.
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Ravinder Singh Gill
Regular Advisor

Re: error when unzipping

There is about 10GB free before I unzip the file and the unzipping stops at about 2GB (that is when this problem occurs).
Raj D.
Honored Contributor

Re: error when unzipping

Ravi ,

Seems you have no space on /u01/oradata/VIMC_DEV/AP.
Check it once again.
Also try to unzip the file in a different filesystem. How big is the file ?

You can use also use the preview option of unzip to see the zip file contenet.

hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Ravinder Singh Gill
Regular Advisor

Re: error when unzipping

Before trying unzip:

videv01:/u01/oradata/VIMC_DEV/AP# ls -ltr
total 957376
-rwxrwxrwx 1 oracle dba 490171306 Jan 3 17:15 paf1.zip
videv01:/u01/oradata/VIMC_DEV/AP# bdf .
Filesystem kbytes used avail %used Mounted on
/dev/vgBS23/lvVIMCDEV
54001664 41449072 12455296 77% /u01/oradata/VIMC_DEV
videv01:/u01/oradata/VIMC_DEV/AP#


Then trying unzip:

videv01:/u01/oradata/VIMC_DEV/AP# unzip paf1.zip
Archive: paf1.zip
inflating: paf.txt
paf.txt: write error (disk full?). Continue? (y/n/^C)

After:

-rwxrwxrwx 1 oracle dba 490171306 Jan 3 17:15 paf1.zip
-rw-r--r-- 1 root sys 2147483647 Jan 3 17:56 paf.txt
videv01:/u01/oradata/VIMC_DEV/AP# bdf .
Filesystem kbytes used avail %used Mounted on
/dev/vgBS23/lvVIMCDEV
54001664 43546232 10374520 81% /u01/oradata/VIMC_DEV


When it gives the error and asks if I want to cancel or continue...should i continue? what will this cause to happen?
Sanjay_6
Honored Contributor

Re: error when unzipping

Hi,

you need to have largefiles enabled to create a file larger than 2GB in the Filesystem. The file that you are extracting "paf.txt" is more than 2GB in size and while inflating the file extraction stops after extracting 2GB of it.

You need to enable "largefiles" for the Filesystem.

To chekk if you have largefiles enabled, try,

fsadm -v /mount_point

If this says "nolargefiles", enable largefiles to proceed with this FS, else use another one that has largefiles enabled.

Hope this helps.

Regds
HGN
Honored Contributor

Re: error when unzipping

Hi

You need to use the unzip utility which supports more that 2GB, we had the same issue and put the unzip which can do more than 2GB.

Rgds

HGN
HGN
Honored Contributor
Ravinder Singh Gill
Regular Advisor

Re: error when unzipping

how do i check if our unzip utility supports files greater then 2GB?

i have read around and been told if the unzip tool used was compiled with 32bit mode, it will not support files greater then 2gb.

Also please note largefiles is enabled.
Arunvijai_4
Honored Contributor

Re: error when unzipping

Hello, Two options here, 1) Check you have largefile support enabled in your FS.

# fsadm -v /mount_point

2)You can use jar utility which comes with Java, # /opt/java1.4/bin/jar -xvf

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Arunvijai_4
Honored Contributor

Re: error when unzipping

If you want 64 bit version of jar, its in

/opt/java1.4/bin/PA_RISC2.0/jar

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Peter Godron
Honored Contributor

Re: error when unzipping

Ravinder,
to check whether you have 32 or 64 bit version of unzip:
which unzip
cd to the directory returned from the first command
file unzip

if PA-RISC then its 32bit, if ELF then 64bit
Ravinder Singh Gill
Regular Advisor

Re: error when unzipping

Peter, what do you mean? can you please explain.

Thanks.
Peter Godron
Honored Contributor

Re: error when unzipping

Ravinder,
copy of output on my box:
$ which unzip
/usr/contrib/bin/unzip
$ cd /usr/contrib/bin
$ file unzip
unzip: PA-RISC1.1 shared executable dynamically linked
$
This would indicate to me my version of unzip is a 32 bit executable.

I think for large file extract you will require 64bit version
Ravinder Singh Gill
Regular Advisor

Re: error when unzipping

Also we don't have jar 1.4 we only have jar 1.2 and 1.3. Also if this is a normal zip file will the jar utility work okay on it?
Ravinder Singh Gill
Regular Advisor

Re: error when unzipping

Ok I have done what Peter said. I can confirm that the version of unzip is a 32bit executable. How can this be resolved?
Arunvijai_4
Honored Contributor

Re: error when unzipping

Hello,

That should be fine. (Java 1.2 or 1.3)

-Arun

http://forums1.itrc.hp.com/service/forums/helptips.do?#28
"A ship in the harbor is safe, but that is not what ships are built for"
Ravinder Singh Gill
Regular Advisor

Re: error when unzipping

so should i be doing?

/opt/java1.3/bin/jar -xvf paf1.zip

or

/opt/java1.3/bin/PA_RISC2.0/jar -xvf paf1.zip

??
Arunvijai_4
Honored Contributor

Re: error when unzipping

/opt/java1.3/bin/PA_RISC2.0/jar -xvf paf1.zip

will be OK

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Peter Godron
Honored Contributor

Re: error when unzipping

Ravinder,
unzip 64bit is available at:
http://hpux.cs.utah.edu/hppd/hpux/Misc/unzip-5.52/
Ravinder Singh Gill
Regular Advisor

Re: error when unzipping

just my luck /opt/java1.3/bin/PA_RISC2.0/ does not contain jar

any suggestions?
Ravinder Singh Gill
Regular Advisor

Re: error when unzipping

Will /opt/java1.3/bin/jar -xvf
not work with 64bit?

Ravinder Singh Gill
Regular Advisor

Re: error when unzipping

sori my mistake ... jar was inside a subdirectory
Ravinder Singh Gill
Regular Advisor

Re: error when unzipping

i did the following and got the following error:

videv01:/u01/oradata/VIMC_DEV/AP# SC2.0/native_threads/jar -xvf paf1.zip <
/usr/lib/dld.sl: Can't open shared library: ../../../build/HP_UX/lib/PA_RISC2.0/server/libjvm.sl
/usr/lib/dld.sl: No such file or directory
Abort(coredump)
Ravinder Singh Gill
Regular Advisor

Re: error when unzipping

how ever i have checked and /usr/lib/dld.sl does exist:

videv01:/usr/lib# ls -ltr | grep dld
-r-xr-xr-x 1 bin bin 188416 Jul 17 2002 dld.sl
-r-xr-xr-x 1 bin bin 12334 Jul 17 2002 libdld.1
-r-xr-xr-x 1 bin bin 24576 Jul 17 2002 libdld.2
lrwxr-xr-x 1 root sys 10 Sep 20 2002 libdld.sl -> ./libdld.2
lrwxr-xr-x 1 root sys 10 Sep 20 2002 libdld.0 -> ./libdld.1