码迷,mamicode.com
首页 > 系统相关 > 详细

Linux 下XFS 文件系统修复指导书

时间:2020-06-24 23:28:00      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:博客   modified   linu   htm   really   lvm   e2fs   系统修复   alt   

参考:Linux 下XFS 文件系统修复指导书
Centos 7 LVM xfs文件系统修复
ls -l /dev/mapper
xfs_repair /dev/mapper/centos-root
xfs_repair -L /dev/mapper/centos-root
init 6 #重启

fsck from util-linux 2.23.2
e2fsck 1.42.9 (28-Dec-2013)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sdb

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

参考大神博客:恢复xfs文件系统superblock实验

phase l - find and verify superblock
bad primary superblock - bad magic number
attempting to find secondary superblock
................................................................................................................................................................................................................................................................................................................................................found candidate secondary superblock...
verified secondary superblock...
writing modified primary superblock
sb realtime bitmap inode 18446744073709551615 (NULLFSINO) inconsistent with calculated value 97
resetting superblock realtime bitmap ino pointer to 97
sb realtime summary inode 18446744073709551615 (NULLFSINO) inconsistent with calculated value 98
resetting superblock realtime summary ino pointer to 98
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.

Linux 下XFS 文件系统修复指导书

标签:博客   modified   linu   htm   really   lvm   e2fs   系统修复   alt   

原文地址:https://www.cnblogs.com/fan-gx/p/13190323.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!