Oversized ZODB in Zope
Truncating Data.fs
If you run a Zope server you have either experienced or will experience ZODB overflow. Zope has a 2 Gigabyte limit on its object database(var/Data.fs). Once that limit is reached your server will crash and you must truncate the database back below 2GB. By truncating the database you loose some of your last transactions. Note that 2,147,483,000 bytes = 1.9999994 gigabytes. Using that byte count rather than 2,000,000,000 will reduce the amount of lost transactions with just enough room to login and pack the database.
Python Code to Truncate Data.fs:
file = "path/to/Data.fs" f = open(file,"ab") f.truncate(2147483000) f.close()
