[Pvfs2-users] Changing stripe size programmatically

Kshitij Mehta kvm1983 at gmail.com
Mon Oct 19 12:50:56 EDT 2009


That raises another question. Is there an API to query existing  
striping parameters (stripe size, width) for an existing file  
programmatically?

On Oct 16, 2009, at 10:15 PM, Rob Ross wrote:

> Hi,
>
> Yes you can do this via parameters to PVFS_sys_create().
>
> It would be easiest for you to look at how this is done in ROMIO, in  
> this file:
>  src/mpi/romio/adio/ad_pvfs2/ad_pvfs2_open.c
>
> Rob
>
> On Oct 16, 2009, at 9:59 PM, Kshitij Mehta wrote:
>
>> Thank you. I know about these options to change the stripe size (in  
>> the config file or using setfattr). But that still doesn't solve my  
>> problem as I need to change the stripe size programmatically.
>>
>> Thanks,
>> Kshitij
>>
>>
>> On Oct 16, 2009, at 5:12 PM, Kyle Schochenmaier wrote:
>>
>>> Kshitij -
>>>
>>> You can modify the stripe size of pvfs2 at run-time :  (best to do  
>>> it
>>> here or in the config)
>>> http://www.pvfs.org/cvs/pvfs-2-8-branch.build/doc/pvfs2-faq/pvfs2-faq.php
>>> (Chapter 6.6)
>>> Please note that modifications during run-time will only be  
>>> propagated
>>> to *NEW* files.
>>>
>>> Additionally you can set the distribution params in the config file.
>>> http://www.pvfs.org/cvs/pvfs-2-8-branch-docs/doc//pvfs-config-options.php
>>>
>>>
>>> Cheers,
>>>
>>> Kyle Schochenmaier
>>>
>>>
>>>
>>> On Fri, Oct 16, 2009 at 5:02 PM, Kshitij Mehta <kvm1983 at gmail.com>  
>>> wrote:
>>>> Hello,
>>>>
>>>> Is there a way to change the stripe size for pvfs2  
>>>> programmatically? I
>>>> remember seeing a C function, but am unable to locate it. My  
>>>> apologies if
>>>> this has been asked before.
>>>>
>>>> Thanks,
>>>> Kshitij Mehta
>>>> Graduate Student
>>>> University of Houston
>>>> www.cs.uh.edu/~kmehta
>>>>
>>>> _______________________________________________
>>>> Pvfs2-users mailing list
>>>> Pvfs2-users at beowulf-underground.org
>>>> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
>>>>
>>
>> _______________________________________________
>> Pvfs2-users mailing list
>> Pvfs2-users at beowulf-underground.org
>> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users
>

Kshitij Mehta
Graduate Student
Parallel Software Technologies Lab
Dept. of Computer Science
University of Houston
USA
www.cs.uh.edu/~kmehta



More information about the Pvfs2-users mailing list