Changes between Version 3 and Version 4 of Distributions

Show
Ignore:
Timestamp:
02/21/12 17:19:19 (15 months ago)
Author:
walt
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Distributions

    v3 v4  
    1616      * Example "0:25K; 1:128K; 2:64K; 3:128K;" 
    1717 
    18 Distributions can be selected as a default in the configuration file.  If no distribution is specified the default is simple_stripe. 
     18Distributions can be specified as a default in the configuration file.  If no distribution is specified the default is simple_stripe. 
    1919 
    2020{{{ 
     
    2525</Distribution> 
    2626}}} 
     27 
     28Default Distributions can also be set on a directory causing all new files under it to use the new distribution.  A create can still override the distribution, but if none is given the directory default will override the configuration default.  This is accomplished by setting two extended attributes on the desired directory as shown: 
     29 
     30{{{ 
     31prompt# setfattr -n "user.pvfs2.dist_name" -v "simple_stripe" /mnt/pvfs2/directory 
     32prompt# setfattr -n "user.pvfs2.dist_params" -v "strip_size:4096" /mnt/pvfs2/directory 
     33}}} 
     34You can specify more than one "parameter:value" pair by separating them with commas. 
     35You can also specify the number of datafiles to stripe across: 
     36{{{ 
     37prompt# setfattr -n "user.pvfs2.num_dfiles" -v "16" /mnt/pvfs2/directory 
     38}}}   
    2739 
    2840Distributions can also be specified with creating a new file via the system interface PVFS_sys_create function call.  A distribution must first be created before the call as follows: 
     
    3850}}} 
    3951 
     52 
    4053[wiki:"OrangeFS Programmers Guide" "Return to OrangeFS Programmers Guide"]