0

Hello All,
Im running Cent OS 5.8 and had a kernal panic.
I have resolved this before by running xfs_repair but recently ran into an issue where it seems to hang on Phase 4.
In research i found there was a pactch for this in the XFS patch list.
I have never applied a patch like this and not sure if anyone is familiar with how.

Patch URL

Downloading the patch it looks like some code to be executed. Any assistance would be great

diff -Nurp xfsprogs-3.1.5/repair/btree.c xfsprogs-3.1.5-dirty/repair/btree.c
--- xfsprogs-3.1.5/repair/btree.c       2011-03-31 12:11:25.000000000 +0900
+++ xfsprogs-3.1.5-dirty/repair/btree.c 2011-04-17 16:04:14.000000000 +0900
@@ -520,6 +520,7 @@ btree_update_key(
                return EINVAL;

        btree_update_node_key(root, root->cursor, 0, new_key);
+       root->cur_key = new_key;

        return 0;
 }

Edited by c1ockwerk

3
Contributors
3
Replies
12
Views
3 Years
Discussion Span
Last Post by c1ockwerk
0

Yes, you'll need to download the source, apply the patch with diffutils (or manually) and then you'll need to recompile it and install it.

0

You might also try /sbin/fsck.xfs, though I would suspect that it converts that into a call to xfs_repair. It may be worth a try, however.

0

thank you for the help.
its a custom version of CentOS so we are being told not to patch.
But at least I understand how to now.

Edited by c1ockwerk

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.