HD Space Root

BitRausch

Renowned Member
Mar 16, 2009
140
0
81
Muenster
Hi @all,

maybe its a simple question:
I allocated 50GB space for root during the installation.
The GUI is showing me:
HD Space (root): Total 49.22 GB
Used 46.57 GB

I was wondering how I can find out whats using the space and how I can free up some space.


best regards
 
This is a pve server I am using in my LAB. Its running for more then a year. Maybe it needs some clean-up ?

here is the output of df:
Code:
root@BigOne:~# df -H
Filesystem                                             Size  Used Avail Use% Mounted on
udev                                                    11M     0   11M   0% /dev
tmpfs                                                  3.4G  369k  3.4G   1% /run
/dev/mapper/pve-root                                    53G   51G  154M 100% /
tmpfs                                                  5.3M     0  5.3M   0% /run/lock
tmpfs                                                  6.8G   23M  6.8G   1% /run/shm
/dev/mapper/pve-data                                   1.9T  311G  1.6T  17% /var/lib/vz
/dev/sda1                                              519M  180M  314M  37% /boot
/dev/fuse                                               32M   17k   32M   1% /etc/pve
192.168.178.8:/RaidZ/bigone/LAB                        1.4T  264G  1.1T  21% /mnt/pve/NFS-LAB
192.168.178.8:/RaidZ/smartpool/VMConverter/ProxmoxISO  3.1T  2.0T  1.1T  66% /mnt/pve/NFSIso
192.168.178.8:/RaidZ/bigone/manu                       1.4T  264G  1.1T  21% /mnt/pve/NFS-Manu
192.168.178.8:/RaidZ/smartpool/VMConverter/Outcome/    3.1T  2.0T  1.1T  66% /mnt/pve/NFSBackup

pveversion:
Code:
pve-manager: 3.0-20 (pve-manager/3.0/0428106c)
running kernel: 2.6.32-20-pve
proxmox-ve-2.6.32: 3.0-100
pve-kernel-2.6.32-11-pve: 2.6.32-66
pve-kernel-2.6.32-20-pve: 2.6.32-100
pve-kernel-2.6.32-19-pve: 2.6.32-96
lvm2: 2.02.95-pve3
clvm: 2.02.95-pve3
corosync-pve: 1.4.5-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.0-1
pve-cluster: 3.0-4
qemu-server: 3.0-15
pve-firmware: 1.0-22
libpve-common-perl: 3.0-4
libpve-access-control: 3.0-4
libpve-storage-perl: 3.0-6
vncterm: 1.1-3
vzctl: 4.0-1pve3
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 1.4-12
ksm-control-daemon: 1.1-1
 
Thank you ejc317!

That was the command I was looking for. But I am not sure if I understand the output correctly:

It shows me the file bigger the 100 MB I understand. Here is the output:

