The problem: Logical volume group on my main drive appears to have disappeared, /boot is a primary partition with everything else inside the LVM (Discovered from googling this problem and where I’m at now because of it that setting things up this way probably wasn’t such a bright idea)
Circumstances:
Noticed mails had stopped working, on trying to restart dovecot & postfix systemctl just kept freezing, cut a long story short I ended up trying a reboot, system wouldn’t boot back up and on investigating why came across an ata.1 error which I’d seen before and knew it be the sata controller the drive is plugged into failing
Not wanting to just plug into another controller and put my trust in a board that’s just started showing signs that it might be dying I decided to plug into a spare machine I had here with no hdd, use a live OS disk to make some necessary edits, stuff like fstab, menu.lst etc then try booting off the drive in the ‘new’ machine
Got a grub error about being unable to find the root partition, booted back into the live cd and being pretty sure I’d made my grub edits correctly I decided to have a look at the drive layout in Yast’s Partition Manager, everything seemed to be right and the group and it’s volumes were there plain as day so I tried another reboot, got the same thing again, took the drive out and put it in a running machine for another look
This is where the volume group had disappeared, nowhere to be found in yast’s partitioner or kde’s partitioner, ran lvdisplay and lvmdiskscan, both report no volume groups found
Some web searching suggests it’s quite a common issue after resizing logical volumes (which hasn’t been done in this case) and people have successfully restored the group using the group’s metadata files in /etc/lvm but of course in this case the /etc/lvm directory is inside the group I can’t access (boy am I kicking myself now!)
The timing of this happening couldn’t have been worse, it happened whilst I was in the act of installing a new drive in the machine I usually have the backups stored on which to cut a really long story short meant it happened exactly at a time I was without backups of some really important files, a gazillion to one chance but it happened to me
Any suggestions on whether there’s anything I can try to get the group back up so I can get at the files? Or even something I can use to recover the files if I can’t restore access to the group itself?