All of lore.kernel.org
 help / color / mirror / Atom feed
* Import data from an array coming from another computer
@ 2013-06-06 14:47 Nicolas Michel
  2013-06-06 14:54 ` Robin Hill
       [not found] ` <20130606145400.GA15336@sam-solutions.com>
  0 siblings, 2 replies; 6+ messages in thread
From: Nicolas Michel @ 2013-06-06 14:47 UTC (permalink / raw)
  To: linux-raid

Hello guys,

I need some help to recover some data that resides on a disk that was
part of an array in an Iomega device. I connected the disk with a
SATA->USB connector to my computer. An mdadm --examine give me theses
informations:

############################################################
# $ mdadm --examine /dev/sdc1
# /dev/sdc1:
#           Magic : a92b4efc
#         Version : 0.90.00
#            UUID : 76fc436c:be43bed5:f0f41dd6:3e9e1b96
#   Creation Time : Fri Jun  8 04:21:19 2012
#     Raid Level : raid1
#   Used Dev Size : 20980800 (20.01 GiB 21.48 GB)
#     Array Size : 20980800 (20.01 GiB 21.48 GB)
#   Raid Devices : 2
#   Total Devices : 2
#  Preferred Minor : 0
#
#    Update Time : Thu May 23 14:55:13 2013
#          State : clean
#  Active Devices : 1
#  Working Devices : 2
#  Failed Devices : 0
#   Spare Devices : 1
#        Checksum : b0ae04f1 - correct
#          Events : 28935
#
#
#       Number   Major   Minor   RaidDevice State
# this     2       8        1        2      spare   /dev/sda1
#
#    0     0       0        0        0      removed
#    1     1       8       17        1      active sync   /dev/sdb1
#    2     2       8        1        2      spare   /dev/sda1
############################################################

What I cannot achieve is to create a newly empty array and insert that
existing disk inside of it, so I can backup the data elsewhere.

I tried with mdadm --assemble /dev/sdc1 but it says:
    mdadm: device /dev/sdc1 exists but is not an md array.

I someone have an idea? It would be really really great :)

--
Nicolas MICHEL

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Import data from an array coming from another computer
  2013-06-06 14:47 Import data from an array coming from another computer Nicolas Michel
@ 2013-06-06 14:54 ` Robin Hill
       [not found] ` <20130606145400.GA15336@sam-solutions.com>
  1 sibling, 0 replies; 6+ messages in thread
From: Robin Hill @ 2013-06-06 14:54 UTC (permalink / raw)
  To: Nicolas Michel; +Cc: linux-raid

[-- Attachment #1: Type: text/plain, Size: 2157 bytes --]

On Thu Jun 06, 2013 at 04:47:33PM +0200, Nicolas Michel wrote:

> Hello guys,
> 
> I need some help to recover some data that resides on a disk that was
> part of an array in an Iomega device. I connected the disk with a
> SATA->USB connector to my computer. An mdadm --examine give me theses
> informations:
> 
> ############################################################
> # $ mdadm --examine /dev/sdc1
> # /dev/sdc1:
> #           Magic : a92b4efc
> #         Version : 0.90.00
> #            UUID : 76fc436c:be43bed5:f0f41dd6:3e9e1b96
> #   Creation Time : Fri Jun  8 04:21:19 2012
> #     Raid Level : raid1
> #   Used Dev Size : 20980800 (20.01 GiB 21.48 GB)
> #     Array Size : 20980800 (20.01 GiB 21.48 GB)
> #   Raid Devices : 2
> #   Total Devices : 2
> #  Preferred Minor : 0
> #
> #    Update Time : Thu May 23 14:55:13 2013
> #          State : clean
> #  Active Devices : 1
> #  Working Devices : 2
> #  Failed Devices : 0
> #   Spare Devices : 1
> #        Checksum : b0ae04f1 - correct
> #          Events : 28935
> #
> #
> #       Number   Major   Minor   RaidDevice State
> # this     2       8        1        2      spare   /dev/sda1
> #
> #    0     0       0        0        0      removed
> #    1     1       8       17        1      active sync   /dev/sdb1
> #    2     2       8        1        2      spare   /dev/sda1
> ############################################################
> 
> What I cannot achieve is to create a newly empty array and insert that
> existing disk inside of it, so I can backup the data elsewhere.
> 
> I tried with mdadm --assemble /dev/sdc1 but it says:
>     mdadm: device /dev/sdc1 exists but is not an md array.
> 
> I someone have an idea? It would be really really great :)
> 
You need to specify the array name with --assemble, not just the member
name. Try "mdadm --assemble /dev/md0 /dev/sdc1"

Cheers,
    Robin
