ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> zope-List
zope-List
Re: [Zope] packing a data.fs from outside zope?
by Chris McDonough other posts by this author
May 16 2001 4:21PM messages near this date
RE: [Zope] packing a data.fs from outside zope? | RE: [Zope] packing a data.fs from outside zope?
Zope doesn't need to run on the ZSS box.  Only the storage server process.
Clients ask the storage server process to pack its database.  It does so.
As its packing, operation continues more or less normally... there are a few
caveats that I can't remember, but it more or less just works.  I think
clients cache writes during this time, but I'm not entirely certain.

----- Original Message -----
From: <sean.upton@[...].com> 
To: <chrism@[...].com> 
Cc: <zope@[...].org> 
Sent: Wednesday, May 16, 2001 12:16 PM
Subject: RE: [Zope] packing a data.fs from outside zope?


>  How does that work with ZEO?  If you were to pack the ZSS ODB on the ZSS
>  box, do you have to shut down zope on the ZSS box?  How do ZEO Clients
react
>  to this?
> 
>  Sean
> 
>  -----Original Message-----
>  From: Chris McDonough [mailto:chrism@[...].com]
>  Sent: Wednesday, May 16, 2001 9:08 AM
>  To: sean.upton@uniontrib.com; anthony@[...].au
>  Cc: zope@[...].org
>  Subject: Re: [Zope] packing a data.fs from outside zope?
> 
> 
>  No.  You'd need ZEO for that.
> 
>  ----- Original Message -----
>  From: <sean.upton@[...].com>
>  To: <chrism@[...].com>; <anthony@[...].au>
>  Cc: <zope@[...].org>
>  Sent: Wednesday, May 16, 2001 11:51 AM
>  Subject: RE: [Zope] packing a data.fs from outside zope?
> 
> 
>  > and this can be done with Zope running, and the ODB being used?
>  >
>  > -----Original Message-----
>  > From: Chris McDonough [mailto:chrism@[...].com]
>  > Sent: Tuesday, May 15, 2001 8:02 PM
>  > To: anthony@[...].au
>  > Cc: zope@[...].org
>  > Subject: Re: [Zope] packing a data.fs from outside zope?
>  >
>  >
>  > Here ya go, Anthony (untested, but I'm feeling confident tonight ;-):
>  >
>  > from ZODB.DB import DB
>  > from ZODB.FileStorage import FileStorage
>  > s = FileStorage('Data.fs')
>  > db = DB(s)
>  > db.pack()
>  > db.close()
>  >
>  >
>  >
>  > Anthony Baxter wrote:
>  > >
>  > > Don't suppose anyone's produced a nice convenient "pack a data.fs
file"
>  > > script that's runnable from outside Zope?
>  > >
>  > > Anthony
>  > >
>  > > _______________________________________________
>  > > Zope maillist  -  Zope@[...].org
>  > > http://lists.zope.org/mailman/listinfo/zope
>  > > **   No cross posts or HTML encoding!  **
>  > > (Related lists -
>  > >  http://lists.zope.org/mailman/listinfo/zope-announce
>  > >  http://lists.zope.org/mailman/listinfo/zope-dev )
>  >
>  > _______________________________________________
>  > Zope maillist  -  Zope@[...].org
>  > http://lists.zope.org/mailman/listinfo/zope
>  > **   No cross posts or HTML encoding!  **
>  > (Related lists -
>  >  http://lists.zope.org/mailman/listinfo/zope-announce
>  >  http://lists.zope.org/mailman/listinfo/zope-dev )
>  >
> 
> 
>  _______________________________________________
>  Zope maillist  -  Zope@[...].org
>  http://lists.zope.org/mailman/listinfo/zope
>  **   No cross posts or HTML encoding!  **
>  (Related lists -
>   http://lists.zope.org/mailman/listinfo/zope-announce
>   http://lists.zope.org/mailman/listinfo/zope-dev )
> 


_______________________________________________
Zope maillist  -  Zope@[...].org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )
Thread:

Chris McDonough

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved