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
but when i use ls in main server
it used about 15 gig.
how can i clean the vm hard disk to reduce the 15 gig to a lower value !?
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 !?