Hi All, I was under the (possibly false) impression that if you have a filesystem where the system pool contains metadata only then the only thing that would cause the amount of free space in that pool to change is the creation of more inodes … is that correct? In other words, given that I have a filesystem with 130 million free (but allocated) inodes: Inode Information ----------------- Number of used inodes: 218635454 Number of free inodes: 131364674 Number of allocated inodes: 350000128 Maximum number of inodes: 350000128 I would not expect that a user creating a few hundred or thousands of files could cause a “no space left on device” error (which I’ve got one user getting). There’s plenty of free data space, BTW. Now my system pool is almost “full”: (pool total) 2.878T 34M ( 0%) 140.9M ( 0%) But again, what - outside of me creating more inodes - would cause that to change?? Thanks… Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633
If the new files need indirect blocks or extended attributes that don’t fit in the basic inode, additional metadata space would need to be allocated. There might be other reasons but these come to mind immediately. -- ddj Dave Johnson
On Jan 23, 2018, at 12:16 PM, Buterbaugh, Kevin L <Kevin.Buterbaugh@Vanderbilt.Edu> wrote:
Hi All,
I was under the (possibly false) impression that if you have a filesystem where the system pool contains metadata only then the only thing that would cause the amount of free space in that pool to change is the creation of more inodes … is that correct? In other words, given that I have a filesystem with 130 million free (but allocated) inodes:
Inode Information ----------------- Number of used inodes: 218635454 Number of free inodes: 131364674 Number of allocated inodes: 350000128 Maximum number of inodes: 350000128
I would not expect that a user creating a few hundred or thousands of files could cause a “no space left on device” error (which I’ve got one user getting). There’s plenty of free data space, BTW.
Now my system pool is almost “full”:
(pool total) 2.878T 34M ( 0%) 140.9M ( 0%)
But again, what - outside of me creating more inodes - would cause that to change??
Thanks…
Kevin
— Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Directory entries are also stored in the system pool and existing directories must grow in size (indirect blocks) to hold additional files/dir references as new files/dirs are created. That would be my initial guess anyways. The “pool total” output below seems to indicate that you only have 34Mb of free space… that is definitely not good, -B From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Buterbaugh, Kevin L Sent: Tuesday, January 23, 2018 11:17 AM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: [gpfsug-discuss] Metadata only system pool Note: External Email ________________________________ Hi All, I was under the (possibly false) impression that if you have a filesystem where the system pool contains metadata only then the only thing that would cause the amount of free space in that pool to change is the creation of more inodes … is that correct? In other words, given that I have a filesystem with 130 million free (but allocated) inodes: Inode Information ----------------- Number of used inodes: 218635454 Number of free inodes: 131364674 Number of allocated inodes: 350000128 Maximum number of inodes: 350000128 I would not expect that a user creating a few hundred or thousands of files could cause a “no space left on device” error (which I’ve got one user getting). There’s plenty of free data space, BTW. Now my system pool is almost “full”: (pool total) 2.878T 34M ( 0%) 140.9M ( 0%) But again, what - outside of me creating more inodes - would cause that to change?? Thanks… Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633 ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you are hereby notified that any review, dissemination or copying of this email is strictly prohibited, and to please notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request or solicitation of any kind to buy, sell, subscribe, redeem or perform any type of transaction of a financial product.
One possibility is the creation/expansion of directories or allocation of indirect blocks for large files. Not sure if this is the issue here but at one time inode allocation was considered slow and so folks may have pre-allocated inodes to avoid that overhead during file creation. To my understanding inode creation time is not so slow that users need to pre-allocate inodes. Yes, there are likely some applications where pre-allocating may be necessary but I expect they would be the exception. I mention this because you have a lot of free inodes and of course once they are allocated they cannot be de-allocated. Fred __________________________________________________ Fred Stock | IBM Pittsburgh Lab | 720-430-8821 stockf@us.ibm.com From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/23/2018 12:17 PM Subject: [gpfsug-discuss] Metadata only system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi All, I was under the (possibly false) impression that if you have a filesystem where the system pool contains metadata only then the only thing that would cause the amount of free space in that pool to change is the creation of more inodes … is that correct? In other words, given that I have a filesystem with 130 million free (but allocated) inodes: Inode Information ----------------- Number of used inodes: 218635454 Number of free inodes: 131364674 Number of allocated inodes: 350000128 Maximum number of inodes: 350000128 I would not expect that a user creating a few hundred or thousands of files could cause a “no space left on device” error (which I’ve got one user getting). There’s plenty of free data space, BTW. Now my system pool is almost “full”: (pool total) 2.878T 34M ( 0%) 140.9M ( 0%) But again, what - outside of me creating more inodes - would cause that to change?? Thanks… Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
If you are still running out of space when mmdf shows preallocated inodes left I'd check MaxInodes vs AllocInodes for that fileset. You can run: mmlsfileset <fs> -L Thanks, Chris? ________________________________ From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> on behalf of Frederick Stock <stockf@us.ibm.com> Sent: Tuesday, January 23, 2018 9:25 AM To: gpfsug main discussion list Subject: Re: [gpfsug-discuss] Metadata only system pool One possibility is the creation/expansion of directories or allocation of indirect blocks for large files. Not sure if this is the issue here but at one time inode allocation was considered slow and so folks may have pre-allocated inodes to avoid that overhead during file creation. To my understanding inode creation time is not so slow that users need to pre-allocate inodes. Yes, there are likely some applications where pre-allocating may be necessary but I expect they would be the exception. I mention this because you have a lot of free inodes and of course once they are allocated they cannot be de-allocated. Fred __________________________________________________ Fred Stock | IBM Pittsburgh Lab | 720-430-8821 stockf@us.ibm.com From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/23/2018 12:17 PM Subject: [gpfsug-discuss] Metadata only system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org ________________________________ Hi All, I was under the (possibly false) impression that if you have a filesystem where the system pool contains metadata only then the only thing that would cause the amount of free space in that pool to change is the creation of more inodes ... is that correct? In other words, given that I have a filesystem with 130 million free (but allocated) inodes: Inode Information ----------------- Number of used inodes: 218635454 Number of free inodes: 131364674 Number of allocated inodes: 350000128 Maximum number of inodes: 350000128 I would not expect that a user creating a few hundred or thousands of files could cause a "no space left on device" error (which I've got one user getting). There's plenty of free data space, BTW. Now my system pool is almost "full": (pool total) 2.878T 34M ( 0%) 140.9M ( 0%) But again, what - outside of me creating more inodes - would cause that to change?? Thanks... Kevin - Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu>- (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
2.8TB seems quite high for only 350M inodes. Are you sure you only have metadata in there? On Tue, Jan 23, 2018 at 9:25 AM, Frederick Stock <stockf@us.ibm.com> wrote:
One possibility is the creation/expansion of directories or allocation of indirect blocks for large files.
Not sure if this is the issue here but at one time inode allocation was considered slow and so folks may have pre-allocated inodes to avoid that overhead during file creation. To my understanding inode creation time is not so slow that users need to pre-allocate inodes. Yes, there are likely some applications where pre-allocating may be necessary but I expect they would be the exception. I mention this because you have a lot of free inodes and of course once they are allocated they cannot be de-allocated.
Fred __________________________________________________ Fred Stock | IBM Pittsburgh Lab | 720-430-8821 <(720)%20430-8821> stockf@us.ibm.com
From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/23/2018 12:17 PM Subject: [gpfsug-discuss] Metadata only system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org ------------------------------
Hi All,
I was under the (possibly false) impression that if you have a filesystem where the system pool contains metadata only then the only thing that would cause the amount of free space in that pool to change is the creation of more inodes … is that correct? In other words, given that I have a filesystem with 130 million free (but allocated) inodes:
Inode Information ----------------- Number of used inodes: 218635454 Number of free inodes: 131364674 Number of allocated inodes: 350000128 Maximum number of inodes: 350000128
I would not expect that a user creating a few hundred or thousands of files could cause a “no space left on device” error (which I’ve got one user getting). There’s plenty of free data space, BTW.
Now my system pool is almost “full”:
(pool total) 2.878T 34M ( 0%) 140.9M ( 0%)
But again, what - outside of me creating more inodes - would cause that to change??
Thanks…
Kevin
— Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education *Kevin.Buterbaugh@vanderbilt.edu* <Kevin.Buterbaugh@vanderbilt.edu>- (615)875-9633 <(615)%20875-9633>
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug. org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwICAg&c=jf_ iaSHvJObTbx-siA1ZOg&r=p_1XEUyoJ7-VJxF_w8h9gJh8_Wj0Pey73LCLLoxodpw&m= gou0xYZwz8M-5i8mT6Tthafi8JW2aMrzQGMK1hUEUls&s=jcHOB_ vmJjE8PnrpfHqzMkm1nk6QWwkn2npTEP6kcKs&e=
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hi All, I do have metadata replication set to two, so Alex, does that make more sense? And I had forgotten about indirect blocks for large files, which actually makes sense with the user in question … my apologies for that … due to a very gravely ill pet and a recovering at home from pneumonia family member I’m way more sleep deprived right now than I’d like. :-( Fred - I think you’ve already answered this … but mmchfs can only create / allocate more inodes … it cannot be used to shrink the number of inodes? That would make sense, and if that’s the case then I can allocate more NSDs to the system pool. Thanks… Kevin On Jan 23, 2018, at 11:27 AM, Alex Chekholko <alex@calicolabs.com<mailto:alex@calicolabs.com>> wrote: 2.8TB seems quite high for only 350M inodes. Are you sure you only have metadata in there? On Tue, Jan 23, 2018 at 9:25 AM, Frederick Stock <stockf@us.ibm.com<mailto:stockf@us.ibm.com>> wrote: One possibility is the creation/expansion of directories or allocation of indirect blocks for large files. Not sure if this is the issue here but at one time inode allocation was considered slow and so folks may have pre-allocated inodes to avoid that overhead during file creation. To my understanding inode creation time is not so slow that users need to pre-allocate inodes. Yes, there are likely some applications where pre-allocating may be necessary but I expect they would be the exception. I mention this because you have a lot of free inodes and of course once they are allocated they cannot be de-allocated. Fred __________________________________________________ Fred Stock | IBM Pittsburgh Lab | 720-430-8821<tel:(720)%20430-8821> stockf@us.ibm.com<mailto:stockf@us.ibm.com> From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Date: 01/23/2018 12:17 PM Subject: [gpfsug-discuss] Metadata only system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org> ________________________________ Hi All, I was under the (possibly false) impression that if you have a filesystem where the system pool contains metadata only then the only thing that would cause the amount of free space in that pool to change is the creation of more inodes … is that correct? In other words, given that I have a filesystem with 130 million free (but allocated) inodes: Inode Information ----------------- Number of used inodes: 218635454 Number of free inodes: 131364674 Number of allocated inodes: 350000128 Maximum number of inodes: 350000128 I would not expect that a user creating a few hundred or thousands of files could cause a “no space left on device” error (which I’ve got one user getting). There’s plenty of free data space, BTW. Now my system pool is almost “full”: (pool total) 2.878T 34M ( 0%) 140.9M ( 0%) But again, what - outside of me creating more inodes - would cause that to change?? Thanks… Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu>- (615)875-9633<tel:(615)%20875-9633> _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fspectrumscal...> https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=p_1XEUyoJ7-VJxF_w8h9gJh8_Wj0Pey73LCLLoxodpw&m=gou0xYZwz8M-5i8mT6Tthafi8JW2aMrzQGMK1hUEUls&s=jcHOB_vmJjE8PnrpfHqzMkm1nk6QWwkn2npTEP6kcKs&e=<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss%26d%3DDwICAg%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3Dp_1XEUyoJ7-VJxF_w8h9gJh8_Wj0Pey73LCLLoxodpw%26m%3Dgou0xYZwz8M-5i8mT6Tthafi8JW2aMrzQGMK1hUEUls%26s%3DjcHOB_vmJjE8PnrpfHqzMkm1nk6QWwkn2npTEP6kcKs%26e%3D&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C1607a3fe872e4241587b08d56286a746%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636523252830007825&sdata=%2B87gWCFaIiPJUDwTWW5KxsR11rJJB6o6EfrIgIOGPKE%3D&reserved=0> _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fspectrumscal...> http://gpfsug.org/mailman/listinfo/gpfsug-discuss<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2Fmailman%2Flistinfo%2Fgpfsug-discuss&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C1607a3fe872e4241587b08d56286a746%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C1%7C636523252830007825&sdata=rIFx3lzbAIH5SZtFxJsVqWMMSo%2F0LssNc4K4tZH3uQc%3D&reserved=0> _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2...
You are correct about mmchfs, you can increase the inode maximum but once an inode is allocated it cannot be de-allocated in the sense that the space can be recovered. You can of course decreased the inode maximum to a value equal to the used and allocated inodes but that would not help you here. Providing more metadata space via additional NSDs seems your most expedient option to address the issue. Fred __________________________________________________ Fred Stock | IBM Pittsburgh Lab | 720-430-8821 stockf@us.ibm.com From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/23/2018 01:10 PM Subject: Re: [gpfsug-discuss] Metadata only system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi All, I do have metadata replication set to two, so Alex, does that make more sense? And I had forgotten about indirect blocks for large files, which actually makes sense with the user in question … my apologies for that … due to a very gravely ill pet and a recovering at home from pneumonia family member I’m way more sleep deprived right now than I’d like. :-( Fred - I think you’ve already answered this … but mmchfs can only create / allocate more inodes … it cannot be used to shrink the number of inodes? That would make sense, and if that’s the case then I can allocate more NSDs to the system pool. Thanks… Kevin On Jan 23, 2018, at 11:27 AM, Alex Chekholko <alex@calicolabs.com> wrote: 2.8TB seems quite high for only 350M inodes. Are you sure you only have metadata in there? On Tue, Jan 23, 2018 at 9:25 AM, Frederick Stock <stockf@us.ibm.com> wrote: One possibility is the creation/expansion of directories or allocation of indirect blocks for large files. Not sure if this is the issue here but at one time inode allocation was considered slow and so folks may have pre-allocated inodes to avoid that overhead during file creation. To my understanding inode creation time is not so slow that users need to pre-allocate inodes. Yes, there are likely some applications where pre-allocating may be necessary but I expect they would be the exception. I mention this because you have a lot of free inodes and of course once they are allocated they cannot be de-allocated. Fred __________________________________________________ Fred Stock | IBM Pittsburgh Lab | 720-430-8821 stockf@us.ibm.com From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/23/2018 12:17 PM Subject: [gpfsug-discuss] Metadata only system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi All, I was under the (possibly false) impression that if you have a filesystem where the system pool contains metadata only then the only thing that would cause the amount of free space in that pool to change is the creation of more inodes … is that correct? In other words, given that I have a filesystem with 130 million free (but allocated) inodes: Inode Information ----------------- Number of used inodes: 218635454 Number of free inodes: 131364674 Number of allocated inodes: 350000128 Maximum number of inodes: 350000128 I would not expect that a user creating a few hundred or thousands of files could cause a “no space left on device” error (which I’ve got one user getting). There’s plenty of free data space, BTW. Now my system pool is almost “full”: (pool total) 2.878T 34M ( 0%) 140.9M ( 0%) But again, what - outside of me creating more inodes - would cause that to change?? Thanks… Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu- (615)875-9633 _______________________________________________ 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 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2... _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
rough calculation (assuming 4k inodes): 350 x 10^6 x 4096 Bytes=1.434TB=1.304TiB. With replication that uses 2.877TB or 2.308TiB As already mentioned here, directory and indirect blocks come on top. Even if you could get rid of a portion of the allocated and unused inodes that metadata pool appears bit small to me. If that is a large filesystem there should be some funding to extend it. If you have such a many-but-small-files system as discussed recently in this theatre, you might still beg for more MD storage but that makes than a larger portion of the total cost (assuming data storage is on HDD and md storage on SSD) and that again reduces your chances. 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: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/23/2018 06:17 PM Subject: [gpfsug-discuss] Metadata only system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi All, I was under the (possibly false) impression that if you have a filesystem where the system pool contains metadata only then the only thing that would cause the amount of free space in that pool to change is the creation of more inodes ? is that correct? In other words, given that I have a filesystem with 130 million free (but allocated) inodes: Inode Information ----------------- Number of used inodes: 218635454 Number of free inodes: 131364674 Number of allocated inodes: 350000128 Maximum number of inodes: 350000128 I would not expect that a user creating a few hundred or thousands of files could cause a ?no space left on device? error (which I?ve got one user getting). There?s plenty of free data space, BTW. Now my system pool is almost ?full?: (pool total) 2.878T 34M ( 0%) 140.9M ( 0%) But again, what - outside of me creating more inodes - would cause that to change?? Thanks? Kevin ? Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
If one were starting over, it might make sense to use a smaller inode size. I believe we still support 512, 1K, 2K. Tradeoff with the fact that inodes can store data and EAs. From: "Uwe Falke" <UWEFALKE@de.ibm.com> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/23/2018 04:04 PM Subject: Re: [gpfsug-discuss] Metadata only system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org rough calculation (assuming 4k inodes): 350 x 10^6 x 4096 Bytes=1.434TB=1.304TiB. With replication that uses 2.877TB or 2.308TiB As already mentioned here, directory and indirect blocks come on top. Even if you could get rid of a portion of the allocated and unused inodes that metadata pool appears bit small to me. If that is a large filesystem there should be some funding to extend it. If you have such a many-but-small-files system as discussed recently in this theatre, you might still beg for more MD storage but that makes than a larger portion of the total cost (assuming data storage is on HDD and md storage on SSD) and that again reduces your chances. 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: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/23/2018 06:17 PM Subject: [gpfsug-discuss] Metadata only system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi All, I was under the (possibly false) impression that if you have a filesystem where the system pool contains metadata only then the only thing that would cause the amount of free space in that pool to change is the creation of more inodes ? is that correct? In other words, given that I have a filesystem with 130 million free (but allocated) inodes: Inode Information ----------------- Number of used inodes: 218635454 Number of free inodes: 131364674 Number of allocated inodes: 350000128 Maximum number of inodes: 350000128 I would not expect that a user creating a few hundred or thousands of files could cause a ?no space left on device? error (which I?ve got one user getting). There?s plenty of free data space, BTW. Now my system pool is almost ?full?: (pool total) 2.878T 34M ( 0%) 140.9M ( 0%) But again, what - outside of me creating more inodes - would cause that to change?? Thanks? Kevin ? Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633 _______________________________________________ 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 https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
Hi All, This is all making sense and I appreciate everyone’s responses … and again I apologize for not thinking about the indirect blocks. Marc - we specifically chose 4K inodes when we created this filesystem a little over a year ago so that small files could fit in the inode and therefore be stored on the metadata SSDs. This is more of a curiosity question … is it documented somewhere how a 4K inode is used? I understand that for very small files up to 3.5K of that can be for data, but what about for large files? I.e., how much of that 4K is used for block addresses (3.5K plus whatever portion was already allocated to block addresses??) … or what I’m really asking is, given 4K inodes and a 1M block size how big does a file have to be before it will need to use indirect blocks? Thanks again… Kevin On Jan 23, 2018, at 1:12 PM, Marc A Kaplan <makaplan@us.ibm.com<mailto:makaplan@us.ibm.com>> wrote: If one were starting over, it might make sense to use a smaller inode size. I believe we still support 512, 1K, 2K. Tradeoff with the fact that inodes can store data and EAs. From: "Uwe Falke" <UWEFALKE@de.ibm.com<mailto:UWEFALKE@de.ibm.com>> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Date: 01/23/2018 04:04 PM Subject: Re: [gpfsug-discuss] Metadata only system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org> ________________________________ rough calculation (assuming 4k inodes): 350 x 10^6 x 4096 Bytes=1.434TB=1.304TiB. With replication that uses 2.877TB or 2.308TiB As already mentioned here, directory and indirect blocks come on top. Even if you could get rid of a portion of the allocated and unused inodes that metadata pool appears bit small to me. If that is a large filesystem there should be some funding to extend it. If you have such a many-but-small-files system as discussed recently in this theatre, you might still beg for more MD storage but that makes than a larger portion of the total cost (assuming data storage is on HDD and md storage on SSD) and that again reduces your chances. 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<mailto: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: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/23/2018 06:17 PM Subject: [gpfsug-discuss] Metadata only system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi All, I was under the (possibly false) impression that if you have a filesystem where the system pool contains metadata only then the only thing that would cause the amount of free space in that pool to change is the creation of more inodes ? is that correct? In other words, given that I have a filesystem with 130 million free (but allocated) inodes: Inode Information ----------------- Number of used inodes: 218635454 Number of free inodes: 131364674 Number of allocated inodes: 350000128 Maximum number of inodes: 350000128 I would not expect that a user creating a few hundred or thousands of files could cause a ?no space left on device? error (which I?ve got one user getting). There?s plenty of free data space, BTW. Now my system pool is almost ?full?: (pool total) 2.878T 34M ( 0%) 140.9M ( 0%) But again, what - outside of me creating more inodes - would cause that to change?? Thanks? Kevin ? Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwIFAw&c=jf_iaSHvJObTbx-siA1ZOg&r=cvpnBBH0j41aQy0RPiG2xRL_M8mTc1izuQD3_PmtjZ8&m=8WgQlUnhzFycOZf-YvqYpdUkCiyEdRvWukE-KKRuFbE&s=aCywbK-1heVHPR8Fg74z9VxkGbNfCxMdtEKIDMWVIwI&e=<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss%26d%3DDwIFAw%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DcvpnBBH0j41aQy0RPiG2xRL_M8mTc1izuQD3_PmtjZ8%26m%3D8WgQlUnhzFycOZf-YvqYpdUkCiyEdRvWukE-KKRuFbE%26s%3DaCywbK-1heVHPR8Fg74z9VxkGbNfCxMdtEKIDMWVIwI%26e%3D&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C77fefde14ec54e04b35708d5629550bd%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636523315820548341&sdata=3KmA%2BL3EVMZYzDCK9sb%2FPjwi8UWcFg7tjUVHbIpaTMM%3D&reserved=0> _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwIFAw&c=jf_iaSHvJObTbx-siA1ZOg&r=cvpnBBH0j41aQy0RPiG2xRL_M8mTc1izuQD3_PmtjZ8&m=8WgQlUnhzFycOZf-YvqYpdUkCiyEdRvWukE-KKRuFbE&s=aCywbK-1heVHPR8Fg74z9VxkGbNfCxMdtEKIDMWVIwI&e=<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss%26d%3DDwIFAw%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DcvpnBBH0j41aQy0RPiG2xRL_M8mTc1izuQD3_PmtjZ8%26m%3D8WgQlUnhzFycOZf-YvqYpdUkCiyEdRvWukE-KKRuFbE%26s%3DaCywbK-1heVHPR8Fg74z9VxkGbNfCxMdtEKIDMWVIwI%26e%3D&data=02%7C01%7CKevin.Buterbaugh%40vanderbilt.edu%7C77fefde14ec54e04b35708d5629550bd%7Cba5a7f39e3be4ab3b45067fa80faecad%7C0%7C0%7C636523315820548341&sdata=3KmA%2BL3EVMZYzDCK9sb%2FPjwi8UWcFg7tjUVHbIpaTMM%3D&reserved=0> _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2...
Hi, Kevin, (reproducing mainly what I've learned from Yuri) a 512B inode can hold about 32 Disk Addresses (DAs) addressing 32 physical disk blocks (but mind: if max replication - not necessarily actual repl. -- is set to more than 1, that mans for example 16 logical blocks (R=2). A DA is 12 bytes. With a 4k inode you can expect the other 3.5kiB to contain also DAs throughout (about 298) So with R=2 (even if actual replication is r=1), a 4k inode can hold max about 330 DAs addressing 165 logical blocks The max file size w/out indirect addressing is thus 165 x blocksize (e.g. 1320MiB @8MiB) However, there could be other data structures in an inode (EAs) reducing the space available for DAs Hence, YMMV 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: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/23/2018 08:26 PM Subject: Re: [gpfsug-discuss] Metadata only system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi All, This is all making sense and I appreciate everyone?s responses ? and again I apologize for not thinking about the indirect blocks. Marc - we specifically chose 4K inodes when we created this filesystem a little over a year ago so that small files could fit in the inode and therefore be stored on the metadata SSDs. This is more of a curiosity question ? is it documented somewhere how a 4K inode is used? I understand that for very small files up to 3.5K of that can be for data, but what about for large files? I.e., how much of that 4K is used for block addresses (3.5K plus whatever portion was already allocated to block addresses??) ? or what I?m really asking is, given 4K inodes and a 1M block size how big does a file have to be before it will need to use indirect blocks? Thanks again? Kevin On Jan 23, 2018, at 1:12 PM, Marc A Kaplan <makaplan@us.ibm.com> wrote: If one were starting over, it might make sense to use a smaller inode size. I believe we still support 512, 1K, 2K. Tradeoff with the fact that inodes can store data and EAs. From: "Uwe Falke" <UWEFALKE@de.ibm.com> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/23/2018 04:04 PM Subject: Re: [gpfsug-discuss] Metadata only system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org rough calculation (assuming 4k inodes): 350 x 10^6 x 4096 Bytes=1.434TB=1.304TiB. With replication that uses 2.877TB or 2.308TiB As already mentioned here, directory and indirect blocks come on top. Even if you could get rid of a portion of the allocated and unused inodes that metadata pool appears bit small to me. If that is a large filesystem there should be some funding to extend it. If you have such a many-but-small-files system as discussed recently in this theatre, you might still beg for more MD storage but that makes than a larger portion of the total cost (assuming data storage is on HDD and md storage on SSD) and that again reduces your chances. 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: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 01/23/2018 06:17 PM Subject: [gpfsug-discuss] Metadata only system pool Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi All, I was under the (possibly false) impression that if you have a filesystem where the system pool contains metadata only then the only thing that would cause the amount of free space in that pool to change is the creation of more inodes ? is that correct? In other words, given that I have a filesystem with 130 million free (but allocated) inodes: Inode Information ----------------- Number of used inodes: 218635454 Number of free inodes: 131364674 Number of allocated inodes: 350000128 Maximum number of inodes: 350000128 I would not expect that a user creating a few hundred or thousands of files could cause a ?no space left on device? error (which I?ve got one user getting). There?s plenty of free data space, BTW. Now my system pool is almost ?full?: (pool total) 2.878T 34M ( 0%) 140.9M ( 0%) But again, what - outside of me creating more inodes - would cause that to change?? Thanks? Kevin ? Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633 _______________________________________________ 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 https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi... _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgpfsug.org%2... _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
One way to know for sure it to do some experiments and dump some inodes with the command tsdbfs filesystem_name inode inode_number Of course improper use of tsdbfs command can destroy or corrupt your filesystems. So I take no responsibility for that. To stay safe, only use it on test filesystems you can afford to lose. (If you are root `dd if=/dev/zero of=/dev/some-disk-you-should-not-wipe` is also something you should not do!)
participants (8)
-
Alex Chekholko -
Bryan Banister -
Buterbaugh, Kevin L -
Chris Hoffman -
david_johnson@brown.edu -
Frederick Stock -
Marc A Kaplan -
Uwe Falke
