public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* XFS write cache flush policy
@ 2012-12-06  8:51 Lin Li
  2012-12-08 19:29 ` Matthias Schniedermeyer
  2012-12-10  0:45 ` Dave Chinner
  0 siblings, 2 replies; 14+ messages in thread
From: Lin Li @ 2012-12-06  8:51 UTC (permalink / raw)
  To: xfs


[-- Attachment #1.1: Type: text/plain, Size: 1017 bytes --]

Hi, Guys. I recently suffered a huge data loss on power cut on an XFS
partition. The problem was that I copied a lot of files (roughly 20Gb) to
an XFS partition, then 10 hours later, I got an unexpected power cut. As a
result, all these newly copied files disappeared as if they had never been
copied. I tried to check and repair the partition, but xfs_check reports no
error at all. So I guess the problem is that the meta data for these files
were all kept in the cache (64Mb) and were never committed to the hard
disk.

What is the cache flush policy for XFS? Does it always reserve some fixed
space in cache for metadata? I asked because I thought since I copied such
a huge amount of data, at least some of these files must be fully committed
to the hard disk, then cache is only 64Mb anyway. But the reality is all of
them were lost. the only possibility I can think is some part of the cache
was reserved for meta data, so even the cache is fully filled, this part
will not be written to the disk. Am I right?

[-- Attachment #1.2: Type: text/html, Size: 1032 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-12-11  0:23 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-06  8:51 XFS write cache flush policy Lin Li
2012-12-08 19:29 ` Matthias Schniedermeyer
2012-12-08 19:40   ` Michael Monnerie
2012-12-08 19:51     ` Joe Landman
2012-12-08 19:53     ` Matthias Schniedermeyer
2012-12-09  7:19       ` Lin Li
2012-12-10  1:01       ` Dave Chinner
2012-12-10 20:14     ` Michael Monnerie
2012-12-10  0:58   ` Dave Chinner
2012-12-10  9:12     ` Matthias Schniedermeyer
2012-12-10 20:54       ` Eric Sandeen
2012-12-10 21:45         ` Matthias Schniedermeyer
2012-12-11  0:25           ` Dave Chinner
2012-12-10  0:45 ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox