zoukankan      html  css  js  c++  java
  • Linux 下XFS 文件系统修复指导书

    参考: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.
    
  • 相关阅读:
    Redis 之 数据持久化、主从复制、哨兵、集群
    Linux 之 MySQL(mariadb) 主从复制
    python 面试题
    Linux 之 nginx相关
    Linux 之redis 的安装及使用
    Linux 之 安装虚拟环境virtualenvwrapper
    Vue使用Element-ui走马灯功能动态改变图片和容器大小
    文本信息抽取的方法
    python3 将文本用utf-8编码方式写入txt文件
    一个比celery更简单的python异步模块rq
  • 原文地址:https://www.cnblogs.com/fan-gx/p/13190323.html
Copyright © 2011-2022 走看看