Help - Search - Members - Calendar
Full Version: Drive Space Critical problem
The Planet Forums > Control Panels > cPanel/WHM
ebes92
Hi,

I've got a box with cPanel with 2 hard drives (one for backup).
Until a few days ago, everything was working fine.

But now, I receive drive space alerts :
QUOTE
Drive Warning: /hdc1 (/backup) is 85% full


Here are results of df :
QUOTE
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda3             74778592  20616780  50363244  30% /
/dev/hda1               101089     14638     81232  16% /boot
none                    515280         0    515280   0% /dev/shm
/dev/hdc1             76896316  61486448  11503668  85% /backup


My problem is that the space of backup datas is about 40% of the total space. So what are the 45 other % ? (40+45=85)

I don't know how to list the exact content of /dev/hdc1.

If somebody can help me, he will be really welcome icon_smile.gif

I'd like also to know how to list all files biggest than a certain size. For eg : files biggest than 50Mb.

Thanks

Emmanuel
dalem
cd /backup
du -h --max-depth=1

find the folders with the content in them and cd to them

ls -laSh | more

to list the contents & file sizes


or just use SFPT and browse them
eth00
You probably have daily/weekly/monthly setup which can take up a lot more space.
ebes92
At first, thanks for your help:)

QUOTE (dalem)
cd /backup
du -h --max-depth=1

Here it is the results :
QUOTE
# du -h --max-depth=1
16K     ./lost+found
9.4G    ./cpbackup
9.4G    .

So the bigest folder is cpbackup with 9.4G

QUOTE (dalem)
find the folders with the content in them and cd  to them

ls -laSh | more  

to list the contents & file sizes


Results are :
QUOTE
# ls -laSh | more
total 20K
drwx--x--x    5 root     root         4.0K Oct  9  2004 ./
drwx--x--x    4 root     root         4.0K Oct  7  2004 ../
drwx--x--x    3 root     root         4.0K Sep  3 05:23 daily/
drwx--x--x    2 root     root         4.0K Aug 22 08:20 monthly/
drwx--x--x    2 root     root         4.0K Sep  1 09:46 weekly/


QUOTE (eth00)
You probably have daily/weekly/monthly setup which can take up a lot more space.

Monthly and weekly are empty (as I use only daily backup) and daily content is 9.4G ...

So, there's a strange thing (or a bug) with my 'df' command wich still returns 85% used space on /backup (backup disk is a 80G one with only 9.4G of datas) :
QUOTE
# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda3             74778592  20666472  50313552  30% /
/dev/hda1               101089     14638     81232  16% /boot
none                    515280         0    515280   0% /dev/shm
/dev/hdc1             76896316  61487608  11502508  85% /backup


And I really think I'm not wrong when I say that 9.4 is not 85% of 80Go icon_wink.gif

So where are the mysterious hidden datas ?
ebes92
Well, I found the solution of my problem.

The backup disk was damaged. I had to run a fsck and everything was repared.

Thanks to dalem and eth00 for ther help.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.