Hallo All, we are working since two weeks(or more) on a PMR that mmbackup has problems with the MC Class in TSM. The result is that we have defined a version exist of 5. But with each run, the policy engine generate a expire list (where the mentioned files already selected) and at the end we see only (in every case) 2 Backup versions of a file. We are at: GPFS 5.0.1.1 TSM-Server 8.1.1.0 TSM-Client 7.1.6.2 After some testing we found the reason: Our mmbackup Test is performed with vi , to change a files content and restart the next mmbackup testcycle. The Problem that we found here with the defaults in vi (set backupcopy=no, attention if no a backupcopy are generatetd) There are after each test (change of the content) the file became every time a new inode number. This behavior is the reason why the shadowfile think(or the policyengine) the old file is never existent And generate an delete request in the expire policy files for dsmc (correct me if I wrong here) . Ok vi is not the problem but we had also Applications that had the same dataset handling (as ex. SAS) At SAS the data file will updated with a xx.data.new file and after the close the xx.data.new will be renamed to the original name xx.data again. And the miss interpretation of different inodes happen again. The question now are there code in the mmbackup or in gpfs for the shadow file to check or ignore the inode change for the same file. Regards Renar Renar Grunenberg Abteilung Informatik – Betrieb HUK-COBURG Bahnhofsplatz 96444 Coburg Telefon: 09561 96-44110 Telefax: 09561 96-44104 E-Mail: Renar.Grunenberg@huk-coburg.de Internet: www.huk.de ________________________________ HUK-COBURG Haftpflicht-Unterstützungs-Kasse kraftfahrender Beamter Deutschlands a. G. in Coburg Reg.-Gericht Coburg HRB 100; St.-Nr. 9212/101/00021 Sitz der Gesellschaft: Bahnhofsplatz, 96444 Coburg Vorsitzender des Aufsichtsrats: Prof. Dr. Heinrich R. Schradin. Vorstand: Klaus-Jürgen Heitmann (Sprecher), Stefan Gronbach, Dr. Hans Olav Herøy, Dr. Jörg Rheinländer (stv.), Sarah Rössler, Daniel Thomas. ________________________________ Diese Nachricht enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese Nachricht irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Nachricht ist nicht gestattet. This information may contain confidential and/or privileged information. If you are not the intended recipient (or have received this information in error) please notify the sender immediately and destroy this information. Any unauthorized copying, disclosure or distribution of the material in this information is strictly forbidden. ________________________________
On Wed, 20 Jun 2018 14:08:09 -0000, "Grunenberg, Renar" said:
There are after each test (change of the content) the file became every time a new inode number. This behavior is the reason why the shadowfile think(or the policyengine) the old file is never existent
That's because as far as the system is concerned, this is a new file that happens to have the same name.
At SAS the data file will updated with a xx.data.new file and after the close the xx.data.new will be renamed to the original name xx.data again. And the miss interpretation of different inodes happen again.
Note that all the interesting information about a file is contained in the inode (the size, the owner/group, the permissions, creation time, disk blocks allocated, and so on). The *name* of the file is pretty much the only thing about a file that isn't in the inode - and that's because it's not a unique value for the file (there can be more than one link to a file). The name(s) of the file are stored in the parent directory as inode/name pairs. So here's what happens. You have the original file xx.data. It has an inode number 9934 or whatever. In the parent directory, there's an entry "name xx.data -> inode 9934". SAS creates a new file xx.data.new with inode number 83425 or whatever. Different file - the creation time, blocks allocated on disk, etc are all different than the file described by inode 9934. The directory now has "name xx.data -> 9934" "name xx.data.new -> inode 83425". SAS then renames xx.data.new - and rename is defined as "change the name entry for this inode, removing any old mappings for the same name" . So... 0) 'rename xx.data.new xx.data'. 1) Find 'xx.data.new' in this directory. "xx.data.new -> 83425" . So we're working with that inode. 2) Check for occurrences of the new name. Aha. There's 'xxx.data -> 9934'. Remove it. (2a) This may or may not actually make the file go away, as there may be other links and/or open file references to it.) 3) The directory now only has '83425 xx.data.new -> 83425'. 4) We now change the name. The directory now has 'xx.data -> 83425'. And your backup program quite rightly concludes that this is a new file by a name that was previously used - because it *is* a new file. Created at a different time, different blocks on disk, and so on. The only time that writing a "new" file keeps the same inode number is if the program actually opens the old file for writing and overwrites the old contents. However, this isn't actually done by many programs (including vi and SAS, as you've noticed) because if writing out the file encounters an error, you now have lost the contents - the old version has been overwritten, and the new version isn't complete and correct. So many programs write to a truly new file and then rename, because if writing the new file fails, the old version is still available on disk....
Hallo Valdis, first thanks for the explanation we understand that, but this problem generate only 2 Version at tsm server for the same file, in the same directory. This mean that mmbackup and the .shadow... has no possibility to have for the same file in the same directory more then 2 backup versions with tsm. The native ba-client manage this. (Here are there already different inode numbers existent.) But at TSM-Server side the file that are selected at 'ba incr' are merged to the right filespace and will be binded to the mcclass >2 Version exist. Renar Grunenberg Abteilung Informatik – Betrieb HUK-COBURG Bahnhofsplatz 96444 Coburg Telefon: 09561 96-44110 Telefax: 09561 96-44104 E-Mail: Renar.Grunenberg@huk-coburg.de Internet: www.huk.de ======================================================================= HUK-COBURG Haftpflicht-Unterstützungs-Kasse kraftfahrender Beamter Deutschlands a. G. in Coburg Reg.-Gericht Coburg HRB 100; St.-Nr. 9212/101/00021 Sitz der Gesellschaft: Bahnhofsplatz, 96444 Coburg Vorsitzender des Aufsichtsrats: Prof. Dr. Heinrich R. Schradin. Vorstand: Klaus-Jürgen Heitmann (Sprecher), Stefan Gronbach, Dr. Hans Olav Herøy, Dr. Jörg Rheinländer (stv.), Sarah Rössler, Daniel Thomas. ======================================================================= Diese Nachricht enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese Nachricht irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Nachricht ist nicht gestattet. This information may contain confidential and/or privileged information. If you are not the intended recipient (or have received this information in error) please notify the sender immediately and destroy this information. Any unauthorized copying, disclosure or distribution of the material in this information is strictly forbidden. ======================================================================= -----Ursprüngliche Nachricht----- Von: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] Im Auftrag von valdis.kletnieks@vt.edu Gesendet: Mittwoch, 20. Juni 2018 16:45 An: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Betreff: Re: [gpfsug-discuss] mmbackup issue On Wed, 20 Jun 2018 14:08:09 -0000, "Grunenberg, Renar" said:
There are after each test (change of the content) the file became every time a new inode number. This behavior is the reason why the shadowfile think(or the policyengine) the old file is never existent
That's because as far as the system is concerned, this is a new file that happens to have the same name.
At SAS the data file will updated with a xx.data.new file and after the close the xx.data.new will be renamed to the original name xx.data again. And the miss interpretation of different inodes happen again.
Note that all the interesting information about a file is contained in the inode (the size, the owner/group, the permissions, creation time, disk blocks allocated, and so on). The *name* of the file is pretty much the only thing about a file that isn't in the inode - and that's because it's not a unique value for the file (there can be more than one link to a file). The name(s) of the file are stored in the parent directory as inode/name pairs. So here's what happens. You have the original file xx.data. It has an inode number 9934 or whatever. In the parent directory, there's an entry "name xx.data -> inode 9934". SAS creates a new file xx.data.new with inode number 83425 or whatever. Different file - the creation time, blocks allocated on disk, etc are all different than the file described by inode 9934. The directory now has "name xx.data -> 9934" "name xx.data.new -> inode 83425". SAS then renames xx.data.new - and rename is defined as "change the name entry for this inode, removing any old mappings for the same name" . So... 0) 'rename xx.data.new xx.data'. 1) Find 'xx.data.new' in this directory. "xx.data.new -> 83425" . So we're working with that inode. 2) Check for occurrences of the new name. Aha. There's 'xxx.data -> 9934'. Remove it. (2a) This may or may not actually make the file go away, as there may be other links and/or open file references to it.) 3) The directory now only has '83425 xx.data.new -> 83425'. 4) We now change the name. The directory now has 'xx.data -> 83425'. And your backup program quite rightly concludes that this is a new file by a name that was previously used - because it *is* a new file. Created at a different time, different blocks on disk, and so on. The only time that writing a "new" file keeps the same inode number is if the program actually opens the old file for writing and overwrites the old contents. However, this isn't actually done by many programs (including vi and SAS, as you've noticed) because if writing out the file encounters an error, you now have lost the contents - the old version has been overwritten, and the new version isn't complete and correct. So many programs write to a truly new file and then rename, because if writing the new file fails, the old version is still available on disk....
On 20/06/18 17:00, Grunenberg, Renar wrote:
Hallo Valdis, first thanks for the explanation we understand that, but this problem generate only 2 Version at tsm server for the same file, in the same directory. This mean that mmbackup and the .shadow... has no possibility to have for the same file in the same directory more then 2 backup versions with tsm. The native ba-client manage this. (Here are there already different inode numbers existent.) But at TSM-Server side the file that are selected at 'ba incr' are merged to the right filespace and will be binded to the mcclass >2 Version exist.
I think what you are saying is that mmbackup is only keeping two versions of the file in the backup, the current version and a single previous version. Normally in TSM you can control how many previous versions of the file that you can keep, for both active and inactive (aka deleted). You can also define how long these version are kept for. It sounds like you are saying that mmbackup is ignoring the policy that you have set for this in TSM (q copy) and doing it's own thing? JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
Hallo JAB, the main problem here is that the inode is changeing for the same file in the same directory. The mmbackup generate and execute at first the expirelist from the same file with the old inode number and afterward the selective backup for the same file with the new inode number. We want to test now to increase the version deleted Parameter here. In contrast to the ba incr in a local fs TSM make these steps in one and handle these issue. My hope now the mmbackup people can enhance these to generate a comparison list is the Filename in the selection list and the filename already in expirelist and check these first, skip these file from expire list, before the expire list will be executed. Regards Renar Renar Grunenberg Abteilung Informatik – Betrieb HUK-COBURG Bahnhofsplatz 96444 Coburg Telefon: 09561 96-44110 Telefax: 09561 96-44104 E-Mail: Renar.Grunenberg@huk-coburg.de Internet: www.huk.de ======================================================================= HUK-COBURG Haftpflicht-Unterstützungs-Kasse kraftfahrender Beamter Deutschlands a. G. in Coburg Reg.-Gericht Coburg HRB 100; St.-Nr. 9212/101/00021 Sitz der Gesellschaft: Bahnhofsplatz, 96444 Coburg Vorsitzender des Aufsichtsrats: Prof. Dr. Heinrich R. Schradin. Vorstand: Klaus-Jürgen Heitmann (Sprecher), Stefan Gronbach, Dr. Hans Olav Herøy, Dr. Jörg Rheinländer (stv.), Sarah Rössler, Daniel Thomas. ======================================================================= Diese Nachricht enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese Nachricht irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Nachricht ist nicht gestattet. This information may contain confidential and/or privileged information. If you are not the intended recipient (or have received this information in error) please notify the sender immediately and destroy this information. Any unauthorized copying, disclosure or distribution of the material in this information is strictly forbidden. ======================================================================= -----Ursprüngliche Nachricht----- Von: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] Im Auftrag von Jonathan Buzzard Gesendet: Donnerstag, 21. Juni 2018 09:33 An: gpfsug-discuss@spectrumscale.org Betreff: Re: [gpfsug-discuss] mmbackup issue On 20/06/18 17:00, Grunenberg, Renar wrote:
Hallo Valdis, first thanks for the explanation we understand that, but this problem generate only 2 Version at tsm server for the same file, in the same directory. This mean that mmbackup and the .shadow... has no possibility to have for the same file in the same directory more then 2 backup versions with tsm. The native ba-client manage this. (Here are there already different inode numbers existent.) But at TSM-Server side the file that are selected at 'ba incr' are merged to the right filespace and will be binded to the mcclass >2 Version exist.
I think what you are saying is that mmbackup is only keeping two versions of the file in the backup, the current version and a single previous version. Normally in TSM you can control how many previous versions of the file that you can keep, for both active and inactive (aka deleted). You can also define how long these version are kept for. It sounds like you are saying that mmbackup is ignoring the policy that you have set for this in TSM (q copy) and doing it's own thing? JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hallo All, here the requirement for enhancement of mmbackup. http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=121687 Please vote. Renar Grunenberg Abteilung Informatik – Betrieb HUK-COBURG Bahnhofsplatz 96444 Coburg Telefon: 09561 96-44110 Telefax: 09561 96-44104 E-Mail: Renar.Grunenberg@huk-coburg.de Internet: www.huk.de ======================================================================= HUK-COBURG Haftpflicht-Unterstützungs-Kasse kraftfahrender Beamter Deutschlands a. G. in Coburg Reg.-Gericht Coburg HRB 100; St.-Nr. 9212/101/00021 Sitz der Gesellschaft: Bahnhofsplatz, 96444 Coburg Vorsitzender des Aufsichtsrats: Prof. Dr. Heinrich R. Schradin. Vorstand: Klaus-Jürgen Heitmann (Sprecher), Stefan Gronbach, Dr. Hans Olav Herøy, Dr. Jörg Rheinländer (stv.), Sarah Rössler, Daniel Thomas. ======================================================================= Diese Nachricht enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese Nachricht irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Nachricht ist nicht gestattet. This information may contain confidential and/or privileged information. If you are not the intended recipient (or have received this information in error) please notify the sender immediately and destroy this information. Any unauthorized copying, disclosure or distribution of the material in this information is strictly forbidden. ======================================================================= -----Ursprüngliche Nachricht----- Von: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] Im Auftrag von Jonathan Buzzard Gesendet: Donnerstag, 21. Juni 2018 09:33 An: gpfsug-discuss@spectrumscale.org Betreff: Re: [gpfsug-discuss] mmbackup issue On 20/06/18 17:00, Grunenberg, Renar wrote:
Hallo Valdis, first thanks for the explanation we understand that, but this problem generate only 2 Version at tsm server for the same file, in the same directory. This mean that mmbackup and the .shadow... has no possibility to have for the same file in the same directory more then 2 backup versions with tsm. The native ba-client manage this. (Here are there already different inode numbers existent.) But at TSM-Server side the file that are selected at 'ba incr' are merged to the right filespace and will be binded to the mcclass >2 Version exist.
I think what you are saying is that mmbackup is only keeping two versions of the file in the backup, the current version and a single previous version. Normally in TSM you can control how many previous versions of the file that you can keep, for both active and inactive (aka deleted). You can also define how long these version are kept for. It sounds like you are saying that mmbackup is ignoring the policy that you have set for this in TSM (q copy) and doing it's own thing? JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
participants (4)
-
Grunenberg, Renar -
Jonathan Buzzard -
Olaf Weiser -
valdis.kletnieks@vt.edu
