Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have one disk out of a system which used LVM on top of software RAID-1. I can't seem to mount the partition.

Here is the output of mdadm --examine

mdadm --examine /dev/sdd3
/dev/sdd3:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 796cb574:f1263d29:de01a688:bcce49e1
  Creation Time : Mon May  3 20:56:55 2010
     Raid Level : raid1
  Used Dev Size : 973828096 (928.71 GiB 997.20 GB)
     Array Size : 973828096 (928.71 GiB 997.20 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0

    Update Time : Sun Sep  5 14:42:20 2010
          State : active
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : 80fcf82e - correct
         Events : 0.29


      Number   Major   Minor   RaidDevice State
this     0       8        3        0      active sync   /dev/sda3

   0     0       8        3        0      active sync   /dev/sda3
   1     1       8       19        1      active sync   /dev/sdb3

How can I mount this and get the data off it?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

You should be able to get at this with 'mdadm --assemble /dev/md1 --run /dev/sdd3' the --run is required, as normally mdadm will abort if there are missing member disks. Then you can do vgscan and you should be able to mount the logical volumes.

share|improve this answer
    
That's great! Except now one of my LVM partitions won't mount because it says it's "unavailable". I guess I need to ask another question. –  Paul Tomblin Sep 9 '10 at 2:31

To make the VG available, you need to do the following:

vgchange --available -y vgname

Then you should be able to lvscan and mount accordingly.

share|improve this answer
    
After the vgscan, all but one of the lvs were available. –  Paul Tomblin Sep 9 '10 at 2:46
    
Oh wait, that does give me the answer - lvchange -a y lvname –  Paul Tomblin Sep 9 '10 at 2:48
    
why don't you answer serverfault.com/questions/179389/lvm-partition-not-available with this info. –  Paul Tomblin Sep 9 '10 at 2:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.