Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-16-2011, 03:38 PM   #1
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Rep: Reputation: 34
XFS - Files disappearing

Image files are disappearing off my harddrive. Basically there are references to files that used to be there but they have zero bytes. I've noticed this happening before but it was always just a couple random files so I always thought my browser was messing up when downloading something. Recently though I was organizing a bunch of images and one folder in particular lost quite a few. All I did was reboot my computer. It should have been a clean reboot but for some reason it did a recovery...
[   10.369694] XFS mounting filesystem md127
[   10.821454] Starting XFS recovery on filesystem: md127 (logdev: internal)
[   26.103306] Ending XFS recovery on filesystem: md127 (logdev: internal)
Is there any way to look at a log of this recovery process? I assume this is what nuked everything.

I'm using sshfs on another computer but I had unmounted that drive and everything before hand... There are actually thumbnails still in gqview and thunar (file manager) from before the unmount / reboot but the images fail to load in the main window.

Here are a couple examples of files I have with zero bytes
-rw-r--r-- 1 username groupname       0  5月  2  2011 according to 台湾.jpg

-rw-r--r-- 1 username groupname        0 12月 15 15:38 hs-2008-40-a-xlarge_web.jpg
Old 12-16-2011, 07:10 PM   #2
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Original Poster
Rep: Reputation: 34
I might have figured out what's happening.
Yes, this is unfortunately a "known feature" of XFS. The problem here is that XFS default "maximum write-cache time" is 30 seconds, whereas on e.g. Ext3 it's 5 seconds. So if you have a crash during those 30 seconds that XFS has not yet written its files from the cache onto the disk you will get those corrupted files with zero bytes length.
I have a habit of simply typing "reboot" to restart the computer and I guess if I'm using the filesystem over the network and then rebooting it's not properly storing files to the disk.

It's managed to lose 3,188 files... honestly I'm not that upset cause those are mostly scans of magazines, and it appears the majority of files that it lost are grouped together. I think the problem can be solved by remounting read only and syncing the filesystem before reboot. Ie
remount -r -o remount /filesystem

Last edited by 1veedo; 12-16-2011 at 07:19 PM.



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
how do I undelete files on an XFS filesystem felbvts Linux - Software 17 07-02-2012 07:53 AM
Linux Samba Share and Mac OS X - Files Disappearing? klugenratte Linux - Software 15 12-25-2011 11:58 PM
[SOLVED] LVM2 in use, files are disappearing! armchair rambo Linux - Software 7 10-26-2011 01:03 AM
[SOLVED] unison/iwatch sync - files disappearing from server edderkop Linux - Networking 2 06-08-2010 07:13 AM
Recover files from XFS partition Christof999 Linux - Software 5 07-23-2006 11:47 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:13 PM.

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