Hi, Thank you all for your replies.
I'm using the last stable version. [root@pvfs01 ~]# pvfs2-stat --version 2.8.7-orangefs We're trying to use the C API, using the pvfs_* functions (pvfs_open, pvfs_write, pvfs_close). Our goal is to develop a C interface to permit simple programs (using that interface) allocate small files (like segments) in a node-oriented way. However, I've noticed they are all only present in pvfs 1.6. It's an interesting approach to create those files using shell interface or even calling it inside a C program with system() standard function, but I've been looking for a way to do that using Unix I/O interfaces or similar. Do you think is there any way to do that? Best regards, * Ricardo Masashi Maeda * * (41) 9656-5360 * 2014/1/7 Kyle Schochenmaier <[email protected]> > To get the file to reside on one specific server you could combine what > Jeff said with directory/distribution settings, I believe you can set the > number of data servers to be used down to 1, then you would want to touch > the file using what Jeff mentioned to create it, and then write to it. > > Something like this : > setfattr -n user.pvfs2.num_dfiles -v 1 /mnt/orangefs/dir > pvfs2-touch -l tcp://server001:3334 /mnt/orangefs/dir/testfile > write your file afterwards. > > I havent tested this to know if it works so I'll let someone comment if it > looks broken. > > Kyle Schochenmaier > > > On Tue, Jan 7, 2014 at 8:45 AM, Jeffrey Denton <[email protected]> wrote: > >> Ricardo, what version of PVFS2 are you using? >> >> Without getting into the underlying data structures, you could use the >> binary pvfs2-touch with its "-l" option to list the desired BMI address >> where you want your blocks stored. ex: >> >> pvfs2-touch -l tcp://server001:3334 /mnt/orangefs/testfile >> >> You can then use the pvfs2-viewdist binary to verify your layout. ex: >> >> pvfs2-viewdist -f /mnt/orangefs/testfile >> >> If you want to know more about the current underlying data structures, >> please let us know. >> >> Regards, >> Jeff Denton >> Developer >> Clemson University >> >> >> On Mon, Jan 6, 2014 at 3:41 PM, Ricardo Masashi Maeda < >> [email protected]> wrote: >> >>> Hi, All, >>> >>> Sorry for the beginner question, but I was wondering if there's a way to >>> have the old behaviour of PVFS1 to place a file on a specific node. >>> >>> In PVFS1 we could use the pvfs_filestat struct to place a file anywhere >>> we wanted, using the attributes (base, pcount, ssize). In PVFS2, it seems >>> that this struct definition was discontinued. >>> >>> Thank you. >>> >>> >>> >>> >>> _______________________________________________ >>> Pvfs2-users mailing list >>> [email protected] >>> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users >>> >>> >> >> _______________________________________________ >> Pvfs2-users mailing list >> [email protected] >> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users >> >> >
_______________________________________________ Pvfs2-users mailing list [email protected] http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
