What if I suddenly delete Data.fs ?
Hi! I'm in Zope for more than 2 years, but It never happened to me. I was cleaning my var/ directory in my production Linux RH with ext2 box and trying to delete Data.fs.old, I deleted Data.fs. ( ough!!! ) The system asked me if I was sure, and I said Yes! (is there anybody that thinks twice before pressing the Y key?) Fortunately I should have a backup from yesterday that I'm trying to recover (it will last a bit...), but the system is still running. I did a .zexp export of 250 Mb just in the case... and it worked! Great!! Why? The data must be somewhere, what points me that maybe, there is still a chance to get the file back. (I haven't restarted the ZServer...) Any hint? Or... I'd better leave it alone and replace it with my backup copy? (I'm not root in the machine, maybe he could do something?) Thanks! Gari _______________________________________ Garikoitz Araolaza Code&Syntax garaolaza@codesyntax.com BIC-Berrilan Azitaingo Industrialdea E-20600-EIBAR Tel: +34 943 82 06 06
On Friday 14 February 2003 10:27 am, Garikoitz Araolaza wrote:
Why? The data must be somewhere, what points me that maybe, there is still a chance to get the file back. (I haven't restarted the ZServer...)
This is the usual unix file delete behaviour. Any process that has the file open can continue using it, and the disk space is only reclaimed when the last process closes it. (appologies if you knew that). One option that might work (and I suggest you test it first!) is to pack the storage. You might get an error when it fails to move the now deleted Data.fs to Data.sf.old, but think it should create a new Data.fs for you. If that doesnt work, you could write an external method that duplicates your filestorages file descriptor, and reads the content into a new file. You dont say if you are using ZEO. that would maki it harder. -- Toby Dickenson http://www.geminidataloggers.com/people/tdickenson
participants (2)
-
Garikoitz Araolaza -
Toby Dickenson