Metadata corruption detected buffer - Umount and run xfs_repair

Dear All

             When i,m starting my centos 7, i,m getting this error, i'm trying to use XFS_Repair to fix, but it said "the filesystem has valuable metadata changes in a log which needs to be replayed", than i was trying to mount the /dev/dm-1 , but having waited for long time it got stuck in the mounting screen, any idea how i can do the xfs_repair ?

3              

1
2
4
piaakitAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

serialbandCommented:
The original XFS worked great on SGI, and I've never had trouble with it back when they still existed.   On Linux, however, it's been quite troublesome and I've had to repair the XFS partition numerous times years ago.  I suggest that you have backup if you're going to use XFS and not use it on your boot partition.  They only released part of the XFS source code to open source and Linux is using an incomplete XFS, which is why you have to do these repairs.  XFS for linux is crippled.
0
piaakitAuthor Commented:
My Linux box is using centos 7, anyway I can repair it and  boot back into the OS ?
0
serialbandCommented:
You just have to let it replay the data.  If it's stuck, then maybe the journal logs are corrupt.

You could follow the instructions in your 3rd graphic and delete the XFS journal logs with the -L option.  I remember having to resort to that and suffer some data loss.  Fortunately, it was a data partition for parallel processing jobs that can be recreated.
xfs_repair -L

Unfortunately, you used it for your boot partition.  Again, I suggest you don't use it for the boot partitions.  Only use it for data partitions that are transient or have a back ups.  The Linux version is missing some proprietary source code that they never released.  The original SGI version was much more robust.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

piaakitAuthor Commented:
thx for your reply, but the thing is i can not figure it out which is my boot partition, /dev/pm-1 or /dev/sda1 or /dev/sab , any way i could find out ?
0
piaakitAuthor Commented:
i was trying to mont the /dev/dm-1 and umount it for xfs_repair, but it said it needs structure clean, can i use below command to clean the partition ?

fsck.ext4 /dev/dm-1 or e2fsck /dev/dm-1 ?



5
0
serialbandCommented:
What does fdisk -l show?
0
piaakitAuthor Commented:
It shows command not found
0
piaakitAuthor Commented:
I'm able to fix it by using xfs_repair -L /Dec/dm-1
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.