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;
 }

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.

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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.