AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  Download abends at 2 GB

    Posted Thu May 12, 2016 01:00 PM

    Originally posted by: JoachimB


    I'm trying to download a 3,2GB .iso image from the web using wget (https).

    I'm root on an AIX 6.1 system. My fsize is set to -1 (unlimited) and ulimit -a shows me "unlimited" for any variable.

    The download always abnormally ends after 2GB, the message issued is: "Cannot write to 'aix61000_64_os_0903_us_1.gbl.dvd_iplno.iso' (Error 0)."

    The target filesystem still has room for 11GB.

    What may be the problem?



  • 2.  Re: Download abends at 2 GB

    Posted Thu May 12, 2016 03:39 PM

    Originally posted by: DaveMarquardt


    I think you hit the usual obvious stuff.  But I bet wget is a 32-bit application that wasn't compiled to handle large files, i.e. those over 2 GB. Without that special support, AIX overflows the file offset at 2 GB. For a 64-bit application, the file offset shouldn't be a problem.



  • 3.  Re: Download abends at 2 GB

    Posted Fri May 13, 2016 03:26 AM

    Originally posted by: JoachimB


    Thank you.

    I found some old postings in the web (around 2005) with rumors, that a large file support will be implemented for WGET and was assuming, that this might have happened by now.

    Is there any alternative to download a 3,2 GB file via https directly to an AIX server with a line command?
     



  • 4.  Re: Download abends at 2 GB

    Posted Fri May 13, 2016 02:28 PM

    Originally posted by: DaveMarquardt


    Where did you get wget? I wonder if there's a site with a newer package. Or you could get the source and build it, making sure it has large files support.

    curl is another command line tool for downloading via https.



  • 5.  Re: Download abends at 2 GB

    Posted Tue May 17, 2016 11:52 AM

    Originally posted by: JoachimB


    I'm using wget 1.17.1-1 from  ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/wget/  . This seems to be the latest version for AIX.

    Regarding curl: thanks for the tip. Will have a look at it.



  • 6.  Re: Download abends at 2 GB

    Posted Tue May 17, 2016 02:37 PM

    Originally posted by: DaveMarquardt


    Here's an interesting article about large files support. It's not just ulimit and the application, there are also filesystem issues.

     

    http://www-01.ibm.com/support/docview.wss?uid=isg3T1023245



  • 7.  Re: Download abends at 2 GB

    Posted Wed May 18, 2016 04:11 AM

    Originally posted by: JoachimB


    Interesting indeed. Added to my personal AIX compendium. Thank you.