1

I have a disk that I took out of a failed system. One of the partitions on the disk was one half of a software RAID-1, and that RAID-1 was a lvm2 volume group. There are several logical volumes on that volume group. Thanks to this answer I got the RAID-1 mounted and the volume group seen and recognized. I can mount most of the partitions and back them up, but one of them (of course the one I care about the most) won't mount. The system crashed while I had a snapshot partition snapshotting this partition for a backup, but I've now removed that snapshot. lvdisplay reports:

lvdisplay -v /dev/xen-disk/xen1-disk
    Using logical volume(s) on command line
  --- Logical volume ---
  LV Name                /dev/xen-disk/xen1-disk
  VG Name                xen-disk
  LV UUID                li3NC9-jRwg-ndbM-oplJ-1Omd-PcX9-qv9aB2
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                150.00 GB
  Current LE             38400
  Segments               1
  Allocation             inherit
  Read ahead sectors     0

How do I repair whatever is making this unavailable and get it mounted?

1 Answer 1

3

Do you get any luck with:

lvchange -a y /dev/xen-disk/xen1-disk

?

2
  • how do avoid having to run this every reboot?
    – Jayen
    Mar 3, 2014 at 10:00
  • Rebuild you initial ramdisk. That handles LVM activation on boot.
    – Spooler
    Sep 25, 2016 at 4:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .