linux – 降级的RAID-5阵列,lvm2丢失了超级块和分区表

我在Ubuntu Linux 10.04 LTS上有一个4x1TB硬盘的RAID-5阵列和一个lvm2分区.其中一个磁盘发生故障.我已经重新组装了没有这个故障磁盘的阵列,但现在mdadm –examine声称该阵列没有超级块,fdisk说它没有分区表.我该怎么做才能恢复数据?
# mdadm -D /dev/md0
/dev/md0:
        Version : 1.2
  Creation Time : Sat Mar  5 14:43:49 2011
     Raid Level : raid5
     Array Size : 2930276352 (2794.53 GiB 3000.60 GB)
  Used Dev Size : 976758784 (931.51 GiB 1000.20 GB)
   Raid Devices : 4
  Total Devices : 4
    Persistence : Superblock is persistent

    Update Time : Sat Mar  5 15:06:49 2011
          State : clean,degraded
 Active Devices : 3
Working Devices : 3
 Failed Devices : 1
  Spare Devices : 0

         Layout : left-symmetric
     Chunk Size : 512K

           Name : boba:1  (local to host boba)
           UUID : 52eb4bc9:c3d8aab5:e0699505:e0e1aa05
         Events : 18

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       8       65        1      active sync   /dev/sde1
       2       8       49        2      active sync   /dev/sdd1
       3       0        0        3      removed

       4       8       17        -      faulty spare   /dev/sdb1


# mdadm --examine /dev/md0
mdadm: No md superblock detected on /dev/md0.

# fdisk -l /dev/md0

disk /dev/md0: 3000.6 GB,3000602984448 bytes
2 heads,4 sectors/track,732569088 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 524288 bytes / 1572864 bytes
disk identifier: 0x00000000

disk /dev/md0 doesn't contain a valid partition table

# cat /proc/mdstat 
Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10] 
md0 : active raid5 sdb1[4](F) sda1[0] sdd1[2] sde1[1]
      2930276352 blocks super 1.2 level 5,512k chunk,algorithm 2 [4/3] [UUU_]

unused devices: <none>

解决方法

这看起来像您的单用户模式.

您的volumegroup和logicalvolume是否在/ dev /中列出?

如果没有,则需要运行lvchange -ay来激活逻辑卷.

对于fsck,您应该使用/ dev / volgroup00 / logvol00作为目标.

相关文章

在Linux上编写运行C语言程序,经常会遇到程序崩溃、卡死等异...
git使用小结很多人可能和我一样,起初对git是一无所知的。我...
1. 操作系统环境、安装包准备 宿主机:Max OSX 10.10.5 虚拟...
因为业务系统需求,需要对web服务作nginx代理,在不断的尝试...
Linux模块机制浅析 Linux允许用户通过插入模块,实现干预内核...
一、Hadoop HA的Web页面访问 Hadoop开启HA后,会同时存在两个...