Cannot write more than 2GB to file in non-global zone - in global zone I can
Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Cannot write more than 2GB to file in non-global zone - in global zone I can
Hi,
I look after an exim installation on a Solaris 10 zone. A short time ago the exim mainlog size on the Solaris 10 zone reached 2GB before log rotation due to more activity. It turns out 2GB is the maximum size at the moment and exim stops.
The workaround has been to increase the log rotation frequency so the logs are smaller. But the goal is to have daily log files again.
I just cannot figure out where the file size limit comes from.
Tests done:
in the (non-global) zone I cannot append to a file that is already 2GB. E.g.
cat anotherfile >> my2GBfile
as root returns immediately (no error) and my2GBfile is unchanged.
This operation is done as root in the root fs, which is UFS, in /var/log/exim in this case.
When doing the same test in the global zone, the cat command will append and create e.g. a 3GB file without problem in the exact same directory.
Some more info:
uname -a
SunOS machine1 5.10 Generic_127128-11 i86pc i386 i86pc
I did not see any file size limit attributes anywhere I looked so far. E.g. the zone config xml files don't seem to have it. I also ran "prctl -i zone myzonename" but none of the values relate to file size.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.