Re: [Zope-dev] Data.fs lost?? ideas?

2001-06-29 Thread Chris Withers

Chris Keyes wrote:
 
  Restart
 
  Realised file was 1.6meg not 700

Data.fs is question was of one of our FreeZope servers :-(
Wgh...

Anyone got any ideas what could have happened or what we should start looking
for?

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Data.fs

2000-08-21 Thread Toby Dickenson

On Sat, 19 Aug 2000 14:17:51 -0400 (EDT), Chris McDonough
[EMAIL PROTECTED] wrote:

 Surely this raises some data integrity issues if you copy in 
 mid-transaction?  Or does an incomplete transaction at the end of the db 
 just get thrown out, and the design of the db assure that only the end of 
 the file gets updated?

An incomplete transaction at the end of Data.fs gets ignored and
is subsequently overwritten by the next new transaction.  Data is always
appended to the file.

.except during an 'Undo', when one byte is rewritten in the middle
of the file.

Toby Dickenson
[EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Data.fs

2000-08-19 Thread Chris McDonough

 Surely this raises some data integrity issues if you copy in 
 mid-transaction?  Or does an incomplete transaction at the end of the db 
 just get thrown out, and the design of the db assure that only the end of 
 the file gets updated?

An incomplete transaction at the end of Data.fs gets ignored and
is subsequently overwritten by the next new transaction.  Data is always
appended to the file.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Data.fs

2000-08-18 Thread Dieter Maurer

Andre Schubert writes:
  I'am using Zope 2.1.6 and my Data.fs is going corrupted 
  My Questions are: is there a way to delete the last transaction from
  Data.fs,
There is a product "tranalyze" (or "tranalyzer", "tranalyse", "tranalyser")
that allows you to analyse and fix your Data.fs.

Zope 2.2 contains an "ZODB.fsrecover" which is able to fix a
corrupted "Data.fs".
  and can i backup the Data.fs when Zope is running. 
Yes. Just copy it.



Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Data.fs

2000-08-17 Thread R. David Murray

On Thu, 17 Aug 2000, Andre Schubert wrote:
 My Questions are: is there a way to delete the last transaction from

One answer: use tranalyzer to find the offset of the start of the
last transaction and truncate the file there.

 Data.fs, and can i backup the Data.fs when Zope is running. Is the

Yes.

 backup of Data.fs inconsitent when i make the backup at the same time a
 user writes to it?

No.  If the last transaction in Data.fs s incomplete, Zope will ignore it on
startup.

--RDM


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Data.fs corruption (reproducable)

2000-05-29 Thread Dr. Peer Griebel

FYI: I managed to solve the problem. I simply took the third parameter
out of the parameter list and initialized the variable inside the
function:

def FormatPreis( v, n=2, thou=regex.compile(
   "\([0-9]\)\([0-9][0-9][0-9]\([,.]\|$\)\)").search)

becomes

def FormatPreis( v, n=2 )

The new code is a little bit less efficient. But this doesn't hurt us.

Special thanks to Pavlos Christoforou [EMAIL PROTECTED]!

-- 
connection reset by
  Peer

___
Dr. Peer Griebel  Tel. +49 7581 4831 23
Geschäftsführer   Fax. +49 7581 4831 11
Knoll Informationssysteme GmbH   http://www.knoll-is.de
Dreiköniggasse 17   mailto:[EMAIL PROTECTED]
88348 Saulgauprivat: mailto:[EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )