LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-03-2011, 05:43 AM   #1
boberey
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Rep: Reputation: 0
Mounted disk still reports 0 bytes on Rhel 5 even when files are delete


Mounted second hard disk still report 0 bytes even when files are already deleted in rhel5 . I already checked the lost+found and trash . It only happen that disk space on deleted files cannot be recovered after the disk reach full capacity , but if it does not reach yet its full capacity , deleting files will recover the disk space . The format of the disk I have mounted is ext3 also have tried ntfs using fuse but the same problem , once allowed to reach 0 bytes I can no longer recover space with deleting files and had to reformat and restore the backup. Any suggestion please .
 
Old 05-03-2011, 06:30 AM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
If you delete the file while it's opened with another program then you will not be able to see the recovered space until the file handle is closed. The lsof command will tell you if the file handle is opened and under what process. Once you kill that process then the free space will be visible.
 
Old 05-03-2011, 09:25 PM   #3
boberey
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Original Poster
Rep: Reputation: 0
sir is restarting the system and dismounting the drive not sufficient to close the file handle or kill any open process ? i have the server shutdown /restarted and the disk un-mount/mounted many times but still i cannot recover the disk space.
 
Old 05-05-2011, 12:16 AM   #4
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Then there must be a file or files that are taking up the space. Run the following commands and post the output:

cd /

mount

df -hP

du -hs
 
Old 05-09-2011, 11:37 PM   #5
boberey
LQ Newbie
 
Registered: Dec 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Sir I can no longer show you the actual status of our server since i already reformat it , and just
monitor and delete some files before it reach 0 disk space.We used SAS 300 MB for hda and 300MB for hdb . In hda which contains the system is ok , the hdb which is the mounted disk has the problem of recovering disk space.

I configure a test system using IDE and SATA in order to figure out the problem , below is the result.

the folder properties on mounted drive states
Type : folder
Contents 425 items , totalling 726.2 MB
location : /mnt
Volume 784.4 MB Volume
Free space : 0 bytes

I can no longer recover the 30MB + space

output of the mount/df/du are

[root@localhost /]# mount
/dev/mapper/VolGroup01-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sda1 on /mnt/d2 type ext3 (rw)

[root@localhost /]# df -hP
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup01-LogVol00 37G 3.5G 32G 10% /
/dev/hda1 99M 12M 83M 13% /boot
tmpfs 125M 0 125M 0% /dev/shm
/dev/sda1 773M 733M 0 100% /mnt/d2

[root@localhost /]# du -hs
4.5G .

Last edited by boberey; 05-10-2011 at 08:30 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
zero disk space left even if i delete files wakkana12 Slackware 13 09-07-2010 09:56 AM
RHEL auto delete files with full hard drive mts7 Linux - Server 4 07-13-2010 05:47 PM
Delete files from NTFS disk (using Knoppix 6) fgh464 Linux - Newbie 7 03-06-2009 09:10 PM
Unable to delete the mounted files? your_shadow03 Linux - Newbie 3 09-05-2008 01:49 AM
Df reports zero bytes free Zamolxis Linux - Software 6 12-15-2003 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration