My First Post      My Facebook Profile      My MeOnShow Profile      W3LC Facebook Page      Learners Consortium Group      Job Portal      Shopping @Yeyhi.com









Thursday, November 3, 2011

error: 452 Error writing:file larger than ulimit set

error: 452 Error writing file: A file cannot be larger than the value set by ulimit

Once I wanted to transfer file from a MAC machine to AIX 64 bit machine. It was an archived file. But after a few seconds of transfer, an abrupt notification of File size exceed was observed. It took me a while, but when the cause was found, I smiled. It was due to a basic setting in Unix based OSes.
The error seen was “Error Writing File : A file cannot be larger than the value set by ulimit”

So here comes the trick of Changing the maximum allowed file size (ulimit)
You cannot create or copy a file that is larger than the limit allowed by ulimit. The profit achieved by this restriction is that it prevents runaway processes from taking up too much disk space.

If you have to work with a file that exceeds the set limit, you must change the default user limit size.
It may be important to note at this point of discussion that the ulimit cannot exceed the values of the SFSZLIM and HFSZLIM tunable parameters.

In addition, do also note that the changed user limit is in effect for the current session only.
1. Use the su command to become root.
2. To view your current limit in blocks, enter:
ulimit -a
3. To set your limit to the new size for the current session, enter:
ulimit [-f] new_size< You can also permanently change your file size limit by setting the new limit in the /etc/profile or the /etc/default/login file. error: 452 Error writing file: A file cannot be larger than the value set by ulimit When trying to transfer a very big file (over ftp for example), you'll receive the error above, this limit is a security limit in AIX and you can solve it by simply editing the /etc/security/limits file and increasing the "fsize" limit or simply changing it to "-1" to be unlimited, and then retry your transfer, you don't have to restart the machine for changes to take effect. This problem have occurred to many as seen over the Internet. Many have reported to see this problem for the first time when they were trying to copy Oracle installer (of size : 1238844 KB) from Windows box to AIX 5.2 box through ftp and it throwed the following The error as already pointed was --" 452 Error writing file: A file cannot be larger than the value >set by ulimit."

Many have reported that they changed the ulimit value to unlimited and then tried copying even after
that the same error was thrown.
Then they changed fsize value in /etc/security/limits file.
Then I tried copying the Oracle installer and it was successful.

It should be remembered here that the problem here is the file system on AIX is JFS (Journalled File
System) and it supports files of size <=2GB. So, if we want to have a file
of size more than 2 GB we need to change the file system to Extended
Journalled File System.

Wish yo all the best,
Anwar

36 comments:

  1. The future of software testing is on positive note. It offers huge career prospects for talented professionals to be skilled software testers. Software testing training|Software training|Software testing training in chennai

    ReplyDelete
  2. Great article Glad to find your blog. Thanks for sharing.
    software training in chennai

    ReplyDelete
  3. Very Nice Blog I like the way you explained these things.
    Indias Fastest Local Search Engine
    CALL360
    Indias Leading Local Business Directory

    ReplyDelete
  4. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
    Android Training in Chennai
    Ios Training in Chennai

    ReplyDelete
  5. I really enjoyed reading your article. I found this as an informative and interesting post, so i think it is very useful and knowledgeable. Keep updating.
    MSC Project Center in Chennai | MSC Project Center in Velachery

    ReplyDelete
  6. I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.
    Best Java Training Institute Chennai

    ReplyDelete
  7. I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.
    aws training in Chennai

    ReplyDelete
  8. Thanks for this information; I hope it will use much reader who looking you frequently likes me…
    Summer Course Training Institute in Chennai | Summer Course Training Institute in Madipakkam

    ReplyDelete
  9. Interesting post! This is really helpful for me. I like it! Thanks for sharing..Technical Workshop in Chennai | Technical Workshop in Velachery

    ReplyDelete
  10. Good day! This is kind of off topic but I need some help from an established
    blog. Is it hard to set up your own blog? I’m not very techincal but I can figure things
    out pretty quick.
    Good Summer Courses for Hardware Networking | Best Summer Course in Chennai

    ReplyDelete
  11. Nice read, I just passed this onto a colleague who was doing a little research on that. And he actually bought me lunch since I found it for him smile Therefore let me rephrase that: Thanks for sharing...
    Good Vecation classes in Chennai | Best Summer Course in Guindy

    ReplyDelete
  12. This blog is really useful and it is very interesting thanks for sharing, it is really good and exclusive..
    Best Summer Courses for School Students in Chennai | Best Summer Courses for School Students in Velachery

    ReplyDelete
  13. Great article, really very helpful content you made. Thank you, keep sharing.

    Best Mobility Services | Austere Technology Solutions

    ReplyDelete
  14. Needed to compose one little word yet thanks for the suggestions that you are contributed here, would like to read this blog regularly to get more important stuff...
    Best Online Software Training Institute | Angular 6 Training

    ReplyDelete
  15. Really an amazing post..By reading your blog post i gained more information.MatLab Project Center in Chennai | MatLab Project Center in Velachery

    ReplyDelete
  16. Thank you for your information. I have got some important suggestions from it. Keep on sharing.
    No.1 MCSE and MCSA Certificate Exam Centre in Chennai |No.1 MCSE and MCSA Certificate Exam Centre in Chennai.

    ReplyDelete
  17. Excellent information with unique content and it is very useful to know about the information based on blogs...
    Best Python Certificate EXAM Center in Chennai| Best Python Certificate EXAM Center in Velachery

    ReplyDelete
  18. Great article. Really impressed by the technology. Thanks for sharing the valuable info and keep updating..DotNet Project Center in Chennai | DotNet Project Center in Velachery

    ReplyDelete
  19. Those guidelines additionally worked to become a good way to
    recognize that other people online have the identical fervor like mine
    to grasp great deal more around this condition.

    white label website builder

    ReplyDelete
  20. I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work.
    Image Processing Project Center in Chennai | Image Processing Projects in Velachery

    ReplyDelete
  21. Great post. Wonderful information and really very much useful. Thanks for sharing and keep updating.
    selenium training in chennai|aws training in chennai|python training in chennai

    ReplyDelete
  22. Great article. Really impressed by the technology. Thanks for sharing the valuable info and keep updating..VLSI Project Center in Chennai | VLSI Project Center in Velachery

    ReplyDelete
  23. Your blog is really amazing with useful information you are shared.Thank you so much for sharing such an wonderful article with us..keep updating....Mobile Computing Project Center in Chennai | Mobile Computing Projects in Velachery

    ReplyDelete
  24. Great post. Wonderful information and really very much useful. Thanks for sharing and keep updating.
    java training in chennai
    java course in chennai

    ReplyDelete
  25. Thanks for sharing your informative and impressive blog with us.keep updating..Embedded Project Center in Chennai | Embedded Project Center in Velachery

    ReplyDelete