Allow me to elaborate on my question. The example I gave was trimmed-down to the minimum. I've been trying various combinations with different LIMIT values and different weight and where clauses, using '-I test' and '-I prepare' to see what it would do, but not actually doing the migration. The 'ssd' pool is about 36% utilized and I've been starting the mmapplypolicy scan at a sub-directory level where nearly all the files were in the disk pool. (You'll just have to trust me that the ssd pool can hold all of them :-)) If I specify 'ssd' as the "to pool", the output from the test or prepare options indicates that it would be able to migrate all of the candidate files to the ssd pool. But, if I specify the group pool as the "to pool", it is only willing to migrate the first candidate. That is with the ssd pool listed first in the group and with any limit as long as it's big enough to hold the current data plus the files I expected it to select, even the default of 99. I'm sure I'm either doing something wrong, or I *really* misunderstand the concept. It seems straight forward enough.... Thanks to everyone for your time! Richard -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of gpfsug-discuss-request@spectrumscale.org Sent: Wednesday, August 22, 2018 4:00 AM To: gpfsug-discuss@spectrumscale.org Subject: gpfsug-discuss Digest, Vol 79, Issue 47 Send gpfsug-discuss mailing list submissions to gpfsug-discuss@spectrumscale.org To subscribe or unsubscribe via the World Wide Web, visit http://gpfsug.org/mailman/listinfo/gpfsug-discuss or, via email, send a message with subject or body 'help' to gpfsug-discuss-request@spectrumscale.org You can reach the person managing the list at gpfsug-discuss-owner@spectrumscale.org When replying, please edit your Subject line so it is more specific than "Re: Contents of gpfsug-discuss digest..." Today's Topics: 1. Problem using group pool for migration (Powell (US), Richard E) 2. Re: Problem using group pool for migration (Marc A Kaplan) 3. Re: Problem using group pool for migration (Marc A Kaplan) ---------------------------------------------------------------------- Message: 1 Date: Tue, 21 Aug 2018 18:23:50 +0000 From: "Powell (US), Richard E" <Richard.E.Powell@boeing.com> To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Subject: [gpfsug-discuss] Problem using group pool for migration Message-ID: <7a0a914601594ccdb6c96504322de9c8@XCH15-09-11.nw.nos.boeing.com> Content-Type: text/plain; charset="us-ascii" Hi all, I'm trying to use the "GROUP POOL" feature for file migration with FILE_HEAT, similar to one of the ilm sample scripts. The problem I'm having is that it seems to be identifying the candidates correctly but, anytime I use the "group pool" name for the "to pool", it only selects the first candidate for migration. If I specify a single pool name for the "to pool", it selects multiple files as expected. Here are the policy rules I'm using: RULE 'gp' GROUP POOL 'gpool' is 'ssd' then 'disk1' RULE 'repack' MIGRATE FROM POOL 'gpool' TO POOL 'gpool' WEIGHT(FILE_HEAT) I'm not sure if I'm misunderstanding something or if this is a real bug. I'm just wondering if anyone else has run into this issue? I'm running 4.2.3.8 on RHEL 6. Thanks! Richard
Richard Powell, Good that you have it down to a smallish test case. Let's see it! Here's my test case. Notice I use -L 2 and -I test to see what's what: [root@/main/gpfs-git]$mmapplypolicy c41 -P /gh/c41gp.policy -L 2 -I test [I] GPFS Current Data Pool Utilization in KB and % Pool_Name KB_Occupied KB_Total Percent_Occupied cool 66048 9436160 0.699945741% system 1190656 8388608 14.193725586% xtra 66048 8388608 0.787353516% [I] 4045 of 65792 inodes used: 6.148164%. [I] Loaded policy rules from /gh/c41gp.policy. Evaluating policy rules with CURRENT_TIMESTAMP = 2018-08-23@14:11:26 UTC Parsed 2 policy rules. rule 'gp' group pool 'gp' is 'system' limit(3) then 'cool' limit(4) then 'xtra' rule 'mig' migrate from pool 'gp' to pool 'gp' weight(rand()) [I] 2018-08-23@14:11:26.367 Directory entries scanned: 8. [I] Directories scan: 7 files, 1 directories, 0 other objects, 0 'skipped' files and/or errors. [I] 2018-08-23@14:11:26.371 Sorting 8 file list records. [I] 2018-08-23@14:11:26.416 Policy evaluation. 8 files scanned. [I] 2018-08-23@14:11:26.421 Sorting 7 candidate file list records. WEIGHT(0.911647) MIGRATE /c41/100e TO POOL gp/cool SHOW() WEIGHT(0.840188) MIGRATE /c41/100a TO POOL gp/cool SHOW() WEIGHT(0.798440) MIGRATE /c41/100d TO POOL gp/cool SHOW() WEIGHT(0.783099) MIGRATE /c41/100c TO POOL gp/xtra SHOW() WEIGHT(0.394383) MIGRATE /c41/100b TO POOL gp/xtra SHOW() WEIGHT(0.335223) MIGRATE /c41/100g TO POOL gp/xtra SHOW() WEIGHT(0.197551) MIGRATE /c41/100f TO POOL gp/xtra SHOW() [I] 2018-08-23@14:11:26.430 Choosing candidate files. 7 records scanned. [I] Summary of Rule Applicability and File Choices: Rule# Hit_Cnt KB_Hit Chosen KB_Chosen KB_Ill Rule 0 7 716800 7 716800 0 RULE 'mig' MIGRATE FROM POOL 'gp' WEIGHT(.) \ TO POOL 'gp' [I] Filesystem objects with no applicable rules: 1. [I] GPFS Policy Decisions and File Choice Totals: Chose to migrate 716800KB: 7 of 7 candidates; [I] File Migrations within Group Pools Group Pool Files_Out KB_Out Files_In KB_In gp system 7 716800 0 0 gp cool 0 0 3 307200 gp xtra 0 0 4 409600 Predicted Data Pool Utilization in KB and %: Pool_Name KB_Occupied KB_Total Percent_Occupied cool 373248 9436160 3.955507325% system 473856 8388608 5.648803711% xtra 475648 8388608 5.670166016%
participants (2)
-
Marc A Kaplan -
Powell (US), Richard E
