Hi all, I want to run this past the group to see if I’m going mad or not. We do have an open PMR about the issue which is currently being escalated. We have 400 independent filesets all linked to a path in the filesystem. The root of that path is then exported via SMB, e.g.: Fileset1: /gpfs/rootsmb/fileset1 Fileset2: /gpfs/rootsmb/fileset2 The CES export is /gpfs/rootsmb and the name of the share is (for example) “share”. All our filesets have block quotas applied to them with the hard and soft limit being the same. Customers then map drives to these filesets using the following path: \\ces-cluster\share\fileset1<file://ces-cluster/share/fileset1> \\ces-cluster\share\fileset2<file://ces-cluster/share/fileset2> …fileset400 Some customers have one drive mapping only, others have two or more. For the customers that map two or more drives, the quota that Windows reports is identical for each fileset, and is usually for the last fileset that gets mapped. I do not believe this has always been the case: our customers have only recently (since the New Year at least) started complaining in the three+ years we’ve been running GPFS. In my test cluster I’ve tried rolling back to 4.2.3-2 which we were running last Summer and I can easily reproduce the problem. So a couple of questions: 1. Am I right to think that since GPFS is actually exposing the quota of a fileset over SMB then each fileset mapped as a drive in the manner above *should* each report the correct quota? 2. Does anyone else see the same behaviour? 3. There is suspicion this could be recent changes from a Microsoft Update and I’m not ruling that out just yet. Ok so that’s not a question 😊 I am worried that IBM may tell us we’re doing it wrong (humm) and to create individual exports for each fileset but this will quickly become tiresome! Thanks Richard
On Mon, 2018-05-14 at 10:09 +0000, Sobey, Richard A wrote: [SNIP]
I am worried that IBM may tell us we’re doing it wrong (humm) and to create individual exports for each fileset but this will quickly become tiresome!
Worst case scenario you could fall back to using the dfree option in smb.conf and then use a program to get the file quota. I have the ~100 lines of C that you need it. Though it has been ~5 years since I last used it. In fact the whole reporting the fileset quota as the disk size is my idea, and the dfree config option is how I implemented it prior to IBM adding it to the vfs_gpfs module. A quick check shows a commit from Jeremy Allison on June 18th last year to use const stuct smb_filename, the comment on the commit is …instead of const char *. We need to migrate all pathname based VFS calls to use a struct to finish modernising the VFS with extra timestamp and flags parameters. I suspect this change has broken the behaviour. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
Thanks Jonathan. What I failed to mention in my OP was that MacOS clients DO report the correct size of each mounted folder. Not sure how that changes anything except to reinforce the idea that it's Windows at fault. Richard -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Jonathan Buzzard Sent: 14 May 2018 11:45 To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] SMB quotas query On Mon, 2018-05-14 at 10:09 +0000, Sobey, Richard A wrote: [SNIP]
I am worried that IBM may tell us we’re doing it wrong (humm) and to create individual exports for each fileset but this will quickly become tiresome!
Worst case scenario you could fall back to using the dfree option in smb.conf and then use a program to get the file quota. I have the ~100 lines of C that you need it. Though it has been ~5 years since I last used it. In fact the whole reporting the fileset quota as the disk size is my idea, and the dfree config option is how I implemented it prior to IBM adding it to the vfs_gpfs module. A quick check shows a commit from Jeremy Allison on June 18th last year to use const stuct smb_filename, the comment on the commit is …instead of const char *. We need to migrate all pathname based VFS calls to use a struct to finish modernising the VFS with extra timestamp and flags parameters. I suspect this change has broken the behaviour. 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
On Mon, 2018-05-14 at 11:54 +0000, Sobey, Richard A wrote:
Thanks Jonathan. What I failed to mention in my OP was that MacOS clients DO report the correct size of each mounted folder. Not sure how that changes anything except to reinforce the idea that it's Windows at fault.
In which case I would try using the dfree option in the smb.conf and then having it call a shell script that wrote it's inputs to a log file and see if there are any differences between macOS and Windows. If they are the same you could fall back to my old hack and investigate what the changes where to vfs_gpfs. If they are different then the assumptions that vfs_gpfs is making are obviously incorrect. Finally you should test it against an actual Windows server. From memory if you have a quota it reports the quota size as the disk size. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
Hi What is the output of mmlsfs - does you have --filesetdf enabled ? Regards Yaron Daniel 94 Em Ha'Moshavot Rd Storage Architect Petach Tiqva, 49527 IBM Global Markets, Systems HW Sales Israel Phone: +972-3-916-5672 Fax: +972-3-916-5672 Mobile: +972-52-8395593 e-mail: yard@il.ibm.com IBM Israel From: Jonathan Buzzard <jonathan.buzzard@strath.ac.uk> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 05/14/2018 03:22 PM Subject: Re: [gpfsug-discuss] SMB quotas query Sent by: gpfsug-discuss-bounces@spectrumscale.org On Mon, 2018-05-14 at 11:54 +0000, Sobey, Richard A wrote:
Thanks Jonathan. What I failed to mention in my OP was that MacOS clients DO report the correct size of each mounted folder. Not sure how that changes anything except to reinforce the idea that it's Windows at fault.
In which case I would try using the dfree option in the smb.conf and then having it call a shell script that wrote it's inputs to a log file and see if there are any differences between macOS and Windows. If they are the same you could fall back to my old hack and investigate what the changes where to vfs_gpfs. If they are different then the assumptions that vfs_gpfs is making are obviously incorrect. Finally you should test it against an actual Windows server. From memory if you have a quota it reports the quota size as the disk size. 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
Hi Yaron It's currently set to no. Thanks Richard From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Yaron Daniel Sent: 14 May 2018 22:27 To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] SMB quotas query Hi What is the output of mmlsfs - does you have --filesetdfenabled ? Regards ________________________________ Yaron Daniel 94 Em Ha'Moshavot Rd [cid:image001.gif@01D3EC2C.8ACE5310] Storage Architect Petach Tiqva, 49527 IBM Global Markets, Systems HW Sales Israel Phone: +972-3-916-5672 Fax: +972-3-916-5672 Mobile: +972-52-8395593 e-mail: yard@il.ibm.com<mailto:yard@il.ibm.com> IBM Israel<http://www.ibm.com/il/he/> [IBM Storage Strategy and Solutions v1][IBM Storage Management and Data Protection v1][cid:image004.gif@01D3EC2C.8ACE5310][cid:image005.gif@01D3EC2C.8ACE5310] [Related image] From: Jonathan Buzzard <jonathan.buzzard@strath.ac.uk<mailto:jonathan.buzzard@strath.ac.uk>> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Date: 05/14/2018 03:22 PM Subject: Re: [gpfsug-discuss] SMB quotas query Sent by: gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org> ________________________________ On Mon, 2018-05-14 at 11:54 +0000, Sobey, Richard A wrote:
Thanks Jonathan. What I failed to mention in my OP was that MacOS clients DO report the correct size of each mounted folder. Not sure how that changes anything except to reinforce the idea that it's Windows at fault.
In which case I would try using the dfree option in the smb.conf and then having it call a shell script that wrote it's inputs to a log file and see if there are any differences between macOS and Windows. If they are the same you could fall back to my old hack and investigate what the changes where to vfs_gpfs. If they are different then the assumptions that vfs_gpfs is making are obviously incorrect. Finally you should test it against an actual Windows server. From memory if you have a quota it reports the quota size as the disk size. 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
Hi So - u want to get quota report per fileset quota - right ? We use this param when we want to monitor the NFS exports with df , i think this should also affect the SMB filesets. Can u try to enable it and see if it works ? Regards Yaron Daniel 94 Em Ha'Moshavot Rd Storage Architect Petach Tiqva, 49527 IBM Global Markets, Systems HW Sales Israel Phone: +972-3-916-5672 Fax: +972-3-916-5672 Mobile: +972-52-8395593 e-mail: yard@il.ibm.com IBM Israel From: "Sobey, Richard A" <r.sobey@imperial.ac.uk> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 05/15/2018 11:11 AM Subject: Re: [gpfsug-discuss] SMB quotas query Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi Yaron It?s currently set to no. Thanks Richard From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Yaron Daniel Sent: 14 May 2018 22:27 To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] SMB quotas query Hi What is the output of mmlsfs - does you have --filesetdfenabled ? Regards Yaron Daniel 94 Em Ha'Moshavot Rd Storage Architect Petach Tiqva, 49527 IBM Global Markets, Systems HW Sales Israel Phone: +972-3-916-5672 Fax: +972-3-916-5672 Mobile: +972-52-8395593 e-mail: yard@il.ibm.com IBM Israel From: Jonathan Buzzard <jonathan.buzzard@strath.ac.uk> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 05/14/2018 03:22 PM Subject: Re: [gpfsug-discuss] SMB quotas query Sent by: gpfsug-discuss-bounces@spectrumscale.org On Mon, 2018-05-14 at 11:54 +0000, Sobey, Richard A wrote:
Thanks Jonathan. What I failed to mention in my OP was that MacOS clients DO report the correct size of each mounted folder. Not sure how that changes anything except to reinforce the idea that it's Windows at fault.
In which case I would try using the dfree option in the smb.conf and then having it call a shell script that wrote it's inputs to a log file and see if there are any differences between macOS and Windows. If they are the same you could fall back to my old hack and investigate what the changes where to vfs_gpfs. If they are different then the assumptions that vfs_gpfs is making are obviously incorrect. Finally you should test it against an actual Windows server. From memory if you have a quota it reports the quota size as the disk size. 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 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On Tue, 2018-05-15 at 13:10 +0300, Yaron Daniel wrote:
Hi
So - u want to get quota report per fileset quota - right ? We use this param when we want to monitor the NFS exports with df , i think this should also affect the SMB filesets.
Can u try to enable it and see if it works ?
It is irrelevant to Samba, this is or should be handled in vfs_gpfs as Christof said earlier. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
For us the only one that matters is the fileset quota. With or without –perfileset-quota set, we simply see a quota value for one of the filesets that is mapped to a drive, and every other mapped drives inherits the same value. whether it’s true or not. Just about to do some SMB tracing for my PMR. Richard From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Christof Schmitt Sent: 15 May 2018 19:50 To: gpfsug-discuss@spectrumscale.org Cc: gpfsug-discuss@spectrumscale.org Subject: Re: [gpfsug-discuss] SMB quotas query To maybe clarify a few points: There are three quotas: user, group and fileset. User and group quota can be applied on the fileset level or the file system level. Samba with the vfs_gpfs module, only queries the user and group quotas on the requested path. If the fileset quota should also be applied to the reported free space, that has to be done through the --filesetdf parameter. We had the fileset quota query from Samba in the past, but that was a very problematic codepath, and it was removed as --filesetdf is the more reliabel way to achieve the same result. So another part of the question is which quotas should be applied to the reported free space. Regards, Christof Schmitt || IBM || Spectrum Scale Development || Tucson, AZ christof.schmitt@us.ibm.com<mailto:christof.schmitt@us.ibm.com> || +1-520-799-2469 (T/L: 321-2469) ----- Original message ----- From: Jonathan Buzzard <jonathan.buzzard@strath.ac.uk<mailto:jonathan.buzzard@strath.ac.uk>> Sent by: gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Cc: Subject: Re: [gpfsug-discuss] SMB quotas query Date: Tue, May 15, 2018 3:24 AM On Tue, 2018-05-15 at 13:10 +0300, Yaron Daniel wrote:
Hi
So - u want to get quota report per fileset quota - right ? We use this param when we want to monitor the NFS exports with df , i think this should also affect the SMB filesets.
Can u try to enable it and see if it works ?
It is irrelevant to Samba, this is or should be handled in vfs_gpfs as Christof said earlier. 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
On Wed, 2018-05-16 at 08:51 +0000, Sobey, Richard A wrote:
For us the only one that matters is the fileset quota. With or without –perfileset-quota set, we simply see a quota value for one of the filesets that is mapped to a drive, and every other mapped drives inherits the same value. whether it’s true or not. Just about to do some SMB tracing for my PMR.
I have a fully working solution that uses the dfree option in Samba if you want. I am with you here in that a lot of places will be carving a GPFS file system up with file sets with a quota that are then shared to a group of users and you want the disk size, and amount free to show up on the clients based on the quota for the fileset not the whole file system. I am really not sure what the issue with the code path for this as it is 35 lines of C including comments to get the fileset if one exists for a given path on a GPFS file system. You open a random file on the path, call gpfs_fcntl and then gpfs_getfilesetid. It's then a simple call to gpfs_quotactl. JAB. -- Jonathan A. Buzzard Tel: +44141-5483420 HPC System Administrator, ARCHIE-WeSt. University of Strathclyde, John Anderson Building, Glasgow. G4 0NG
Thanks Jonathan for the offer, but I'd prefer to have this working without implementing unsupported options in production. I'd be willing to give it a go in my test cluster though, which is exhibiting the same symptoms, so if you wouldn't mind getting in touch off list I can see how it works? I am almost certain that this used to work properly in the past though. My customers would surely have noticed a problem like this - they like to say when things are wrong 😊 Cheers Richard -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Jonathan Buzzard Sent: 16 May 2018 10:02 To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] SMB quotas query On Wed, 2018-05-16 at 08:51 +0000, Sobey, Richard A wrote:
For us the only one that matters is the fileset quota. With or without –perfileset-quota set, we simply see a quota value for one of the filesets that is mapped to a drive, and every other mapped drives inherits the same value. whether it’s true or not. Just about to do some SMB tracing for my PMR.
I have a fully working solution that uses the dfree option in Samba if you want. I am with you here in that a lot of places will be carving a GPFS file system up with file sets with a quota that are then shared to a group of users and you want the disk size, and amount free to show up on the clients based on the quota for the fileset not the whole file system. I am really not sure what the issue with the code path for this as it is 35 lines of C including comments to get the fileset if one exists for a given path on a GPFS file system. You open a random file on the path, call gpfs_fcntl and then gpfs_getfilesetid. It's then a simple call to gpfs_quotactl. 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
Hi all, This has been resolved by (I presume what Jonathan was referring to in his posts) setting "dfree cache time" to 0. Many thanks for everyone's input on this! Richard -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Sobey, Richard A Sent: 14 May 2018 12:54 To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] SMB quotas query Thanks Jonathan. What I failed to mention in my OP was that MacOS clients DO report the correct size of each mounted folder. Not sure how that changes anything except to reinforce the idea that it's Windows at fault. Richard -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org <gpfsug-discuss-bounces@spectrumscale.org> On Behalf Of Jonathan Buzzard Sent: 14 May 2018 11:45 To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] SMB quotas query On Mon, 2018-05-14 at 10:09 +0000, Sobey, Richard A wrote: [SNIP]
I am worried that IBM may tell us we’re doing it wrong (humm) and to create individual exports for each fileset but this will quickly become tiresome!
Worst case scenario you could fall back to using the dfree option in smb.conf and then use a program to get the file quota. I have the ~100 lines of C that you need it. Though it has been ~5 years since I last used it. In fact the whole reporting the fileset quota as the disk size is my idea, and the dfree config option is how I implemented it prior to IBM adding it to the vfs_gpfs module. A quick check shows a commit from Jeremy Allison on June 18th last year to use const stuct smb_filename, the comment on the commit is …instead of const char *. We need to migrate all pathname based VFS calls to use a struct to finish modernising the VFS with extra timestamp and flags parameters. I suspect this change has broken the behaviour. 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 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
participants (4)
-
Christof Schmitt -
Jonathan Buzzard -
Sobey, Richard A -
Yaron Daniel
