Menu

failing createdisks

2009-11-23
2013-04-25
  • Nobody/Anonymous

    Hi,

    I'm just starting and trying to run:

    createdisks.stxxl.bin 1000 /data/pashadag/stxxl.disk

    But I get the error:

    \# Add disk: /data/pashadag/stxxl.disk
    terminate called after throwing an instance of 'stxxl::io_error'
      what():  Error in function stxxl::ufs_file_base::ufs_file_base(const std::string&, int, int): Info: Filedescriptor=-1 filename=/data/pashadag/stxxl.disk fmode=20546 Invalid argument
    Aborted

    The file system on /data is glusterfs.  When I try to run createdisk on a file on a different file system, it works fine.  Are there any known issues with running stxxl and glusterfs?  Or could this be another problem.

    Thanks for any help,
    paul

     
  • Andreas Beckmann

    Looks like a problem with direct I/O that does not seem to be supported by glusterfs (I haven't tried this file system before).

    If you compile with `STXXL_DIRECT_IO_OFF` defined, direct I/O will not be used (even if you explicitely create an stxxl::file with the DIRECT flag set).
    This should make stxxl work on glusterfs.

    Andreas

     
  • Nobody/Anonymous

    Thanks!  That fixed the problem.

     
  • Andreas Beckmann

    added a note about glusterfs and tmpfs not supporting DIRECT I/O to the documentation

     

Log in to post a comment.