1 Rookie
•
8 Posts
0
77
December 13th, 2024 14:42
Delete child directory under default-directory quota in OneFS?
Hi,
I'm using Default-Directory quotas to apply differents quotas on a large amount of directories for my user.
For example :
-> Sub-directories of "/ifs/cluster/data/smb/quota-1" are automatically getting a quota of 300M.
----> ifs/cluster/data/smb/quota-1/user1 is getting a 300M quota.
----> ifs/cluster/data/smb/quota-1/user2 is getting a 300M quota.
-> Sub-directories of "/ifs/cluster/data/smb/quota-2" are automatically getting a quota of 600M
----> ifs/cluster/data/smb/quota-2/user3 is getting a 600M quota.
----> ifs/cluster/data/smb/quota-2/user4 is getting a 600M quota.
My issue:
I'm unable to delete or move a sub-directory (Through unix commands on the node or through Windows Explorer). From my experience and tests, the reason is the existing "directory linked "quota on this sub-directory.
So how to delete a directory linked under Default-Directory quota without deleting this Default-Directory quota? Or bypass the existing quota to move/delete my directory?
I tried to unlink the directory under SmartQuotas then delete it but the quota is automatically recreated due to the Directory-Default
Also tried to delete the Default-Directory quota, delete my sub-directory then recreate the default-directory but that's not really efficient (it takes a lot of time to regenerate every quota on the sub-directories when you have a lot...)
Maybe I'm missing something...
All solutions are welcome! :)
Thank you.
DELL-Josh Cr
Moderator
•
9.2K Posts
0
December 13th, 2024 21:28
Hi,
Thanks for your question.
Which version of OneFS are you using? Try this https://dell.to/4fgIYHp
# isi job start TreeDelete --paths=</ifs/quota_dir>
Let us know if you have any additional questions.
Bergereyz
1 Rookie
•
8 Posts
0
December 16th, 2024 13:19
Hi Josh,
We're running 9.4.0 and it works really well!
This is exactly what I was looking for so thank you!
Regards.