LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   need help to rescue LVM (https://www.linuxquestions.org/questions/linux-software-2/need-help-to-rescue-lvm-730668/)

rietsit 06-04-2009 10:35 AM

need help to rescue LVM
 
Hi,

I need help rescuing my drives.

using Fedora 10,
have 2 identical 80GB drives:
hda-fedora 10 dual boot with XP (I think sda5 is the partition with FC10)
hdb-just for backups 2 partitions NTFS and Linux, (I was trying to format sdb3)


Code:

fdisk –l

dev/sda1                dell utility
dev/sda2  * boot      HPFS/NTFS
dev/sda3                Linux
dev/sda4                Extended
dev/sda5                Linux LVM

dev/sdb1                dell utility
dev/sdb2  * boot        HPFS/NTFS
dev/sdb3                linux

Code:

lvm pvscan

 Could not find device with uuid…….mMolf
 Could not find device with uuid…….mMolf
 PV /dev/sda5 VG VolGroup00 lvm2 57GB/0 free
 PV unknown device VG VolGroup00 lvm2 62GB/62Gb free
 Total 2 [119GB/in use=2 [119 GB]/in no VG 0[0]

Code:

lvm vgscan
 
 Reading all physical volumes
 Could not find device with uuid…….
 Could not read all physical volemes for volume group Volgroup00
 VolGroup00 not found

Code:

lvm lvscan

 Could not find device with uuid…….mMolf
 could not find all physical volumes for volume group VolGroup00
 Could not find device with uuid…….mMolf
 could not find all physical volumes for volume group VolGroup00

thanks

eco 06-04-2009 11:06 AM

You need to give us a bit more to work on. What changes did you do that lead to this situation?

Do you have any logs? Don't you have LVM backup files of your LVM structure?

What about data backups?

rietsit 06-04-2009 11:48 AM

thanks eco.

actually I was trying to create a backup when this happened. I have data backups from few months ago when I upgraded to FC10
I have 2x80GB hardrives:
-hdA is dual boot XP/Fedora 10 (I think sda5 is Fedora and all my stuff)
-hdB is just for backups NTFS/linux (I was trying to format sdb3 to ext4)

2 days ago, I was trying to format one of the partitions on hdB. I was using Gparted and I formatted it to EXT4.

I minimized Gparted and was working on the PC for a while, and then I wanted to shutdown the PC and I saw a confirmation from Gparted that all actions were successfull (I assume it was the format of the B drive linux partition hdb3, then I just shut down the PC, without checking anything.
yesterday morning I turn on and cannot boot,
-tried booting old kernel from grub, no luck.
-tried Fedora 10 DVD -recovery said "no linux partitions"
-disabled B drive in BIOS and tried everything again, noluck

This is the boot error from FC10:
Code:

VolGroup00 not found
Unable to access resume device (dev/Volgroup00/lgVol01)
Mount: could not find filesystem /dev/root
Reading all physical volumes
Could not find device with uuid…….
VolGroup00 not found

Then I tried Fedora 10 DVD –rescue installed system

I got error:
Code:

You don’t have any linux partitions, press return to get a shell.
let me know where can I find the logs. i am pretty familiar with fedora but I am not guru.

I really appreciate your time and effort.

eco 06-05-2009 01:12 AM

Hi and sorry for the delay in answering,

I'd start by booting on a liveCD and have a look where your ext4 really is. Then you might do a chroot into your system to try and fix it.

It might have changed your uuid when you formated (I'm honestly not sure when the uuid changes... anyone?).

Take note of the uuid it expects and have a look in /dev/disk/by-uuid what uuid you have now. All you might have to do is change the uuid lvm expects to the current one... but if you formated the partition with LVM there is not much hope of recovery.

All the best.

rietsit 06-05-2009 10:13 AM

Hi eco,

meanwhile I got Gparted live cd and booted up, but it does not support LVM yet, and then I booted a

then I tried Linux mint 7 and that let me see all the logical drives but the one I want to see. by the way , the sdb3 ext4 looks fine, it is empty just with one folder -"lost and found", i read somewhere that Mint does not support LVM, but suse does, I will try opensuse 11.1

I tried chroot earlier, boot did not work, same errors.
i would try to change the uuid, but dont know where, I cannot get to fstab, is there another place i can change the uuid for LVM.

thanks for your time and effort

rietsit 06-05-2009 11:12 AM

I booted into F11preview live and took a screenshot of LVM

rietsit 06-05-2009 12:25 PM

F11preview has a bug, I could not mount any drives, but I got the KDE version and was able to mount an external drive, and through LVM I mounted LogVoL00-edit properties, mount as /media/disk

and now I am copying data.

eco 06-06-2009 01:45 PM

did you solve this in the end? Sorry, was in training and could not answer.

rietsit 06-08-2009 11:44 AM

thanks eco,
nonone else replied,
I am still copying the data, i shut it off over the weekend, did not want to mess it up.

what I'll try to do is to mount the volgroup00 as / (root) after reboot, the LVM program let's me do it, I just want to make a fresh backup of data before I restart.

will keep you posted what happened.
thanks for keeping an eye on me.

rietsit 06-08-2009 04:59 PM

tried the older FC10 live gnome CD, but could not edit LVM, all partitions are greyed out? not sure why. will try FC9 see what I can get.


All times are GMT -5. The time now is 08:03 AM.