LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-28-2009, 12:03 PM   #1
Zwentendorf
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Rep: Reputation: 0
Deleted files on a SMB-share - Files gone, space still allocated - Fedora 10


I was re-organizing some of my shared files on a Vista box, and ran into a bunch of duplicate files on my Fedora file server. Those files were on a Samba-shared volume that was mapped as a network drive. Now, instead of deleting them the usual way, i.e. launching a WinSPC session, I did it via Windows Explorer. A big mistake.

The files are indeed gone, but I only gained ~500 MB of free space, for 62 GB of deleted files. The actual volume is ext3. Any ideas on fixing this allocation problem would be much appreciated.
 
Old 02-28-2009, 12:14 PM   #2
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

are you really sure the files are gone? Possibly there're file pointers open to the files, what means they are not shown in the file system, but space will first be shown as free after the pointers are closed.

Try
Code:
 lsof
and take a look if there's a software having the file open.
 
Old 02-28-2009, 12:29 PM   #3
Zwentendorf
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mesiol View Post
Hi,

are you really sure the files are gone? Possibly there're file pointers open to the files, what means they are not shown in the file system, but space will first be shown as free after the pointers are closed.

Try
Code:
 lsof
and take a look if there's a software having the file open.
Thanks, hadn't thought of that. I verified that the files were not in use, and rebooted the box to make sure. Unfortunately this didn't fix the problem.
 
Old 03-01-2009, 12:16 AM   #4
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hi,

this sound really strange to me. Did you verify how many diskspace the existing files on the disk allocate?

Try
Code:
 du -sk MY_DIRECTORY_WHERE_I_DELETED_FILES
and
Code:
 df -k
and compare the outputs.

I'm not aware of any kind of bug producing problems like this on a ext3 filesystem.
 
Old 03-01-2009, 05:04 AM   #5
Zwentendorf
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mesiol View Post
Hi,

this sound really strange to me. Did you verify how many diskspace the existing files on the disk allocate?

Try
Code:
 du -sk MY_DIRECTORY_WHERE_I_DELETED_FILES
and
Code:
 df -k
and compare the outputs.

I'm not aware of any kind of bug producing problems like this on a ext3 filesystem.
Strange indeed, but I think you've actually lead me to the root of the problem. Yesterday I detached all other drives from the box, and ran e2fsck. Nothing changed.

Now by comparing the actual allocated space, and the df -k -output it all came back to me.

Code:
 
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                     188039012 175953472   2533668  99% /
/dev/sda5               202219     34245    157534  18% /boot
tmpfs                   256488       108    256380   1% /dev/shm
/dev/sda3            239722336  42511256 197211080  18% /media/2002_01_01_09:00
I had to get the box running quickly after a disk failure one day, and installed Fedora on an old 320GB linkstation drive I had lying around. Clearly I didn't pay too much attention and the end result was a confused filesystem. As you can see, the system thinks that sda3 has 189 GB of free space left, while 168 GB are used on the first volume. 189+168=357, which is a bit of a paradox on a 320 GB disk.

The strange thing is that this mess had actually worked until yesterday. I never touched sda3, to make sure I don't fill the drive to capacity. All file operations still work perfectly, including deleting files locally. It's strange, because the deleted files were on the volume that's still 99% full, but I guess the missing free space can be blamed on the confused filesystem & Samba.

Last edited by Zwentendorf; 03-01-2009 at 05:08 AM.
 
  


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
Deleted files through samba share; Recovery?? Zero-0-Effect Linux - General 4 05-01-2009 02:30 PM
samba public share files deleted npubudu Linux - Software 4 02-11-2009 05:19 AM
Deleted files taking up space airwolf2 Linux - Newbie 2 12-09-2007 02:42 PM
10.2 can't modify files on windows share through SMB ajsitch Suse/Novell 2 01-19-2007 08:55 AM
what files can be safely deleted to save disk space? rohan208 Linux - General 9 05-27-2004 08:06 PM


All times are GMT -5. The time now is 05:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration