\# 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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
Thanks! That fixed the problem.
added a note about glusterfs and tmpfs not supporting DIRECT I/O to the documentation