public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* xfs file system corruption
@ 2008-10-07 23:18 Allan Haywood
  2008-10-07 23:34 ` Dave Chinner
  0 siblings, 1 reply; 6+ messages in thread
From: Allan Haywood @ 2008-10-07 23:18 UTC (permalink / raw)
  To: xfs@oss.sgi.com

To All:

On a production system we are running into an interesting situation where we hit a corrupt file system, let me outline the timeline as best I know it:

We have a failover process where there are two servers connected to fiber storage, if the active server goes into failover (for numerous reasons) an automatic process kicks in that makes it inactive, and then makes the backup server active, here are the details:


1.       On failed server database and other processes are shut down (attempts)

2.       Fiber attached file system is unmounted (attempts)

3.       Fiber ports are turned off for that server

4.       On backup server fiber ports are turned on

5.       Fiber attached file system is mounted (same filesystems that were on the previous server)

6.       Database and other processes are started

7.       The backup server is now active and processing queries

Here is where it got interesting, when recovering from the backup server back to the main server we pretty much just reverse the steps above. We had the file systems unmount cleanly on the backup server, however when we went to mount it on the main server it detected a file system corruption (using xfs_check it indicated a repair was needed so xfs_repair was then run on the filesystem), it proceded to "fix" the filesystem, at which point we lost files that the database needed for one of the tables.

What I am curious about is the following message in the system log:

Oct  2 08:15:09 arch-node4 kernel: Device dm-31, XFS metadata write error block 0x40 in dm-31

This is when the main node was fenced (fiber ports turned off), I am wondering if any pending XFS metadata still exists, later on when the fiber is unfenced that the metadata flushes to disk. I could see this as an issue, if there are pending metadata writes to a filesystem, that filesystem through failure is mounted on another server and used as normal, then unmounted normally, then when the ports are re-activated on the server that has pending metadata, is it possible this does get flushed to the disk, but since the disk has been in use on another server the metadata no longer matches the filesystem properly and potentially writes over or changes the filesystem in a way that causes corruption.

Any thoughts would be great.

If there is any more info I can provide, let me know.

Thanks.


--

Allan Haywood, Systems Engineering Program Manager II
SQL Server Data Warehousing Product Unit
allan.haywood@microsoft.com



[[HTML alternate version deleted]]

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

end of thread, other threads:[~2008-10-08  0:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-07 23:18 xfs file system corruption Allan Haywood
2008-10-07 23:34 ` Dave Chinner
2008-10-07 23:49   ` Allan Haywood
2008-10-07 23:58     ` Allan Haywood
2008-10-08  0:12       ` Dave Chinner
2008-10-08  0:15     ` Andi Kleen

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