-- 
     ___        
    ( ' }     |       Robin Hill        <robin@robinhill.me.uk> |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Import data from an array coming from another computer
       [not found] ` <20130606145400.GA15336@sam-solutions.com>
@ 2013-06-06 15:00   ` Nicolas Michel
  2013-06-06 15:13     ` Aleh Suprunovich
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Michel @ 2013-06-06 15:00 UTC (permalink / raw)
  To: Aleh Suprunovich, linux-raid

It is better but it still doesn't work:
$ mdadm --assemble /dev/md1 --run /dev/sdc1
mdadm: failed to RUN_ARRAY /dev/md1: Input/output error
mdadm: Not enough devices to start the array.


2013/6/6 Aleh Suprunovich <a.suprunovich@sam-solutions.com>:
> On Thu, Jun 06, 2013 at 05:47:33PM +0300, Nicolas Michel wrote:
>> Hello guys,
>>
>> I need some help to recover some data that resides on a disk that was
>> part of an array in an Iomega device. I connected the disk with a
>> SATA->USB connector to my computer. An mdadm --examine give me theses
>> informations:
>>
>> What I cannot achieve is to create a newly empty array and insert that
>> existing disk inside of it, so I can backup the data elsewhere.
>>
>> I tried with mdadm --assemble /dev/sdc1 but it says:
>>     mdadm: device /dev/sdc1 exists but is not an md array.
>>
>> I someone have an idea? It would be really really great :)
>>
>
> You need to run something like 'mdadm --assemble /dev/md127 --run /dev/sdc1'
> where md127 is a name of md device not used in your system.



-- 
Nicolas MICHEL

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Import data from an array coming from another computer
  2013-06-06 15:00   ` Nicolas Michel
@ 2013-06-06 15:13     ` Aleh Suprunovich
  2013-06-06 15:28       ` Nicolas Michel
  0 siblings, 1 reply; 6+ messages in thread
From: Aleh Suprunovich @ 2013-06-06 15:13 UTC (permalink / raw)
  To: Nicolas Michel; +Cc: linux-raid

On Thu, Jun 06, 2013 at 06:00:44PM +0300, Nicolas Michel wrote:
> It is better but it still doesn't work:
> $ mdadm --assemble /dev/md1 --run /dev/sdc1
> mdadm: failed to RUN_ARRAY /dev/md1: Input/output error
> mdadm: Not enough devices to start the array.
> 

One device should be enough to start RAID1 array. But here is something I missed
in your first message:

On Thu, Jun 06, 2013 at 05:47:33PM +0300, Nicolas Michel wrote:
> ############################################################
> # $ mdadm --examine /dev/sdc1
> # /dev/sdc1:
> #           Magic : a92b4efc
> #         Version : 0.90.00
> #            UUID : 76fc436c:be43bed5:f0f41dd6:3e9e1b96
> #   Creation Time : Fri Jun  8 04:21:19 2012
> #     Raid Level : raid1
> #   Used Dev Size : 20980800 (20.01 GiB 21.48 GB)
> #     Array Size : 20980800 (20.01 GiB 21.48 GB)
> #   Raid Devices : 2
> #   Total Devices : 2
> #  Preferred Minor : 0
> #
> #    Update Time : Thu May 23 14:55:13 2013
> #          State : clean
> #  Active Devices : 1
> #  Working Devices : 2
> #  Failed Devices : 0
> #   Spare Devices : 1
> #        Checksum : b0ae04f1 - correct
> #          Events : 28935
> #
> #
> #       Number   Major   Minor   RaidDevice State
> # this     2       8        1        2      spare   /dev/sda1
> #
> #    0     0       0        0        0      removed
> #    1     1       8       17        1      active sync   /dev/sdb1
> #    2     2       8        1        2      spare   /dev/sda1
> ############################################################

Line starting from 'this' indicate that device you have was spare component of
array, so no information restore is possible with this disk. Do you have acess
to other drive, named /dev/sdb1 in your mdadm --examine output?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Import data from an array coming from another computer
  2013-06-06 15:13     ` Aleh Suprunovich
@ 2013-06-06 15:28       ` Nicolas Michel
  2013-06-07 11:27         ` Sam Bingner
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Michel @ 2013-06-06 15:28 UTC (permalink / raw)
  To: Aleh Suprunovich; +Cc: linux-raid

I didn't saw it. It is a possibility that the disk was configured as
spare in the IOMEGA device. The second disque have its GPT table
corrupt.

So it would mean that the data are lost since the first disk is
corrupted and the second, as a spare device, have no data on it.

(I'm not the one that configured in first place the IOMEGA device. The
guys that are using it came to me to see if I can recover their data)

2013/6/6 Aleh Suprunovich <a.suprunovich@sam-solutions.com>:
> On Thu, Jun 06, 2013 at 06:00:44PM +0300, Nicolas Michel wrote:
>> It is better but it still doesn't work:
>> $ mdadm --assemble /dev/md1 --run /dev/sdc1
>> mdadm: failed to RUN_ARRAY /dev/md1: Input/output error
>> mdadm: Not enough devices to start the array.
>>
>
> One device should be enough to start RAID1 array. But here is something I missed
> in your first message:
>
> On Thu, Jun 06, 2013 at 05:47:33PM +0300, Nicolas Michel wrote:
>> ############################################################
>> # $ mdadm --examine /dev/sdc1
>> # /dev/sdc1:
>> #           Magic : a92b4efc
>> #         Version : 0.90.00
>> #            UUID : 76fc436c:be43bed5:f0f41dd6:3e9e1b96
>> #   Creation Time : Fri Jun  8 04:21:19 2012
>> #     Raid Level : raid1
>> #   Used Dev Size : 20980800 (20.01 GiB 21.48 GB)
>> #     Array Size : 20980800 (20.01 GiB 21.48 GB)
>> #   Raid Devices : 2
>> #   Total Devices : 2
>> #  Preferred Minor : 0
>> #
>> #    Update Time : Thu May 23 14:55:13 2013
>> #          State : clean
>> #  Active Devices : 1
>> #  Working Devices : 2
>> #  Failed Devices : 0
>> #   Spare Devices : 1
>> #        Checksum : b0ae04f1 - correct
>> #          Events : 28935
>> #
>> #
>> #       Number   Major   Minor   RaidDevice State
>> # this     2       8        1        2      spare   /dev/sda1
>> #
>> #    0     0       0        0        0      removed
>> #    1     1       8       17        1      active sync   /dev/sdb1
>> #    2     2       8        1        2      spare   /dev/sda1
>> ############################################################
>
> Line starting from 'this' indicate that device you have was spare component of
> array, so no information restore is possible with this disk. Do you have acess
> to other drive, named /dev/sdb1 in your mdadm --examine output?



-- 
Nicolas MICHEL

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Import data from an array coming from another computer
  2013-06-06 15:28       ` Nicolas Michel
@ 2013-06-07 11:27         ` Sam Bingner
  0 siblings, 0 replies; 6+ messages in thread
From: Sam Bingner @ 2013-06-07 11:27 UTC (permalink / raw)
  To: Nicolas Michel; +Cc: Aleh Suprunovich, linux-raid

On Jun 6, 2013, at 5:28 AM, Nicolas Michel <be.nicolas.michel@gmail.com> wrote:

> 2013/6/6 Aleh Suprunovich <a.suprunovich@sam-solutions.com>:
>> On Thu, Jun 06, 2013 at 06:00:44PM +0300, Nicolas Michel wrote:
>>> It is better but it still doesn't work:
>>> $ mdadm --assemble /dev/md1 --run /dev/sdc1
>>> mdadm: failed to RUN_ARRAY /dev/md1: Input/output error
>>> mdadm: Not enough devices to start the array.
>>> 
>> 
>> One device should be enough to start RAID1 array. But here is something I missed
>> in your first message:
>> 
>> On Thu, Jun 06, 2013 at 05:47:33PM +0300, Nicolas Michel wrote:
>>> ############################################################
>>> # $ mdadm --examine /dev/sdc1
>>> # /dev/sdc1:
>>> #           Magic : a92b4efc
>>> #         Version : 0.90.00
>>> #            UUID : 76fc436c:be43bed5:f0f41dd6:3e9e1b96
>>> #   Creation Time : Fri Jun  8 04:21:19 2012
>>> #     Raid Level : raid1
>>> #   Used Dev Size : 20980800 (20.01 GiB 21.48 GB)
>>> #     Array Size : 20980800 (20.01 GiB 21.48 GB)
>>> #   Raid Devices : 2
>>> #   Total Devices : 2
>>> #  Preferred Minor : 0
>>> #
>>> #    Update Time : Thu May 23 14:55:13 2013
>>> #          State : clean
>>> #  Active Devices : 1
>>> #  Working Devices : 2
>>> #  Failed Devices : 0
>>> #   Spare Devices : 1
>>> #        Checksum : b0ae04f1 - correct
>>> #          Events : 28935
>>> #
>>> #
>>> #       Number   Major   Minor   RaidDevice State
>>> # this     2       8        1        2      spare   /dev/sda1
>>> #
>>> #    0     0       0        0        0      removed
>>> #    1     1       8       17        1      active sync   /dev/sdb1
>>> #    2     2       8        1        2      spare   /dev/sda1
>>> ############################################################
>> 
>> Line starting from 'this' indicate that device you have was spare component of
>> array, so no information restore is possible with this disk. Do you have acess
>> to other drive, named /dev/sdb1 in your mdadm --examine output?
> 
> I didn't saw it. It is a possibility that the disk was configured as
> spare in the IOMEGA device. The second disque have its GPT table
> corrupt.
> 
> So it would mean that the data are lost since the first disk is
> corrupted and the second, as a spare device, have no data on it.
> 
> (I'm not the one that configured in first place the IOMEGA device. The
> guys that are using it came to me to see if I can recover their data)
> 
> 

With a RAID1 and 0.90 metadata you would be able to just use that disk directly without even assembling the array for recovery purposes.  If you don't see the data on it (as you probably won't since it is a spare) it's useless, but if you find an actual member disk this information may be useful for you.

Sam



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-06-07 11:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-06 14:47 Import data from an array coming from another computer Nicolas Michel
2013-06-06 14:54 ` Robin Hill
     [not found] ` <20130606145400.GA15336@sam-solutions.com>
2013-06-06 15:00   ` Nicolas Michel
2013-06-06 15:13     ` Aleh Suprunovich
2013-06-06 15:28       ` Nicolas Michel
2013-06-07 11:27         ` Sam Bingner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.