vzquota on, disable recalculating disk usage after force quota off (-f) [message #53121] |
Fri, 12 January 2018 10:50 |
andreyb
Messages: 25 Registered: February 2008
|
Junior Member |
|
|
For example:
# pwd
/var/data
# vzquota on 100001
# cd test/test
# vzquota off 100001
vzquota : (error) Quota off syscall for id 100001: Device or resource busy
vzquota : (error) Possible reasons:
vzquota : (error) - Container's root is not unmounted
vzquota : (error) - there are opened files inside container's root/private area
vzquota : (error) - your current working directory is inside a container directory
vzquota : (error) root/private area
vzquota : (error) Currently used file(s):
/var/data/test/test
# vzquota off 100001 -f
# cd -
# vzquota on 100001
vzquota : (warning) quota usage is invalid for id 100001, recalculating disk usage...
#
How can I disable the recolculating for enable qouta after force disable quota?
[Updated on: Fri, 12 January 2018 10:50] Report message to a moderator
|
|
|
|
Re: vzquota on, disable recalculating disk usage after force quota off (-f) [message #53125 is a reply to message #53123] |
Fri, 12 January 2018 18:20 |
andreyb
Messages: 25 Registered: February 2008
|
Junior Member |
|
|
Thank you for support.
My case is:
There is share directory on the host. This share is mount in several container throught simfs. I need the total quota for the share. For this I using the own mount script ("vzquota on" is for first mount of share directory into the container and "vzquouta off" is for last unmount share directory, for example in case "service vz stop"). But sometimes (in case reboot host with share directory as bash working directory for example) the qouta is not disable correctly. Thus the containers start very long. All containers are waiting the reculculating of share directory (there are a lot of files). I want to disable the recolculating in my mount script. Inaccuracy in the calculation for me is not critical. I thought "quota on -f" disable the recolculating.
|
|
|