Re: Results of CheckDS.py
Toby Dickenson <[email protected]> Mon, 5 Mar 2007 08:45:40 +0000
| Newsgroups | gmane.comp.web.zope.zodb.dirstorage |
|---|---|
| Message-ID | <[email protected]> |
(can we keep replies on list please) On Sunday 04 March 2007 17:44, Ed Leafe wrote: > On Feb 20, 2007, at 3:26 AM, Toby Dickenson wrote: > >> So I was wondering if there was > >> some way to 'export' the data into some other format, wipe out the > >> current storage, and then re-import it to re-create the site. > > > > Zope's export/import feature should work if you just want the current > > revisions of eveything. Or check out ds2fs if you want to copy > > history too. > > I've been using export/import, and at least now my Zope instance > isn't spiking the CPU to 100% all the time. I was restarting Zope > several times an hour because of this; I haven't had to restart it > for days now. OK, great. > I still have some bad MD5 checksum files that were created after my > last good backup. IOW, there are no backups of these that differ from > the current bad file. I tried deleting them, but now if I try to > pack, I get an error about the file is missing. If I restore it from > the backup and try to pack, I get an error about a bad checksum. > Catch-22! Yes, packing will only delete things after proving that it has a full correct copy of everything it needs. If anything is missing or wrong, then it can not draw any conclusions about what data is unneeded and can therefore be deleted. > Can I replace the file with either an empty file, or a copy of > another uncorrupted file to get around this problem? How can I ever > pack this bloated system? If you want to suppress the checksum checks then you have two options. The easy (but crude) approach is to turn off the checks using the config/settings file. A better solution is to selectively suppress the checksum for each file that you know to be affected. The 16 bytes starting at address 40 are the md5 checksum for the remainder of the file. Setting this to all-zeros indicates that the md5 has not been calculated, and will not be checked. I hope this helps -- Toby Dickenson ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV