question

Priya-9505 avatar image
0 Votes"
Priya-9505 asked jiayaozhu-MSFT commented

Manage user disk quotas in Windows

Hello,

With 2 node windows 2019 cluster, i want to manage the user disk quotas. My understanding is that with FSRM, we can do only capacity quota enforcement and not user/group quotas. Hence i explored the disk quota enabled using fsutil for user/group quota.

For the local user i have set the hardlimit as 2MB and wrote data more than 2MB, it didnt complain that user has reached the limit and i could write to the drive without any issues. What am i missing here.

fsutil quota modify H: 1048576 2097152 \Administrator
fsutil quota enforce H:

PS h:\> fsutil quota query H:
FileSystemControlFlags = 0x00000001
Quotas are tracked on this volume
Logging for quota events is not enabled
The quota values are up to date

Default Quota Threshold = 0xffffffffffffffff
Default Quota Limit = 0xffffffffffffffff

SID Name = BUILTIN\Administrators (Alias)
Change time = Thursday, June 3, 2021 12:23:46 PM
Quota Used = 17375232
Quota Threshold = 18446744073709551615
Quota Limit = 18446744073709551615

SID Name = WIN-EST2RNNNHJO\Administrator (User)
Change time = Thursday, June 3, 2021 12:22:25 PM
Quota Used = 0
Quota Threshold = 1048576
Quota Limit = 2097152

SID Name = NT AUTHORITY\NETWORK SERVICE (WellKnownGroup)
Change time = Thursday, June 3, 2021 12:21:47 PM
Quota Used = 1024
Quota Threshold = 18446744073709551615
Quota Limit = 18446744073709551615

SID Name = NT AUTHORITY\SYSTEM (WellKnownGroup)
Change time = Thursday, June 3, 2021 12:21:47 PM
Quota Used = 6293504
Quota Threshold = 18446744073709551615
Quota Limit = 18446744073709551615

I have couple of questions
1. Can we use FSRM for user/group quota?
2. If not, fsutil is the only way to achieve user/group quota?
3. In a clustered environment, can i use fsutil to do the user quota enforcement.


Thanks!



windows-server-storage
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello,

I would like to check if there is any progress in your issue dealing and if the reply could be of help? If yes, please help accept answer, so that others meet a similar issue can find useful information quickly. If you have any other concerns or questions, please feel free to feedback.

Best Regards,
Joan

0 Votes 0 ·

Hello,

I would like to check if the reply could be of help? If yes, please help accept answer, so that others meet a similar issue can find useful information quickly. If you have any other concerns or questions, please feel free to feedback. Your support is really important to our work and I hope that we could hear your response soon.

Have a nice day! : )

Best Regards,
Joan

0 Votes 0 ·

Hello,

I would like to check if the replies in this blog could be of help? If yes, please help accept answer, so that others meet a similar issue can find useful information quickly. If you have any other concerns or questions, please feel free to feedback. Your support is really important to our work.

Best Regards,
Joan

0 Votes 0 ·

1 Answer

LeonLaude avatar image
0 Votes"
LeonLaude answered LeonLaude commented

Hi @Priya-9505,

1. Can we use FSRM for user/group quota?

Unfortunately it is not possible with File Server Resource Manager (FSRM) to do user/group quotas.

2. If not, fsutil is the only way to achieve user/group quota?

Yes fsutil is one way of achieving this, or third-party tools.

3. In a clustered environment, can i use fsutil to do the user quota enforcement.

It should be possible to do in a clustered environment.


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)


Best regards,
Leon



· 8
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks Leon. It would help if you can suggest what could be the issue in my steps as user quota enforcement was not done.

0 Votes 0 ·

I'm not sure if your command worked for your local Administrator, try setting COMPUTERNAME\Administrator

0 Votes 0 ·

If you see the query output, it did pick the setting properly.

SID Name = WIN-EST2RNNNHJO\Administrator (User)
Change time = Thursday, June 3, 2021 12:22:25 PM
Quota Used = 0
Quota Threshold = 1048576
Quota Limit = 2097152

0 Votes 0 ·

Try with a domain user, and also enable quota event logging.

0 Votes 0 ·

Hi Leon,

I am using windows 2019 core OS, i could not find out a command to enable disk quota event logging. Could you please help me with the command.

Thanks!

0 Votes 0 ·

You can do it with Group Policies or with the Registry or by using a .bat script, here's a guide:
https://www.tenforums.com/tutorials/100017-enable-disable-log-event-when-disk-quota-limit-exceeded-windows.html

0 Votes 0 ·

Another question i have is can we enable FSRM and disk quota on a same disk, so that i can enable capacity and user quota on the same disk.

0 Votes 0 ·

I'm not sure if they will collide with each other or know the existence of each other, your best shot is to try it out :)

0 Votes 0 ·