You are not logged in.

#1 2011-10-23 16:56:49

Chocobo
Member
Registered: 2006-09-26
Posts: 26

Disk recovery of a drive with md, and lvm.

Hi All,

I am scavenging some hard drives that may or may not contain contain some important information on them.   When I set them up I believe I used both LVM and RAID.   Right now I only have on of the drives and would like to find a way to mount one of the partitions to recover any important data.   I have run into some problems:

[root@bowline ~]# cat /proc/mdstat 
Personalities : 
md0 : inactive sdc1[0](S)
      1950842 blocks super 1.2
       
md1 : inactive sdc2[0](S)
      9766496 blocks super 1.2
       
unused devices: <none>
[root@bowline ~]# blkid /dev/sdc*
/dev/sdc1: UUID="2bb12613-374c-c2b7-428b-371211fc3468" UUID_SUB="e7dfec90-166a-1095-4a35-5e7cdf37a06f" LABEL="archiso:0" TYPE="linux_raid_member" 
/dev/sdc2: UUID="dd429aa4-3618-7ed0-b0d3-3924628b9ad4" UUID_SUB="2ca5fb2e-3ec2-73be-26d0-8594001c8ffe" LABEL="archiso:1" TYPE="linux_raid_member" 
/dev/sdc3: UUID="745ae673-d19c-47a5-99cf-8b46792ea1ed" TYPE="ext2" 
/dev/sdc4: UUID="04c508e3-790b-4620-91a0-0cd6753fda38" TYPE="ext4"
[root@bowline ~]# mdadm --assemble --scan --run
[root@bowline ~]# cat /proc/mdstat 
Personalities : 
md0 : inactive sdc1[0](S)
      1950842 blocks super 1.2
       
md1 : inactive sdc2[0](S)
      9766496 blocks super 1.2
       
unused devices: <none>
[root@bowline ~]# mdadm --assemble --scan --run
[root@bowline ~]# mdadm --examine --scan > /etc/mdadm.conf 
[root@bowline ~]# cat /etc/mdadm.conf 
ARRAY /dev/md/0 metadata=1.2 UUID=2bb12613:374cc2b7:428b3712:11fc3468 name=archiso:0
ARRAY /dev/md/1 metadata=1.2 UUID=dd429aa4:36187ed0:b0d33924:628b9ad4 name=archiso:1
[root@bowline ~]# mdadm --assemble --scan --run
[root@bowline ~]# cat /proc/mdstat 
Personalities : 
md0 : inactive sdc1[0](S)
      1950842 blocks super 1.2
       
md1 : inactive sdc2[0](S)
      9766496 blocks super 1.2
       
unused devices: <none>
[root@bowline ~]# ls -l /dev/md/*
lrwxrwxrwx 1 root root 8 Oct 23 12:32 /dev/md/0 -> /dev/md0
lrwxrwxrwx 1 root root 8 Oct 23 12:32 /dev/md/1 -> /dev/md1

I have no idea how to activate the md devices....  I have read through tons of tutorials and howtos online.  Nothing seems to be working.

Does anyone have any ideas?

Offline

#2 2011-10-23 21:51:46

laloch
Member
Registered: 2010-02-04
Posts: 186

Re: Disk recovery of a drive with md, and lvm.

Hi,

the "(S)" following a raid member means it's a spare. You cannot activate an array containing only spares. You actually don't have any data, sorry.

Offline

#3 2011-10-24 00:11:29

Chocobo
Member
Registered: 2006-09-26
Posts: 26

Re: Disk recovery of a drive with md, and lvm.

I have another drive that does not list (S) in /proc/mdstat and it behaves exactly the same way.  I can post a log tomorrow.   Any ideas of things I should try on that drive?

Offline

Board footer

Powered by FluxBB