LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Disk Space shows more used disk thank size of files present in folder (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/disk-space-shows-more-used-disk-thank-size-of-files-present-in-folder-765483/)

vinvar 10-30-2009 12:30 AM

Disk Space shows more used disk thank size of files present in folder
 
Hello All,

I am extremely new to virtualization of servers. I have XENServer 5.5. I am facing a problem that I have not seen before. Unfortunately my admin is off on vacation and I am not very familiar. Kindly help me out.

The problem is that when I do a df –h the /mnt/arep2 mount shows the amount of used space to be 126GB.


[root@mysql-2a ~]# df -h

Filesystem Size Used Avail Use% Mounted on

/dev/mapper/VolGroup00-LogVol00

18G 2.6G 14G 16% /

/dev/xvda1 99M 19M 76M 20% /boot

tmpfs 1.1G 0 1.1G 0% /dev/shm

107.45.2.21:/arep1 396G 342G 35G 91% /mnt/arep1

107.45.2.21:/arep2 132G 126G 0 100% /mnt/arep2

107.45.2.21:/arep3 26G 15G 11G 59% /mnt/arep3


However I am using only 82 GB of the space. The rest of the space is not showing up for some reason. There are no hidden files.


[root@mysql-2a arep2]# ls -lrt

total 80640908

-rw-rw---- 1 mysql mysql 64424509440 Oct 19 09:44 ibdata2-1a

-rw-rw---- 1 mysql mysql 18222583808 Oct 28 22:41 ibdata2-2a



I searched the internet for quite some time for a resolution. There were a few topics which suggested that this could be due to some kind of recovery process on virtual servers which takes snapshots of the disk used at various intervals of time.

Please let me know how to recover this situation as I need the disk space that I lost

nivantha 11-02-2009 10:58 PM

Well I don't have a clue on vertialization. But try this command from the root. It'll give you the size of each directory.

du -hs *

Likewise you can go to each directory and see the size of each directory. You'll be able to get a clue on where the space is taken from.

raskin 11-02-2009 11:59 PM

1. You need to use -lart, not -lrt if you want to be sure there are no hidden files.
2. It is a network FS. Probably you got a directory on a shared drive, and so there are files on server outside of the directory exported to you.


All times are GMT -5. The time now is 03:21 AM.