Linux XFS filesystem development
 help / color / mirror / Atom feed
From: Nickolay Novikov <nnovikov@binmail.ru>
To: linux-xfs@vger.kernel.org
Subject: Re: Metadata corruption
Date: Wed, 27 Dec 2017 11:42:00 +0300	[thread overview]
Message-ID: <dbe73b16-d17d-47bb-5122-74aab1636963@binmail.ru> (raw)
In-Reply-To: <da1613f0-9dc3-1605-317d-f162ff92d97a@sandeen.net>

|I have xfs_repair output from another host with similar problem: # 
xfs_repair /dev/md20 Phase 1 - find and verify superblock... Phase 2 - 
using internal log - zero log... ERROR: The filesystem has valuable 
metadata changes in a log which needs to be replayed. Mount the 
filesystem to replay the log, and unmount it before re-running 
xfs_repair. If you are unable to mount the filesystem, then use the -L 
option to destroy the log and attempt a repair. Note that destroying the 
log may cause corruption -- please attempt a mount of the filesystem 
before doing this. # mount /dev/md20 # umount /dev/md20 # xfs_repair 
/dev/md20 Phase 1 - find and verify superblock... Phase 2 - using 
internal log - zero log... - scan filesystem freespace and inode maps... 
- found root inode chunk Phase 3 - for each AG... - scan and clear agi 
unlinked lists... - process known inodes and perform inode discovery... 
- agno = 0 - agno = 1 - agno = 2 - agno = 3 - agno = 4 - agno = 5 - agno 
= 6 - agno = 7 - process newly discovered inodes... Phase 4 - check for 
duplicate blocks... - setting up duplicate extent list... - check for 
inodes claiming duplicate blocks... - agno = 0 - agno = 1 - agno = 2 - 
agno = 3 - agno = 4 - agno = 5 - agno = 6 - agno = 7 Phase 5 - rebuild 
AG headers and trees... - reset superblock... Phase 6 - check inode 
connectivity... - resetting contents of realtime bitmap and summary 
inodes - traversing filesystem ... - traversal finished ... - moving 
disconnected inodes to lost+found ... Phase 7 - verify and correct link 
counts... done |


On 26.12.2017 22:34, Eric Sandeen wrote:
>
> On 12/25/17 3:33 AM, Nickolay Novikov wrote:
>> Hello!
>>
>> I have some servers with XFS metadata corruption. XFS works on softRAID devices (/dev/mdXX, RAID1, HDD). I try to find same errors in google, but search yielded no results :(
>>
>> What I can do for investigate this error?
> You have an inode block with corruption.  It's tough to say how
> it may have occurred, especially without knowing the nature
> of the corruption.
>
> You could use xfs_db to examine it, based on the xfs_inode
> block mentioned in the dmesg.
>
> To preserve the metadata for later analysis, you could first
> create an xfs_metadump image of the filesystem.
>
> Or,
>
>> Dec 25 11:39:15 srv701 kernel: [287080.544365] XFS (md25): Unmount and run xfs_repair
> and save the output, to see what is found.  You could run it
> with "-n" in a dry-run mode so that you don't commit to any
> changes.  You may need to mount/unmount it to replay the journal
> first.
>
> -Eric
>
>> Big thanks for any help.
>>
>>
>> Server info:
>>
>> Debian GNU/Linux 8.9 (jessie)
>> ii  linux-image-4.9.0-0.bpo.4-amd64 4.9.51-1~bpo8+1                  amd64        Linux 4.9 for 64-bit PCs
>>
>> Kernel log:
>>
>> Dec 25 11:39:15 srv701 kernel: [287080.542782] XFS (md25): Metadata corruption detected at xfs_inode_buf_verify+0x68/0xe0 [xfs], xfs_inode block 0x2ebd50
>> Dec 25 11:39:15 srv701 kernel: [287080.544365] XFS (md25): Unmount and run xfs_repair
>> Dec 25 11:39:15 srv701 kernel: [287080.545909] XFS (md25): First 64 bytes of corrupted metadata buffer:
>> Dec 25 11:39:15 srv701 kernel: [287080.547406] ffff8bae1cf22000: 2a 2e 19 d8 64 9f 0c 9c 01 b0 22 9e 8f ab dc 48  *...d....."....H
>> Dec 25 11:39:15 srv701 kernel: [287080.548962] ffff8bae1cf22010: 80 c9 d1 7a 84 6e c4 e1 75 c0 d8 fb 44 98 aa 6a  ...z.n..u...D..j
>> Dec 25 11:39:15 srv701 kernel: [287080.550554] ffff8bae1cf22020: 49 da 06 8a 74 56 ba 8a 7e ac 92 29 b8 6f 6e ce  I...tV..~..).on.
>> Dec 25 11:39:15 srv701 kernel: [287080.552069] ffff8bae1cf22030: a6 91 43 61 a1 88 81 b0 00 e0 6d 9d a8 bd 02 e6  ..Ca......m.....
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


  reply	other threads:[~2017-12-27  8:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-25 11:33 Metadata corruption Nickolay Novikov
2017-12-26 19:34 ` Eric Sandeen
2017-12-27  8:42   ` Nickolay Novikov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-06-13  6:27 Martin Aleksov
2016-06-13  6:41 ` Martin Aleksov
2016-06-13  6:45   ` Stefan Ring
2016-06-13 11:27 ` Brian Foster
2016-06-13 15:49   ` Eric Sandeen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dbe73b16-d17d-47bb-5122-74aab1636963@binmail.ru \
    --to=nnovikov@binmail.ru \
    --cc=linux-xfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox