image used space

peiman

Member
Sep 21, 2016
16
0
6
38
hello
i have a vm its image is vmdk.
in th vm when i used df -h the used space of hard disk is about 5 gig

Code:
peiman@s1:/var/www/html$ df -h
Filesystem               Size  Used Avail Use% Mounted on
udev                     3.9G     0  3.9G   0% /dev
tmpfs                    798M  640K  798M   1% /run
/dev/mapper/s1--vg-root  314G  4.9G  293G   2% /
tmpfs                    3.9G     0  3.9G   0% /dev/shm
tmpfs                    5.0M     0  5.0M   0% /run/lock
tmpfs                    3.9G     0  3.9G   0% /sys/fs/cgroup
tmpfs                    798M     0  798M   0% /run/user/1000


but when i use ls in main server

Code:
root@:/var/lib/vz/images/101# ls -l
total 15510700
-rw-r----- 1 root root 15920594944 Jun  7 21:52 vm-101-disk-0.vmdk

it used about 15 gig.
how can i clean the vm hard disk to reduce the 15 gig to a lower value !?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!