Start a Conversation

Solved!

Go to Solution

1 Rookie

 • 

8 Posts

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.

No Responses!
No Events found!

Top