Changes between Version 3 and Version 4 of Distributions
- Timestamp:
- 02/21/12 17:19:19 (15 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Distributions
v3 v4 16 16 * Example "0:25K; 1:128K; 2:64K; 3:128K;" 17 17 18 Distributions can be s elected as a default in the configuration file. If no distribution is specified the default is simple_stripe.18 Distributions can be specified as a default in the configuration file. If no distribution is specified the default is simple_stripe. 19 19 20 20 {{{ … … 25 25 </Distribution> 26 26 }}} 27 28 Default 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 {{{ 31 prompt# setfattr -n "user.pvfs2.dist_name" -v "simple_stripe" /mnt/pvfs2/directory 32 prompt# setfattr -n "user.pvfs2.dist_params" -v "strip_size:4096" /mnt/pvfs2/directory 33 }}} 34 You can specify more than one "parameter:value" pair by separating them with commas. 35 You can also specify the number of datafiles to stripe across: 36 {{{ 37 prompt# setfattr -n "user.pvfs2.num_dfiles" -v "16" /mnt/pvfs2/directory 38 }}} 27 39 28 40 Distributions 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: … … 38 50 }}} 39 51 52 40 53 [wiki:"OrangeFS Programmers Guide" "Return to OrangeFS Programmers Guide"]
