[PVE-User] Query disk usage

Marco Gaiarin gaio at sv.lnf.it
Mon Mar 6 16:17:02 CET 2017


Mandi! Emmanuel Kasper
  In chel di` si favelave...

> For this you can simply use lvs.

Interesting. But how can i red this data:

root at magneto:~# lvs
  LV            VG   Attr       LSize    Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  data          pve  twi-aotz--  783.23g             50.38  25.36                           
  root          pve  -wi-ao----  100.00g                                                    
  swap          pve  -wi-ao----   32.00g                                                    
  vm-100-disk-1 pve  Vwi-aotz--  150.00g data        98.66                                  
  vm-100-disk-2 pve  Vwi-aotz-- 1000.00g data        20.57                                  
  vm-101-disk-1 pve  Vwi-aotz--   30.00g data        95.75                                  
  vm-102-disk-1 pve  Vwi-aotz--  160.00g data        7.63                 

'vm-100-disk-2' is effectively full at 20%, roughly, but
'vm-100-disk-1' is full as:

 root at brucaliffo:~# df -h | grep vda
 /dev/vda2       976M  319M    591M  36% /
 /dev/vda3       4,9G  2,9G    1,7G  64% /usr
 /dev/vda4       118G   26G     87G  23% /var

(24GB of swap missing, so roughly 53-55GB of 150, surely not 98% !!!).

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''          http://www.lanostrafamiglia.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
    http://www.lanostrafamiglia.it/25/index.php/component/k2/item/123
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)



More information about the pve-user mailing list