Code:
root@BigOne:~# find / -size +100M
/var/lib/vz/images/1002/vm-1002-disk-1.raw
/var/lib/vz/images/302/vm-302-disk-1.raw
/var/lib/vz/images/105/vm-105-disk-1.raw
/var/lib/vz/images/106/vm-106-disk-2.raw
/var/lib/vz/images/106/vm-106-disk-1.raw
/var/lib/vz/images/3001/vm-3001-disk-1.raw
/var/lib/vz/images/3001/vm-3001-disk-2.raw
/var/lib/vz/images/1001/vm-1001-disk-1.raw
/var/lib/vz/images/1001/vm-1001-disk-2.raw
/var/lib/vz/images/301/vm-301-disk-1.raw
/var/lib/vz/images/1003/vm-1003-disk-1.raw
/var/lib/vz/images/3000/vm-3000-disk-1.raw
/var/lib/vz/images/101/vm-101-disk-1.raw
/var/lib/vz/images/2000/vm-2000-disk-1.raw
/var/lib/vz/images/100/vm-100-disk-1.raw
/var/lib/vz/images/1000/vm-1000-disk-1.raw
/var/tmp/CGItemp37554
/mnt/pve/NFS-Manu/dump/vzdump-qemu-105-2013_04_13-03_59_43.vma.gz
/mnt/pve/NFS-Manu/dump/vzdump-qemu-102-2013_04_13-03_00_01.vma.gz
/mnt/pve/NFS-LAB/dump/vzdump-qemu-102-2013_01_15-14_41_46.tar.gz
/mnt/pve/NFS-LAB/dump/vzdump-qemu-102-2013_04_13-03_00_01.vma.gz
/mnt/pve/NFS-LAB/dump/vzdump-qemu-1000-2013_05_27-13_00_11.vma.gz
/mnt/pve/NFS-LAB/dump/vzdump-qemu-104-2013_01_15-14_52_18.tar.gz
/mnt/pve/NFS-LAB/dump/vzdump-qemu-105-2013_04_13-03_59_43.vma.gz
/mnt/pve/NFSIso/template/iso/CentOS-6.3-i386-bin-DVD1.iso
/mnt/pve/NFSIso/template/iso/debian-5.0-joomla_1.5.15-1_i386.tar.gz
/mnt/pve/NFSIso/template/iso/clearos-community-6.3.0-x86_64.iso
/mnt/pve/NFSIso/template/iso/ubuntu-12.04.1-server-amd64.iso
/mnt/pve/NFSIso/template/iso/openthinclient-1.0.0.jar
/mnt/pve/NFSIso/template/iso/Windows7_Pro_DE_x32.iso
/mnt/pve/NFSIso/template/iso/pmagic-6.4.iso
/mnt/pve/NFSIso/template/iso/de_install_disc_windows_small_business_server_2011_standard_x64_dvd_611539.iso
/mnt/pve/NFSIso/template/iso/WW_2009.ISO
/mnt/pve/NFSIso/template/iso/trinity-rescue-kit.3.3-build-334.iso
/mnt/pve/NFSIso/template/iso/de_windows_server_2008_r2_standard_enterprise_datacenter_web_retail_x64_dvd_x15-50367.iso
/mnt/pve/NFSIso/template/iso/Windows7_Ultimate_DE_x32.iso
/mnt/pve/NFSIso/template/iso/de_microsoft_desktop_optimization_pack_2011_x86_x64_dvd_645035.iso
/mnt/pve/NFSIso/template/iso/de_windows_7_professional_with_sp1_x64_dvd_u_676919.iso
/mnt/pve/NFSIso/template/iso/latest_asg_v9_software.iso
/mnt/pve/NFSIso/template/iso/Lexware_2010_upd.iso
/mnt/pve/NFSIso/template/iso/SW_DVD5_NTRL_Windows_Small_Bus_Svr_Std_2008_German_-2_Comp_Tech_X15-70577.ISO
/mnt/pve/NFSIso/template/iso/SBS_R2_Premium - MSDN.iso
/mnt/pve/NFSIso/template/iso/AcronisRestore.iso
/mnt/pve/NFSIso/template/iso/clonezilla-live-1.2.8-23-amd64.iso
/mnt/pve/NFSIso/template/iso/zentyal-3.0-amd64.iso
/mnt/pve/NFSIso/template/iso/ctsw1226.iso
/mnt/pve/NFSIso/template/iso/de_repair_disc_SBS_2011_standard_x64_dvd_612427.iso
/mnt/pve/NFSIso/template/iso/SW_DVD5_NTRL_SQL_Svr_2008_SP1_German_X15-51859.ISO
/mnt/pve/NFSIso/template/iso/Windows_AIK_DE.iso
/mnt/pve/NFSIso/template/iso/serv2009.iso
/mnt/pve/NFSIso/template/iso/WAWI_1200.ISO
/mnt/pve/NFSIso/template/iso/WWPRO10.ISO
/mnt/pve/NFSIso/template/iso/debian-6.0.4-amd64-netinst.iso
/mnt/pve/NFSIso/template/iso/SW_CD_Windows_Home_Server_URP1_German_1_Restore_OEM_X14-24263.ISO
/mnt/pve/NFSIso/template/iso/CentOS-6.3-i386-LiveCD.iso
/mnt/pve/NFSIso/template/iso/de_windows_7_ultimate_x86_dvd_x15-65929.iso
/mnt/pve/NFSIso/template/iso/CentOS-6.3-i386-bin-DVD2.iso
/mnt/pve/NFSIso/template/iso/WAWI_1300.ISO
find: `/proc/13662/task/13662/fd/5': No such file or directory
find: `/proc/13662/task/13662/fdinfo/5': No such file or directory
find: `/proc/13662/fd/5': No such file or directory
find: `/proc/13662/fdinfo/5': No such file or directory


I understand that all directorys with /mnt/... are remote directorys+files. But where are the *.raw files located under /var/lib/vz/images ? Are they on my root partition (50GB) or on my LVM partition ?

here is what lvdispaly looks like:

Code:
  --- Logical volume ---
  LV Path                /dev/pve/swap
  LV Name                swap
  VG Name                pve
  LV UUID                sn7b0i-iUPl-aMq4-2Awk-iRAV-QfpO-bXackM
  LV Write Access        read/write
  LV Creation host, time proxmox, 2012-07-04 19:47:22 +0200
  LV Status              available
  # open                 1
  LV Size                16.00 GiB
  Current LE             4096
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1


  --- Logical volume ---
  LV Path                /dev/pve/root
  LV Name                root
  VG Name                pve
  LV UUID                UG8Ag4-59nJ-GpzX-bxeP-ZA3n-V3G0-FrVL3l
  LV Write Access        read/write
  LV Creation host, time proxmox, 2012-07-04 19:47:22 +0200
  LV Status              available
  # open                 1
  LV Size                50.00 GiB
  Current LE             12800
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0


  --- Logical volume ---
  LV Path                /dev/pve/data
  LV Name                data
  VG Name                pve
  LV UUID                9oUB9C-eRTU-8WWi-I2yX-VoOY-54Nq-iACh2p
  LV Write Access        read/write
  LV Creation host, time proxmox, 2012-07-04 19:47:22 +0200
  LV Status              available
  # open                 1
  LV Size                1.74 TiB
  Current LE             455712
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2
 
wow - thanks Tom. did not see that thread - sorry. Based on the information in that thread I found out that the file /var/tmp/CGItemp37554 is arround 45GB !!! big.
Now - what is this file and is it save to delete it ?