Running zope 2.5.1 with python 2.1.3, Data.fs was getting big so I needed to recompile python with large file support. Found some directions somewhere with C compiler flags, rebuilt python, installed it, opened a python prompt and tried first opening and then creaging some big files (like 2.5 GB) and everything works. So I'm good to go -- right? Wrong. And I hope I can prevent someone from making the same mistake. Today my Data.fs grew over 2 GB for the first time and I noticed that writes were failing. Restarted ZEO and it failed - corrupt database!!! ugh. To make a long story short, I discovered taht *some* file operations (open, write) work fine but some (truncate, probably others) do not. What the hell? Well, I discovered the Lib/test/test_largefile.py script in the python source and it was failing. telling me i didn't have largefile support. wierd. so I looked up the largefile support instructions again (in python docs for teh posix module) and did it again- but this time I did "make clean". Which I think I forgot before. Whoops. Now everything works. I managed to get zope back up after truncating the file at 2 GB exactly (where the corruption started). So watch out when building python for largefile support ... make clean! make clean! -- Paul Winkler "Welcome to Muppet Labs, where the future is made - today!"
Paul Winkler wrote:
Running zope 2.5.1 with python 2.1.3, Data.fs was getting big so I needed to recompile python with large file support.
...
So watch out when building python for largefile support ... make clean! make clean!
Just FYI, the Binary Zope 2.6 betas include a Python 2.1.3 with LFS built in, based on glibc 2.1.3 (ie RH 6.2). While this is still and "old" glibc, it does recognize large file enabled kernels, so you can use this binary version of Zope on most modern Linux distributions and 2.4 kernels to get large file support. -- Matt Kromer Zope Corporation http://www.zope.com/
On Tue, 15 Oct 2002 14:54:41 -0400 "Matthew T. Kromer" <matt@zope.com> wrote:
Just FYI, the Binary Zope 2.6 betas include a Python 2.1.3 with LFS built in,
Does the large file support extend to Win32 systems? yours hoping-rather-than-expecting-ly Phil
Phil Harris wrote:
On Tue, 15 Oct 2002 14:54:41 -0400 "Matthew T. Kromer" <matt@zope.com> wrote:
Just FYI, the Binary Zope 2.6 betas include a Python 2.1.3 with LFS built in,
Does the large file support extend to Win32 systems?
yours hoping-rather-than-expecting-ly
Phil
No, the Python 2.1 series does not support large files on Win32. Python 2.2 does, but Zope Corporation specifies the use of Python 2.1 with Zope 2.6. -- Matt Kromer Zope Corporation http://www.zope.com/
participants (3)
-
Matthew T. Kromer -
Paul Winkler -
Phil Harris