[gpfsug-discuss] replicate setting per fileset?

shao feng shaof777 at gmail.com
Wed Aug 24 09:52:51 BST 2022


Hi all,

Does gpfs support replica settings per fileset? I'm looking at the "File
placement rule" of filesystem policy at
https://www.ibm.com/docs/en/spectrum-scale/5.1.2?topic=rules-policy-syntax,
looks like the "REPLICATE" closure is for this:

RULE ['RuleName']
  SET POOL 'PoolName'
     [LIMIT (OccupancyPercentage)]
     [REPLICATE (DataReplication)]
     [FOR FILESET ('FilesetName'[,'FilesetName']...)]
     [ACTION (SqlExpression)]
     [WHERE SqlExpression]

but the experiment seems not work:

[root at tsgpfsdev files]# mmlspolicy myfs -L
RULE 'SYSTEM_POOL_PLACEMENT_RULE' SET POOL 'system' REPLICATE (2)

RULE 'PLACEMENT_RULE_myfileset' SET POOL 'system' REPLICATE (3) FOR FILESET
('myfileset')

[root at tsgpfsdev files]# dd if=/dev/urandom of=bigfile3 bs=1MB count=10
10+0 records in
10+0 records out
10000000 bytes (10 MB) copied, 0.226941 s, 44.1 MB/s


[root at tsgpfsdev files]# mmlsattr -L bigfile3
file name:            bigfile3
metadata replication: 3 max 3
data replication:     2 max 3      <<<================ always 2
immutable:            no
appendOnly:           no
flags:
storage pool name:    system
fileset name:         myfileset
snapshot name:
creation time:        Wed Aug 24 12:00:28 2022
Misc attributes:      ARCHIVE
Encrypted:            no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20220824/82e78392/attachment.htm>


More information about the gpfsug-discuss mailing list