ILM: migrating between internal pools while premigrated to external
Hello, World, I'd asked this on dW last week but got no reactions: I am unsure on the viability of this approach: In a given file system, there are two internal storage pools and one external (GHI/HPSS). Certain files are created in one internal pool and are to be migrated to the other internal pool about one day after file closure. In addition, all files are to be (pre-)migrated to the external pool within one hour after closure. Hence: typically, blocks of a file being already pre-migrated to external (but not purged on the initial internal pool) are to be moved from one internal pool to the other. A slight indication that there might be some issue with such an approach I've found in a dW post some years back: https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0... However, time has passed and this might work now or might not. Is there some knowledge about that in the community? If it would not be a reasonable way, we would do the internal migration before the external one, but that imposes a timely dependance we'd not have otherwise. Mit freundlichen Grüßen / Kind regards Dr. Uwe Falke IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122
To address this question or problem, please be more specific about: 1) commands and policy rules used to perform or control the migrations and pre-migrations. 2) how the commands are scheduled, how often, and/or by events and mmXXcallbacks. 3) how many files are "okay" and how many are ill-placed. 4) how many blocks or KB of storage are ill-placed. (One could determine this by looking at pool free/used blocks stats, then running restripe to correct all ill-placements and then looking at pool free/used stats again.) 5) As commands and migrations are executed, what is happening that you do not understand or that you believe is incorrect? Marc K of GPFS (aka "Mister Mmapplypolicy") From: "Uwe Falke" <UWEFALKE@de.ibm.com> To: "gpfsug main discussion list" <gpfsug-discuss@spectrumscale.org> Date: 04/24/2018 06:43 AM Subject: [gpfsug-discuss] ILM: migrating between internal pools while premigrated to external Sent by: gpfsug-discuss-bounces@spectrumscale.org Hello, World, I'd asked this on dW last week but got no reactions: I am unsure on the viability of this approach: In a given file system, there are two internal storage pools and one external (GHI/HPSS). Certain files are created in one internal pool and are to be migrated to the other internal pool about one day after file closure. In addition, all files are to be (pre-)migrated to the external pool within one hour after closure. Hence: typically, blocks of a file being already pre-migrated to external (but not purged on the initial internal pool) are to be moved from one internal pool to the other. A slight indication that there might be some issue with such an approach I've found in a dW post some years back: https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0... However, time has passed and this might work now or might not. Is there some knowledge about that in the community? If it would not be a reasonable way, we would do the internal migration before the external one, but that imposes a timely dependance we'd not have otherwise. Mit freundlichen Grüßen / Kind regards Dr. Uwe Falke IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
Hi, the system is not in action yet. I am just to plan the migrations right now. premigration would be (not listing excludes here, actual cos and FS name replaced by nn, xxx): /* Migrate all files that are smaller than 1 GB to hpss as aggregates. */ RULE 'toHsm_aggr_cosnn' MIGRATE FROM POOL 'pool1' WEIGHT(CURRENT_TIMESTAMP - ACCESS_TIME) TO POOL 'hsm_aggr_cosnn' SHOW ('-s' FILE_SIZE) WHERE path_name like '/xxx/%' AND FILE_SIZE <= 1073741824 AND (CURRENT_TIMESTAMP - MODIFICATION_TIME > INTERVAL '120' MINUTES) Mit freundlichen Grüßen / Kind regards Dr. Uwe Falke IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122 From: "Marc A Kaplan" <makaplan@us.ibm.com> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 24/04/2018 14:38 Subject: Re: [gpfsug-discuss] ILM: migrating between internal pools while premigrated to external Sent by: gpfsug-discuss-bounces@spectrumscale.org To address this question or problem, please be more specific about: 1) commands and policy rules used to perform or control the migrations and pre-migrations. 2) how the commands are scheduled, how often, and/or by events and mmXXcallbacks. 3) how many files are "okay" and how many are ill-placed. 4) how many blocks or KB of storage are ill-placed. (One could determine this by looking at pool free/used blocks stats, then running restripe to correct all ill-placements and then looking at pool free/used stats again.) 5) As commands and migrations are executed, what is happening that you do not understand or that you believe is incorrect? Marc K of GPFS (aka "Mister Mmapplypolicy") From: "Uwe Falke" <UWEFALKE@de.ibm.com> To: "gpfsug main discussion list" <gpfsug-discuss@spectrumscale.org> Date: 04/24/2018 06:43 AM Subject: [gpfsug-discuss] ILM: migrating between internal pools while premigrated to external Sent by: gpfsug-discuss-bounces@spectrumscale.org Hello, World, I'd asked this on dW last week but got no reactions: I am unsure on the viability of this approach: In a given file system, there are two internal storage pools and one external (GHI/HPSS). Certain files are created in one internal pool and are to be migrated to the other internal pool about one day after file closure. In addition, all files are to be (pre-)migrated to the external pool within one hour after closure. Hence: typically, blocks of a file being already pre-migrated to external (but not purged on the initial internal pool) are to be moved from one internal pool to the other. A slight indication that there might be some issue with such an approach I've found in a dW post some years back: https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0... However, time has passed and this might work now or might not. Is there some knowledge about that in the community? If it would not be a reasonable way, we would do the internal migration before the external one, but that imposes a timely dependance we'd not have otherwise. Mit freundlichen Grüßen / Kind regards Dr. Uwe Falke IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi... _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
I added support to mmapplypolicy & co for HPSS (and TSM/HSM) years ago. AFAIK, it works pretty well, and pretty much works in a not-too-surprising way. I believe that besides the Spectrum Scale Admin and Command docs there are some "red book"s to help, and some IBM support people know how to use these features. When using mmapplypolicy: a) Migration and pre-migration to an external pool requires at least two rules: An EXTERNAL POOL rule to define the external pool, say 'xpool' and a MIGRATE ... TO POOL 'xpool' rule. b) Migration between GPFS native pools requires at least one MIGRATE ... FROM POOL 'apool' TO POOL 'bpool' rule. c) During any one execution of mmapplypolicy any one particular file will be subject of at most one MIGRATE rule. In other words file x will be either (pre)MIGRATEd to an external pool. OR MIGRATED between gpfs pools. BUT not both. (Hmm... well you could write a custom migration script and name that script in your EXTERNAL POOL rule and do anything you like to each file x that is chosen for "external" MIGRATion... But still just one MIGRATE rule governs file x.)
(Sorry, vi commands and my mailing client do not co-operate well ...Pls forgive the pre-mature posting just sent. ) Hi, the system is not in action yet. I am just to plan the migrations right now. 1) + 2) premigration would be (not listing excludes here, actual cos and FS name replaced by nn, xxx), executed once per hour: RULE EXTERNAL POOL 'hsm_aggr_cosnn' EXEC '/opt/hpss/bin/ghi_migrate' OPTS '-a -c nn' /* Migrate all files that are smaller than 1 GB to hpss as aggregates. */ RULE 'toHsm_aggr_cosnn' MIGRATE FROM POOL 'pool1' WEIGHT(CURRENT_TIMESTAMP - ACCESS_TIME) TO POOL 'hsm_aggr_cosnn' SHOW ('-s' FILE_SIZE) WHERE path_name like '/xxx/%' AND FILE_SIZE <= 1073741824 AND (CURRENT_TIMESTAMP - MODIFICATION_TIME > INTERVAL '120' MINUTES) Internal Migration was originally intended like RULE "pool0_to_pool1" MIGRATE FROM POOL 'pool0' TO POOL 'pool1' WHERE (CURRENT_TIMESTAMP - MODIFICATION_TIME > INTERVAL '720' MINUTES) to be ran once per day (plus a thrshold-policy to prevent filling up of the relative small pool0 should something go wrong) 3) + 4) as that is not yet set up - no answer. I would like to prevent such things to happen in the first place, therefore asking. 5) I do not understand your question. I am planning the migration set up, and a suppose there might be the risk for trouble when doing internal migrations while haveing data pre-migrated to external. Indeed I am not a developer of the ILM stuff in Scale, so I cannot fully foresee what'll happen. Therefore asking. Mit freundlichen Grüßen / Kind regards Dr. Uwe Falke IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122 From: "Marc A Kaplan" <makaplan@us.ibm.com> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 24/04/2018 14:38 Subject: Re: [gpfsug-discuss] ILM: migrating between internal pools while premigrated to external Sent by: gpfsug-discuss-bounces@spectrumscale.org To address this question or problem, please be more specific about: 1) commands and policy rules used to perform or control the migrations and pre-migrations. 2) how the commands are scheduled, how often, and/or by events and mmXXcallbacks. 3) how many files are "okay" and how many are ill-placed. 4) how many blocks or KB of storage are ill-placed. (One could determine this by looking at pool free/used blocks stats, then running restripe to correct all ill-placements and then looking at pool free/used stats again.) 5) As commands and migrations are executed, what is happening that you do not understand or that you believe is incorrect? Marc K of GPFS (aka "Mister Mmapplypolicy") From: "Uwe Falke" <UWEFALKE@de.ibm.com> To: "gpfsug main discussion list" <gpfsug-discuss@spectrumscale.org> Date: 04/24/2018 06:43 AM Subject: [gpfsug-discuss] ILM: migrating between internal pools while premigrated to external Sent by: gpfsug-discuss-bounces@spectrumscale.org Hello, World, I'd asked this on dW last week but got no reactions: I am unsure on the viability of this approach: In a given file system, there are two internal storage pools and one external (GHI/HPSS). Certain files are created in one internal pool and are to be migrated to the other internal pool about one day after file closure. In addition, all files are to be (pre-)migrated to the external pool within one hour after closure. Hence: typically, blocks of a file being already pre-migrated to external (but not purged on the initial internal pool) are to be moved from one internal pool to the other. A slight indication that there might be some issue with such an approach I've found in a dW post some years back: https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0... However, time has passed and this might work now or might not. Is there some knowledge about that in the community? If it would not be a reasonable way, we would do the internal migration before the external one, but that imposes a timely dependance we'd not have otherwise. Mit freundlichen Grüßen / Kind regards Dr. Uwe Falke IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi... _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Uwe also asked: whether it is unwise to have the external and the internal migrations in an uncoordinated fashion so that it might happen some files have been migrated to external before they undergo migration from one internal pool (pool0) to the other (pool1) That's up to the admin. IOW coordinate it as you like or not at all, depending on what you're trying to acomplish.. But the admin should understand... Whether you use mmchattr -P newpool or mmapplypolicy/Migrate TO POOL 'newpool' to do an internal, GPFS pool to GPFS pool migration there are two steps: A) Mark the newly chosen, preferred newpool in the file's inode. Then, as long as any data blocks are on GPFS disks that are NOT in newpool, the file is considered "ill-placed". B) Migrate every datablock of the file to 'newpool', by allocating a block in newpool, copy a block of data, updating the file's data pointers, etc, etc. If you say "-I defer" then only (A) is done. You can force (B) later with a restripeXX command. If you default or say "-I yes" then (A) is done and (B) is done as part of the work of the same command (mmchattr or mmapplypolicy) - (If the command is interrupted, (B) may happen for some subset of the data blocks, leaving the file "ill-placed") Putting "external" storage into the mix -- you can save time and go faster - if you migrate completely and directly from the original pool - skip the "internal" migrate! Maybe if you're migrating but leaving a first block "stub" - you'll want to migrate to external first, and then migrate just the one block "internally"... On the other hand, if you're going to keep the whole file on GPFS storage for a while, but want to free up space in the original pool, you'll want to migrate the data to a newpool at some point... In that case you might want to pre-migrate (make a copy on HSM but not free the GPFS copy) also. Should you pre-migrate from the original pool or the newpool? Your choice! Maybe you arrange things so you pre-migrate while the data is on the faster pool. Maybe it doesn't make much difference, so you don't even think about it anymore, now that you understand that GPFS doesn't care either! ;-)
Hi, Marc, thx. I understand that being premigrated to an external pool should not affect the internal migration of a file. FYI: This is not the typical "gold - silver - bronze" setup with a one-dimensional migration path. Instead, one of the internal pools (pool0) is used to receive files written in very small records, the other (pool1) is the "normal" pool and receives all other files. Files written to pool0 should move to pool1 once they are closed (i.e. complete), but pool 0 has enough capacity to live without off-migration to pool1 for a few days, thus I'd thought to keep the frequency of that migration to not more than once per day. The external pool serves as a remote async mirror to achieve some resiliency against FS failures and also unintentional file deletion (metadata / SOBAR backups and file listings to keep the HPSS coordinates of GPFS files are done regularly), only in the long run data will be purged from pool1. Thus, migration to external should be done in shorter intervals. Sounds like I can go ahead without hesitation. Mit freundlichen Grüßen / Kind regards Dr. Uwe Falke IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122 From: "Marc A Kaplan" <makaplan@us.ibm.com> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 24/04/2018 23:10 Subject: Re: [gpfsug-discuss] ILM: migrating between internal pools while premigrated to external Sent by: gpfsug-discuss-bounces@spectrumscale.org Uwe also asked: whether it is unwise to have the external and the internal migrations in an uncoordinated fashion so that it might happen some files have been migrated to external before they undergo migration from one internal pool (pool0) to the other (pool1) That's up to the admin. IOW coordinate it as you like or not at all, depending on what you're trying to acomplish.. But the admin should understand... Whether you use mmchattr -P newpool or mmapplypolicy/Migrate TO POOL 'newpool' to do an internal, GPFS pool to GPFS pool migration there are two steps: A) Mark the newly chosen, preferred newpool in the file's inode. Then, as long as any data blocks are on GPFS disks that are NOT in newpool, the file is considered "ill-placed". B) Migrate every datablock of the file to 'newpool', by allocating a block in newpool, copy a block of data, updating the file's data pointers, etc, etc. If you say "-I defer" then only (A) is done. You can force (B) later with a restripeXX command. If you default or say "-I yes" then (A) is done and (B) is done as part of the work of the same command (mmchattr or mmapplypolicy) - (If the command is interrupted, (B) may happen for some subset of the data blocks, leaving the file "ill-placed") Putting "external" storage into the mix -- you can save time and go faster - if you migrate completely and directly from the original pool - skip the "internal" migrate! Maybe if you're migrating but leaving a first block "stub" - you'll want to migrate to external first, and then migrate just the one block "internally"... On the other hand, if you're going to keep the whole file on GPFS storage for a while, but want to free up space in the original pool, you'll want to migrate the data to a newpool at some point... In that case you might want to pre-migrate (make a copy on HSM but not free the GPFS copy) also. Should you pre-migrate from the original pool or the newpool? Your choice! Maybe you arrange things so you pre-migrate while the data is on the faster pool. Maybe it doesn't make much difference, so you don't even think about it anymore, now that you understand that GPFS doesn't care either! ;-) _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On Wed, 25 Apr 2018 01:10:52 +0200, "Uwe Falke" said:
Instead, one of the internal pools (pool0) is used to receive files written in very small records, the other (pool1) is the "normal" pool and receives all other files.
How do you arrange that to happen? As we found out on one of our GPFS clusters, you can't use filesize as a criterion in a file placement policy because it has to pick a pool before it knows what the final filesize will be. (The obvious-to-me method is to set filesets pointed at pools, and then attach fileset to pathnames, and then tell the users "This path is for small files, this one is for other files" and thwap any who get it wrong with a clue-by-four. ;)
Hi, we rely on some scheme of file names. Splitting by path / fileset does not work here as small- and large-record data have to be co-located. Small-record files will only be recognised if carrying some magic strings in the file name. This is not a normal user system, but ingests data generated automatically, and thus a systematic naming of files is possible to a large extent. Mit freundlichen Grüßen / Kind regards Dr. Uwe Falke IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122 From: valdis.kletnieks@vt.edu To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 25/04/2018 02:10 Subject: Re: [gpfsug-discuss] ILM: migrating between internal pools while premigrated to external Sent by: gpfsug-discuss-bounces@spectrumscale.org On Wed, 25 Apr 2018 01:10:52 +0200, "Uwe Falke" said:
Instead, one of the internal pools (pool0) is used to receive files written in very small records, the other (pool1) is the "normal" pool and receives all other files.
How do you arrange that to happen? As we found out on one of our GPFS clusters, you can't use filesize as a criterion in a file placement policy because it has to pick a pool before it knows what the final filesize will be. (The obvious-to-me method is to set filesets pointed at pools, and then attach fileset to pathnames, and then tell the users "This path is for small files, this one is for other files" and thwap any who get it wrong with a clue-by-four. ;) [attachment "attnayq3.dat" deleted by Uwe Falke/Germany/IBM] _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
participants (3)
-
Marc A Kaplan -
Uwe Falke -
valdis.kletnieks@vt.edu
