To optimally support all parallel file system features (e.g. file locking models), is strongly recommended to build hdf5 on the very file system, where data is written later: WORK.
In the HDF5 forum the reason for failures of parallel test is discussed. For open-MPI it is claimed that the MPI standard is not fully supported. It seems that the errors in parallel tests are gone with opempi 5. However only a prerelease for the open-MPI version is available.
--with-pic
--enable-production
--enable-unsupported --enable-threadsafe
--enable-fortran --enable-fortran2003 --enable-cxx
--with-pic
--enable-production --enable-optimization=high
--enable-direct-vfd --enable-preadwrite
--enable-unsupported --enable-threadsafe
--enable-fortran --enable-fortran2003 --enable-cxx
--enable-file-locking --enable-recursive-rw-locks