[gpfsug-discuss] replicate setting per fileset?

Luis Bolinches luis.bolinches at fi.ibm.com
Wed Aug 24 10:16:52 BST 2022


Hi

https://www.ibm.com/docs/en/spectrum-scale/5.1.2?topic=management-policy-rules


"GPFS evaluates policy rules in order, from first to last, as they
appear in the policy. The first rule that matches determines what is to
be done with that file."

I am assuming you sent the email on the order the rules are applied ...
hence works as design. Pls change the order of those rules.
-- 
Ystävällisin terveisin/Regards/Saludos/Salutations/Salutacions
Luis Bolinches
IBM Spectrum Scale development
Executive IT Specialist
Phone: +358503112585
 
https://www.credly.com/users/luis-bolinches/badges
 
Ab IBM Finland Oy
Laajalahdentie 23
00330 Helsinki
Uusimaa - Finland

"If you always give you will always have" --  Anonymous

On Wed, 2022-08-24 at 16:52 +0800, shao feng wrote:
> This Message Is From an External Sender
> This message came from outside your organization.       
> 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
> _______________________________________________
> gpfsug-discuss mailing list
> gpfsug-discuss at gpfsug.org
> http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org  

Unless otherwise stated above:

Oy IBM Finland Ab
PL 265, 00101 Helsinki, Finland
Business ID, Y-tunnus: 0195876-3
Registered in Finland


More information about the gpfsug-discuss mailing list