<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>HI, I use this script, it will truncate
DataFS.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#!/bin/sh</FONT></DIV>
<DIV><FONT face=Arial size=2>cd /path-to-your-instance/var</FONT></DIV>
<DIV><FONT face=Arial size=2>../bin/zopectl stop<BR>rm -f
Data.fs_ERR<BR>#clear<BR>cp -p Data.fs Data.fs_ERR<BR>rm -f
Data.fs.index</FONT></DIV>
<DIV><FONT face=Arial size=2>#diagnostic run<BR>#../bin/runzope<BR>echo
""<BR>echo
"................................................................"<BR>echo
"search for number after:"<BR>echo
" ..../var/Data.fs has
invalid transaction header at NNNN"<BR>echo -n "put the number
here:"<BR>read CISLO</FONT></DIV>
<DIV><FONT face=Arial size=2>python<<_EOF<BR>f = open("Data.fs",
"ab")<BR>f.truncate($CISLO)<BR>f.close()</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>_EOF</FONT></DIV>
<DIV><FONT face=Arial size=2>#start serveru<BR>../bin/zopectl
start<BR></FONT><FONT face=Arial size=2>dd if=Data.fs_ERR of=Data.fs.MISSING
bs=1 skip=$CISLO</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>----- Original Message ----- </FONT>
<DIV><FONT face=Arial size=2>From: "Michele Marcionelli" <</FONT><A
href="mailto:michele.marcionelli@math.ethz.ch"><FONT face=Arial
size=2>michele.marcionelli@math.ethz.ch</FONT></A><FONT face=Arial
size=2>></FONT></DIV></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2>Hello<BR><BR>2 hours ago I wanted to go to sleep...
and "unfortunately" I noticed <BR>that our websites were offline since
about 5 hours; I coudn't start <BR>zope anymore because the Data.fs seems
to be corrupted. The quick <BR>solution has been to copy a 2 days old
version of the Data.fs back... <BR>but I still hope to recover the old
Data.fs.<BR><BR>But wenn I try to recover it with the fsrecover.py tool I get
this <BR>error message:<BR><BR>2010-05-02 00:38:39 WARNING OFS.Application
Duplicate Product name<BR>After loading Product 'Five' from
'/scratch/ZOPE-BOT/current/Products',<BR>I skipped the one in
'/scratch/local/app/zope/2.8.9.1-2.3.6/lib/python/
<BR>Products'.<BR><BR>2010-05-02 00:38:39 WARNING Init Class
<BR>Products.LDAPUserFolder.LDAPUserFolder.LDAPUserFolder has a security
<BR>declaration for nonexistent method 'getAttributeOfAllObjects'<BR>2010-05-02
00:38:39 WARNING Init Class
<BR>Products.LDAPUserFolder.LDAPUserFolder.LDAPUserFolder has a security
<BR>declaration for nonexistent method 'getAttributeOfAllObjects'<BR>2010-05-02
00:38:39 WARNING Silva Silva Documents require upgrading.<BR>There are Silva
Documents which have not been upgraded to Silva 0.9.3.<BR>Upgrade via
service_extensions.<BR><BR>2010-05-02 00:38:40 WARNING ZODB.FileStorage Ignoring
index for / <BR>scratch/ZOPE-BOT/current/var/Data.fs<BR>2010-05-02 00:38:51
CRITICAL ZODB.FileStorage /scratch/ZOPE-BOT/ <BR>current/var/Data.fs data record
exceeds transaction record at <STRONG>949568131</STRONG><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>......</FONT></DIV></BODY></HTML>