LVM2 over RAID5 Recovery Help Needed

Discussion in 'Installation/Configuration' started by denali206, May 13, 2009.

  1. denali206

    denali206 New Member

    So I've been trying to recover my LVM2 over RAID 5 off and on for about a year now, yeah tell me about it! It seems when I decided to upgrade my Ubuntu distro, I didn't think to backup, of course, I completely lost my LVM2/RAID 5. I've tried many processes and software to recover but nothing has proved worthy. I landed on this great tutorial http://www.linuxjournal.com/article/8874 in hopes of recovery only to be stopped dead in my tracks, as it seems I no longer have an md RAID device (dev/md0). I followed this tut diligently and stopped at Listing 3. for obvious reasons. To sum it up, I'm hoping I can receive some direction as to how I may be able to recover my data with my particular situation.

    The following is the output of the commands leading up to my dilemma as well as a few more that may help. Any help will be greatly appreciated. A huge thanks in advance!

    Listing 1. LVM Disk Configuration

    ubuntu@ubuntu:~$ sudo /sbin/sfdisk -l /dev/sdb

    Disk /dev/sdb: 30401 cylinders, 255 heads, 63 sectors/track
    Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

    Device Boot Start End #cyls #blocks Id System
    /dev/sdb1 0+ 30400 30401- 244196001 8e Linux LVM
    /dev/sdb2 0 - 0 0 0 Empty
    /dev/sdb3 0 - 0 0 0 Empty
    /dev/sdb4 0 - 0 0 0 Empty
    ubuntu@ubuntu:~$ sudo /sbin/pvscan
    PV /dev/sdb1 VG fileserver lvm2 [232.88 GB / 61.53 GB free]
    PV /dev/sdc1 VG fileserver lvm2 [232.88 GB / 172.88 GB free]
    PV /dev/sdd1 VG fileserver lvm2 [232.88 GB / 0 free]
    PV /dev/sde1 VG fileserver lvm2 [232.88 GB / 0 free]
    PV /dev/sdf1 VG fileserver lvm2 [232.88 GB / 0 free]
    Total: 5 [1.14 TB] / in use: 5 [1.14 TB] / in no VG: 0 [0 ]
    ubuntu@ubuntu:~$ sudo lvscan
    inactive '/dev/fileserver/share' [40.00 GB] inherit
    inactive '/dev/fileserver/backup' [60.00 GB] inherit
    inactive '/dev/fileserver/media' [830.00 GB] inherit

    Listing 2. RAID Disk Configuration

    ubuntu@ubuntu:~$ sudo /sbin/sfdisk -l /dev/sdb

    Disk /dev/sdb: 30401 cylinders, 255 heads, 63 sectors/track
    Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

    Device Boot Start End #cyls #blocks Id System
    /dev/sdb1 0+ 30400 30401- 244196001 8e Linux LVM
    /dev/sdb2 0 - 0 0 0 Empty
    /dev/sdb3 0 - 0 0 0 Empty
    /dev/sdb4 0 - 0 0 0 Empty
    ubuntu@ubuntu:~$ sudo /sbin/sfdisk -l /dev/sdc

    Disk /dev/sdc: 30401 cylinders, 255 heads, 63 sectors/track
    Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

    Device Boot Start End #cyls #blocks Id System
    /dev/sdc1 0+ 30400 30401- 244196001 8e Linux LVM
    /dev/sdc2 0 - 0 0 0 Empty
    /dev/sdc3 0 - 0 0 0 Empty
    /dev/sdc4 0 - 0 0 0 Empty
    ubuntu@ubuntu:~$ sudo /sbin/sfdisk -l /dev/sdd

    Disk /dev/sdd: 30401 cylinders, 255 heads, 63 sectors/track
    Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

    Device Boot Start End #cyls #blocks Id System
    /dev/sdd1 0+ 30400 30401- 244196001 8e Linux LVM
    /dev/sdd2 0 - 0 0 0 Empty
    /dev/sdd3 0 - 0 0 0 Empty
    /dev/sdd4 0 - 0 0 0 Empty
    ubuntu@ubuntu:~$ sudo /sbin/sfdisk -l /dev/sde

    Disk /dev/sde: 30401 cylinders, 255 heads, 63 sectors/track
    Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

    Device Boot Start End #cyls #blocks Id System
    /dev/sde1 0+ 30400 30401- 244196001 8e Linux LVM
    /dev/sde2 0 - 0 0 0 Empty
    /dev/sde3 0 - 0 0 0 Empty
    /dev/sde4 0 - 0 0 0 Empty
    ubuntu@ubuntu:~$ sudo /sbin/sfdisk -l /dev/sdf

    Disk /dev/sdf: 30401 cylinders, 255 heads, 63 sectors/track
    Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

    Device Boot Start End #cyls #blocks Id System
    /dev/sdf1 0+ 30400 30401- 244196001 8e Linux LVM
    /dev/sdf2 0 - 0 0 0 Empty
    /dev/sdf3 0 - 0 0 0 Empty
    /dev/sdf4 0 - 0 0 0 Empty
    ubuntu@ubuntu:~$ cat /proc/mdstat
    Personalities :
    unused devices:

    Listing 3. Scanning a disk for RAID array members

    ubuntu@ubuntu:~$ mdadm --examine --scan /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1
    ubuntu@ubuntu:~$

    ubuntu@ubuntu:~$ sudo mdadm -E /dev/sdb
    mdadm: No md superblock detected on /dev/sdb.

    ubuntu@ubuntu:~$ sudo blkid
    /dev/sdb1: UUID="Jppgxo-zjR2-IgZD-qD7T-800y-y46t-g0vyU8" TYPE="lvm2pv"
    /dev/sdc1: UUID="3eVlZN-PoI1-H8yB-aSGt-k3z2-LYwx-1bHu55" TYPE="lvm2pv"
    /dev/sdd1: UUID="cJEYms-03vV-agy8-JWWh-5kCH-Y61W-s9LFse" TYPE="lvm2pv"
    /dev/sde1: UUID="67i1d6-B6LC-YGdy-6Zcv-aBJq-K0UY-Op1PWB" TYPE="lvm2pv"
    /dev/sdf1: UUID="X6I6jt-A3R7-Qbcu-rzjk-aH4t-IRBw-mwcOux" TYPE="lvm2pv"

    ubuntu@ubuntu:~$ sudo pvdisplay
    --- Physical volume ---
    PV Name /dev/sdb1
    VG Name fileserver
    PV Size 232.88 GB / not usable 673.00 KB
    Allocatable yes
    PE Size (KByte) 4096
    Total PE 59618
    Free PE 15752
    Allocated PE 43866
    PV UUID Jppgxo-zjR2-IgZD-qD7T-800y-y46t-g0vyU8

    --- Physical volume ---
    PV Name /dev/sdc1
    VG Name fileserver
    PV Size 232.88 GB / not usable 673.00 KB
    Allocatable yes
    PE Size (KByte) 4096
    Total PE 59618
    Free PE 44258
    Allocated PE 15360
    PV UUID 3eVlZN-PoI1-H8yB-aSGt-k3z2-LYwx-1bHu55

    --- Physical volume ---
    PV Name /dev/sdd1
    VG Name fileserver
    PV Size 232.88 GB / not usable 673.00 KB
    Allocatable yes (but full)
    PE Size (KByte) 4096
    Total PE 59618
    Free PE 0
    Allocated PE 59618
    PV UUID cJEYms-03vV-agy8-JWWh-5kCH-Y61W-s9LFse

    --- Physical volume ---
    PV Name /dev/sde1
    VG Name fileserver
    PV Size 232.88 GB / not usable 673.00 KB
    Allocatable yes (but full)
    PE Size (KByte) 4096
    Total PE 59618
    Free PE 0
    Allocated PE 59618
    PV UUID 67i1d6-B6LC-YGdy-6Zcv-aBJq-K0UY-Op1PWB

    --- Physical volume ---
    PV Name /dev/sdf1
    VG Name fileserver
    PV Size 232.88 GB / not usable 673.00 KB
    Allocatable yes (but full)
    PE Size (KByte) 4096
    Total PE 59618
    Free PE 0
    Allocated PE 59618
    PV UUID X6I6jt-A3R7-Qbcu-rzjk-aH4t-IRBw-mwcOux

    ubuntu@ubuntu:~$ sudo vgdisplay
    --- Volume group ---
    VG Name fileserver
    System ID
    Format lvm2
    Metadata Areas 5
    Metadata Sequence No 4
    VG Access read/write
    VG Status resizable
    MAX LV 0
    Cur LV 3
    Open LV 0
    Max PV 0
    Cur PV 5
    Act PV 5
    VG Size 1.14 TB
    PE Size 4.00 MB
    Total PE 298090
    Alloc PE / Size 238080 / 930.00 GB
    Free PE / Size 60010 / 234.41 GB
    VG UUID kkDoou-3xxF-P1zZ-vAKX-3rlp-PZ2j-Rph3th

    ubuntu@ubuntu:~$ sudo lvdisplay
    --- Logical volume ---
    LV Name /dev/fileserver/share
    VG Name fileserver
    LV UUID aNKpVU-0TPC-vTvP-Cf4e-ZqNh-ILPY-ZgaTBF
    LV Write Access read/write
    LV Status NOT available
    LV Size 40.00 GB
    Current LE 10240
    Segments 1
    Allocation inherit
    Read ahead sectors auto

    --- Logical volume ---
    LV Name /dev/fileserver/backup
    VG Name fileserver
    LV UUID 18TTgL-TGz2-rxgP-MyT5-dVsD-mylO-is7VKv
    LV Write Access read/write
    LV Status NOT available
    LV Size 60.00 GB
    Current LE 15360
    Segments 1
    Allocation inherit
    Read ahead sectors auto

    --- Logical volume ---
    LV Name /dev/fileserver/media
    VG Name fileserver
    LV UUID VC4KPD-Z4O5-rSGM-P3LR-S1Xu-Ho1Y-9l1dO1
    LV Write Access read/write
    LV Status NOT available
    LV Size 830.00 GB
    Current LE 212480
    Segments 4
    Allocation inherit
    Read ahead sectors auto
     
  2. denali206

    denali206 New Member

    Can anyone help??
     
  3. raid.recover

    raid.recover New Member

    RAID 5 recovery remotely

    Have you tried turning to RAID Recovery Online?
    They have a lot of experience with RAID 5 recovery and they will perform a free remote diagnostic of your RAID. After a few hours, you will receive a list of recoverable files.
     
  4. Tommy Silver

    Tommy Silver New Member

    i would also suggest you to contact the website above ( www.raid-recovery-online.com ) . I tried using them some weeks ago and was preety happy with the result. You can ask for a free diagnostic and it is not obligating. you can just see what the problem is...
     

Share This Page