LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-23-2014, 01:17 PM   #1
Scourgeza
LQ Newbie
 
Registered: Jun 2014
Posts: 1

Rep: Reputation: Disabled
Data Recovery from one RAID 1 disk


Hello, Im pretty new to using ubuntu for data recovery.

Im having some difficulty retreiving the data of an old NAS Drive (Seagate NAS)

It was a RAID 1, but I only have the one drive that i can use.

I'm hoping one of the gurus can tell me where I'm going wrong. Some info:

Code:
ubuntu@ubuntu:~$ sudo mdadm --examine /dev/sda10
/dev/sda10:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 4d34737b:db9675bf:bc81347b:25f0e721
           Name : BA-387DE4:8
  Creation Time : Wed Feb 19 15:28:32 2014
     Raid Level : raid1
   Raid Devices : 2

 Avail Dev Size : 3898521911 (1858.96 GiB 1996.04 GB)
     Array Size : 1949260819 (1858.96 GiB 1996.04 GB)
  Used Dev Size : 3898521638 (1858.96 GiB 1996.04 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : clean
    Device UUID : 294f3c5c:d3f5e22c:c42ff68f:2cf333a0

    Update Time : Mon Jun 23 08:09:17 2014
       Checksum : 2a8ecff0 - correct
         Events : 20


   Device Role : Active device 0
   Array State : AA ('A' == active, '.' == missing)
Code:
ubuntu@ubuntu:~$ sudo mdadm --detail /dev/md8
/dev/md8:
        Version : 1.2
  Creation Time : Wed Feb 19 15:28:32 2014
     Raid Level : raid1
     Array Size : 1949260819 (1858.96 GiB 1996.04 GB)
  Used Dev Size : 1949260819 (1858.96 GiB 1996.04 GB)
   Raid Devices : 2
  Total Devices : 1
    Persistence : Superblock is persistent

    Update Time : Mon Jun 23 08:09:17 2014
          State : clean, degraded 
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0

           Name : BA-387DE4:8
           UUID : 4d34737b:db9675bf:bc81347b:25f0e721
         Events : 20

    Number   Major   Minor   RaidDevice State
       0       8       10        0      active sync   /dev/sda10
       1       0        0        1      removed
Code:
ubuntu@ubuntu:~$ sudo mount /dev/md0 /mnt/recover
mount: unknown filesystem type 'LVM2_member'
ubuntu@ubuntu:~$ sudo vgs
  VG   #PV #LV #SN Attr   VSize VFree
  vg8    1   1   0 wz--n- 1.82t    0 
ubuntu@ubuntu:~$ sudo vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "vg8" using metadata type lvm2
ubuntu@ubuntu:~$ sudo lvs
  LV   VG   Attr      LSize Pool Origin Data%  Move Log Copy%  Convert
  lv8  vg8  -wi------ 1.82t                                           
ubuntu@ubuntu:~$ sudo modprobe dm-mod
ubuntu@ubuntu:~$ sudo vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "vg8" using metadata type lvm2
ubuntu@ubuntu:~$ sudo vgchange -ay vg8
  1 logical volume(s) in volume group "vg8" now active
ubuntu@ubuntu:~$ sudo mount /dev/vg8/lv8 /mnt/recover
mount: wrong fs type, bad option, bad superblock on /dev/mapper/vg8-lv8,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
When trying to mount it just doesn't. And Provides me with this error:
Code:
Error mounting /dev/dm-0 at /media/ubuntu/fd3b4e18-cabc-4307-98e5-7a922cfe22b6: Command-line `mount -t "ext4" -o "uhelper=udisks2,nodev,nosuid" "/dev/dm-0" "/media/ubuntu/fd3b4e18-cabc-4307-98e5-7a922cfe22b6"' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/mapper/vg8-lv8,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Im Hoping I can just salvage the data, and then i can use the drive in a new RAID.

Any suggestions?
Just an update, tried a superblock backup:
Code:
ubuntu@ubuntu:~$ sudo mke2fs -n /dev/sda10
mke2fs 1.42.9 (4-Feb-2014)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
121831424 inodes, 487315494 blocks
24365774 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
14872 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
	102400000, 214990848

ubuntu@ubuntu:~$ sudo e2fsck -f -b 32768 /dev/sda10
e2fsck 1.42.9 (4-Feb-2014)
e2fsck: Bad magic number in super-block while trying to open /dev/sda10

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
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>
 or
    e2fsck -b 32768 <device>
Testdisk:

Code:
TestDisk 6.14, Data Recovery Utility, July 2013
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/sda - 2000 GB / 1863 GiB - CHS 243201 255 63
     Partition               Start        End    Size in sectors
 P Linux Raid                  2048    1953775    1951728 [(none):0]
 P Linux Raid               1953792    3905519    1951728 [(none):1]
 P Linux Raid               3905536    3925999      20464 [(none):2]
 P Linux Raid               3926016    5879791    1953776 [(none):3]
 P Linux Raid               5879808    5900271      20464 [(none):4]
 P Linux Raid               5900288    5922799      22512 [(none):5]
 P Linux Raid               5922816    6504431     581616 [(none):6]
 P Linux Raid               6504448    8503279    1998832 [(none):7]
>P Linux Raid               8503296 3907024941 3898521646 [BA-387DE4:8]



Structure: Ok.  Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
                P=Primary  D=Deleted
Keys A: add partition, L: load backup, T: change type,
     Enter: to continue
md 1.x L.Endian Raid 1 - Array Slot : 0 (0, 1), 1996 GB / 1858 GiB
Obviously i would like to recover the last Partition

Last edited by onebuck; 06-23-2014 at 04:28 PM. Reason: combined posts into one & bump
 
Old 06-24-2014, 01:38 PM   #2
S.Haran
LQ Newbie
 
Registered: Jun 2014
Location: Boston USA
Posts: 15

Rep: Reputation: Disabled
A while ago I worked on a remote data recovery job for a client who also had a Seagate NAS and I observed similar behavior to what you are reporting.

Lets see if we can find your filesystem on lv8. Please run and post the output of... dumpe2fs -h /dev/vg8/lv8

If successful it should produce about 50 lines of filesystem info.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux rescue disk for data recovery of data on windows laptop with corrupt os Jonjo-k Linux - Newbie 10 01-04-2014 07:00 PM
Broken raid 5 (11 drives in mdadm) -- data recovery/raid reconstruction needed -- ple jml48197 Linux - Server 4 07-27-2010 01:57 PM
RAID 10 data recovery ananta.c Linux - Software 2 10-21-2009 05:04 AM
[SOLVED] Hardware RAID vs Software RAID and DATA RECOVERY bskrakes Linux - General 7 07-04-2008 02:09 PM
LXer: Linux Data Recovery on Windows - Is possible through Disk Doctors Linux Recovery Software LXer Syndicated Linux News 0 10-22-2006 01:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration