DirectoryStorage on NFS?

J C Lawrence <[email protected]>
Newsgroups gmane.comp.web.zope.zodb.dirstorage
Message-ID <[email protected]>
Will DirectoryStorage run correctly in a situation where the database is
on an NFS mountpoint?  (I'm willing to accept the performance hit)

I'm getting tracebacks and suspect NFS as the culprit:

Traceback (most recent call last):
  File "/Volumes/app/zope/ncstats/zope/lib/python/Zope/Startup/run.py", line 50, in ?
    run()
  File "/Volumes/app/zope/ncstats/zope/lib/python/Zope/Startup/run.py", line 19, in run
    start_zope(opts.configroot)
  File "/Volumes/app/zope/ncstats/zope/lib/python/Zope/Startup/__init__.py", line 51, in start_zope
    starter.startZope()
  File "/Volumes/app/zope/ncstats/zope/lib/python/Zope/Startup/__init__.py", line 230, in startZope
    Zope.startup()
  File "/Volumes/app/zope/ncstats/zope/lib/python/Zope/__init__.py", line 47, in startup
    _startup()
  File "/Volumes/app/zope/ncstats/zope/lib/python/Zope/App/startup.py", line 57, in startup
    DB = configuration.dbtab.getDatabase('/', is_root=1)
  File "/Volumes/app/zope/ncstats/zope/lib/python/DBTab/DBTab.py", line 96, in getDatabase
    db = self._createDatabase(name, is_root)
  File "/Volumes/app/zope/ncstats/zope/lib/python/DBTab/DBTab.py", line 113, in _createDatabase
    db = factory.open()
  File "/Volumes/app/zope/ncstats/zope/lib/python/Zope/Startup/datatypes.py", line 172, in open
    DB = self.createDB()
  File "/Volumes/app/zope/ncstats/zope/lib/python/Zope/Startup/datatypes.py", line 169, in createDB
    return ZODBDatabase.open(self)
  File "/Volumes/app/zope/ncstats/zope/lib/python/ZODB/config.py", line 101, in open
    version_cache_size=section.version_cache_size)
  File "/Volumes/app/zope/ncstats/zope/lib/python/ZODB/DB.py", line 100, in __init__
    storage.tpc_finish(t)
  File "/Volumes/app/zope/ncstats/zope/lib/python/ZODB/BaseStorage.py", line 204, in tpc_finish
    self._finish(self._serial, u, d, e)
  File "/usr/local/lib/python2.3/DirectoryStorage/BaseDirectoryStorage.py", line 222, in _finish
    self._transaction_directory.finish()
  File "/usr/local/lib/python2.3/DirectoryStorage/LocalFilesystem.py", line 549, in finish
    self.filesystem.sync_directory(self.temp_name)
  File "/usr/local/lib/python2.3/DirectoryStorage/PosixFilesystem.py", line 43, in sync_directory
    fsync(f)
OSError: [Errno 22] Invalid argument

--
J C Lawrence
---------(*)                Satan, oscillate my metallic sonatas.
[email protected]               He lived as a devil, eh?
http://www.kanga.nu/~claw/  Evil is a name of a foeman, as I live.


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.