XFS corruption with failover
A message that is not in the archive (sent off-list or not yet received): 424153067.1934481250210293891.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com
Quoted 36 lines · ----- "Felix Blyakher
Quoted 19 lines · John Quigley
Folks:
We're deploying XFS in a configuration where the file system is being exported with NFS. XFS is being mounted on Linux, with default options; an iSCSI volume is the formatted media. We're working out a failover solution for this deployment utilizing Linux
HA. Things appear to work correctly in the general case, but in continuous testing we're getting XFS superblock corruption on a very
reproducible basis.
The sequence of events in our test scenario:1. NFS server #1 online
2. Run IO to NFS server #1 from NFS client
3. NFS server #1 offline, (via passing 'b' to/proc/sysrq-trigger)
4. NFS server #2 online
5. XFS mounted as part of failover mechanism, mount failsQuoted 7 lines
The mount fails with the following:
<snip>
kernel: XFS mounting filesystem sde
kernel: Starting XFS recovery on filesystem: sde (logdev: internal)
kernel: XFS:xlog_recover_process_data: bad clientid
kernel: XFS: log mount/recovery failed: error 5This is an IO error. Is the block device (
/dev/sde) accessible from the server #2 OK? Can you dd from that device?Quoted 4 lines
kernel: XFS: log mount failed
</snip>
Quoted 8 lines
Quoted 1 line
When running
xfs_repair:That's not a good time to run
xfs_repair. There were no indication that the filesystem is corrupted.Let's take for a sec "NFS server #2" out of the picture. Can you mount the filesystem from the original server after it reboots?
If that fails too can you run xfs_logprint on /dev/sde and post any errors it reports?
Quoted 29 lines
Felix
Quoted 19 lines
<snip>
[root@machine ~]#xfs_repair/dev/sdexfs_repair: warning - cannotset blocksize on block device
/dev/sde: Invalid argument Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
ERROR: The filesystem has valuable metadata changes in a log whichneeds ...
</snip>Any advice or insight into what we're doing wrong would be very much
appreciated. My apologies in advance for the somewhat off-topic question.
Quoted 6 lines
- John Quigley
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 4 lines
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 2 lines · Lachlan McIlroy
If that fails too can you run
xfs_logprinton/dev/sdeand post any errors it reports?
I'll definitely do so, thanks.
- John Quigley
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Quoted 2 lines · Lachlan McIlroy
If that fails too can you run
xfs_logprinton/dev/sdeand post any errors it reports?
My apologies for the delayed response; output of logprint can be downloaded as a ~4MB bzip:
http://www.jquigley.com/files/tmp/xfs-failover-logprint.bz2
Thanks very much for your consideration.
- John Quigley
_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs