[Pvfs2-users] Changing stripe size programmatically

Rob Ross rross at mcs.anl.gov
Sun Oct 18 21:26:00 EDT 2009


Hi,

You cannot change the stripe size of a file once it is created, only  
adjust the stripe size for new files.

Rob

On Oct 18, 2009, at 8:05 PM, Kshitij Mehta wrote:

> Thank you Rob. I did take a look at ad_pvfs2_open, but will have to  
> look in detail to understand the parameters being passed to it,  
> since I am not well versed with the underlying source code for pvfs2  
> or MPICH.
>
> I still have a couple of questions:
> 1. Is there an API that describes the PVFS functions? If I could  
> take a look at the API for pvfs_sys_create, it will make life  
> simpler for me.
> 2. Can one change the stripe size of an existing file  
> programmatically?
>
> Thanks,
> Kshitij
>
> 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
>>
>



More information about the Pvfs2-users mailing list