Bug #2783

Storage size calculation for Datastore using du

Added by Ruben S. Montero over 7 years ago. Updated over 6 years ago.

Status:ClosedStart date:03/19/2014
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:Drivers - Storage
Target version:Release 4.10.2
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.4

Description

Support for sparse files can mislead the storage calculation, using --apparent-size should fix this. There are two scripts at least affected by this:
  1. IM - ds_monitoring.sh
  2. Datastore - fs/monitor

Related issues

Related to Backlog #2402: Keep track of allocated storage in DS Pending 10/23/2013
Related to Bug #3393: Multiple probes running on a node Closed 12/03/2014

Associated revisions

Revision 4ec69144
Added by Javi Fontan over 6 years ago

bug #2783: use df instead of du for datastore usage

Revision 1c72903c
Added by Javi Fontan over 6 years ago

bug #2783: use df instead of du for datastore usage

(cherry picked from commit 4ec69144c9561d9200f0578ae9a4701b4dbeb5a7)

History

#1 Updated by Ruben S. Montero about 7 years ago

  • Target version changed from Release 4.6 to Release 4.8

#2 Updated by Jaime Melis about 7 years ago

  • Related to Backlog #2402: Keep track of allocated storage in DS added

#3 Updated by Ruben S. Montero about 7 years ago

This will be solved when the storage is checked by OpenNebula. This will also means that we use df...

#4 Updated by Ruben S. Montero about 7 years ago

  • Status changed from New to Closed
  • Assignee deleted (Javi Fontan)
  • Resolution set to wontfix

#5 Updated by Ruben S. Montero over 6 years ago

  • Status changed from Closed to New
  • Target version changed from Release 4.8 to Release 4.12
  • Resolution deleted (wontfix)

At least to remove du on IM - ds_monitoring.sh. It'd be better to reduce the accuracy of the probe rather than taking down a node with NFS...

#6 Updated by Ruben S. Montero over 6 years ago

  • Related to Bug #3393: Multiple probes running on a node added

#7 Updated by Ruben S. Montero over 6 years ago

  • Target version changed from Release 4.12 to Release 4.10.2

#8 Updated by Ruben S. Montero over 6 years ago

  • Assignee set to Javi Fontan

#9 Updated by Javi Fontan over 6 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Now usage is calculated with df command instead of du.

Also available in: Atom PDF