##### ISSUE TYPE <!-- Pick one below and delete the rest --> * Bug Report ##### COMPONENT NAME <!-- Categorize the issue, e.g. API, VR, VPN, UI, etc. --> ~~~ GetVolumeStatsCommand ~~~ ##### CLOUDSTACK VERSION <!-- New line separated list of affected versions, commit ID for issues on the master branch. --> ~~~ 4.11+ (tested 4.11.2 and Master) ~~~ ##### CONFIGURATION <!-- Information about the configuration if relevant, e.g. basic network, advanced networking, etc. N/A otherwise --> NA ##### OS / ENVIRONMENT <!-- Information about the environment if relevant, N/A otherwise --> NA ##### SUMMARY <!-- Explain the problem/feature briefly --> physical volume size reported is wrong, and doesn't change after you write a lot of data to the VM's root disk (be it linked clone or full clone) ##### STEPS TO REPRODUCE configure "volume.stats.interval" to 60000 (these are milliseconds, not seconds as stated atm - I raised a separate PR for this). 1. Grep management-server.log for "GetVolumeStatsCommand" and observe it's running each minute 2. Inside the VM, write i.e. 50MB to disk - "dd=/dev/urandom of=ddfile bs=1M count=50; sync" 3. Wait for next run of GetVolumeStatsCommand from the mgmt logs - check the size reported in the text output and also on the GUI <!-- You can also paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!-- What did you expect to happen when running the steps above? --> Correct physical size is reported ##### ACTUAL RESULTS <!-- What actually happened? --> <!-- Paste verbatim command output between quotes below --> 0.53KB reported instead of the real size (linked clone - from image bellow is ~ 220MB) 
Activity
andrijapanicsb commentedon Jun 22, 2019
Initial support seems implemented in 4.11 4627fb2
But 4.11.2 is not working - so not sure if it was ever working properly.
Works fine for KVM.
yadvr commentedon Jun 26, 2019
Will investigate this tomorrow @andrijapanic cc @PaulAngus @borisstoyanov
yadvr commentedon Jul 22, 2019
Reopened due to this case where flat files are not part of the chain/info and are ignored in stats calculations: #3473 (comment)
yadvr commentedon Aug 12, 2020
Fixed recently #4225