Portal Home > Knowledgebase > Articles Database > want Recovering a Lost LVM Volume Disk


want Recovering a Lost LVM Volume Disk




Posted by arbwebs, 02-08-2015, 10:02 AM
Hello, we have problem in my server cenots 6.6 with xen 4.2.5 with kernel 2.6.32.61-0.choon.centos6.x86_64 we have try update glibc but to do that remove it and not want install and most of command not work http://prntscr.com/624mrq try boot rescue from 6.5 and copy all /sbin/* /bin/* /usr/sbin/* /usr/bin/* /lib/* /lib64/* to /mnt/sysimages/ /mnt/sysimages/sbin/* /mnt/sysimages/bin/* /mnt/sysimages/usr/sbin/* /mnt/sysimages/usr/bin/* /mnt/sysimages/lib/* /mnt/sysimages/lib64/* and try boot but no luck http://prntscr.com/625fgs try chroot and work try install glibc but no luck and after many try boot from centos 6.6 dvd and try upgrade because dvd centos 6.5 not work with upgrade and upgrade to centos 6.6 work and now server work and up the problem in lvm when try fresh install with dvd found lvm group and Logical Volumes Found it http://prntscr.com/627uws http://prntscr.com/627vno but in server up and work nothing found it #parted -l http://prntscr.com/62jtcl [root@xen1 ~]# vgcfgrestore VG Couldn't find device with uuid DN8BoD-KQEo-E0PZ-i5t8-9ExX-Xkcx-pA1uxz. Cannot restore Volume Group VG with 1 PVs marked as missing. Restore failed. [root@xen1 ~]# pvscan No matching physical volumes found [root@xen1 ~]# pvscan No matching physical volumes found [root@xen1 ~]# pvdisplay [root@xen1 ~]# lvmdiskscan /dev/ram0 [ 16.00 MiB] /dev/root [ 97.66 GiB] /dev/ram1 [ 16.00 MiB] /dev/md1 [ 31.23 GiB] /dev/ram2 [ 16.00 MiB] /dev/ram3 [ 16.00 MiB] /dev/ram4 [ 16.00 MiB] /dev/ram5 [ 16.00 MiB] /dev/ram6 [ 16.00 MiB] /dev/ram7 [ 16.00 MiB] /dev/ram8 [ 16.00 MiB] /dev/ram9 [ 16.00 MiB] /dev/ram10 [ 16.00 MiB] /dev/ram11 [ 16.00 MiB] /dev/ram12 [ 16.00 MiB] /dev/ram13 [ 16.00 MiB] /dev/ram14 [ 16.00 MiB] /dev/ram15 [ 16.00 MiB] 1 disk 17 partitions 0 LVM physical volume whole disks 0 LVM physical volumes [root@xen1 ~]# lvdisplay No volume groups found [root@xen1 ~]# cat /proc/partitions major minor #blocks name 8 0 2930266584 sda 8 1 102400000 sda1 8 2 32768000 sda2 8 3 2795097088 sda3 8 16 2930266584 sdb 8 17 102400000 sdb1 8 18 32768000 sdb2 8 19 2795097088 sdb3 9 1 32751488 md1 9 0 102399872 md0 we want try this http://www.centos.org/docs/5/html/Cl...tarecover.html or this https://www.novell.com/coolsolutions/appnote/19386.html but we are afraid lost all data because it's around 26 container so any suggest or help in this please

Posted by YUPAPA, 02-08-2015, 10:34 AM
If this is all you have, please figure out where that missing md2 is located

Posted by arbwebs, 02-08-2015, 10:47 AM
how can figure it

Posted by YUPAPA, 02-08-2015, 10:52 AM
Do a blkid I bet sda3 and sdb3 holds the same uuid "DN8BoD-KQEo-E0PZ-i5t8-9ExX-Xkcx-pA1uxz" And I highly bet your grub config is messed up slightly. That is the problem.

Posted by arbwebs, 02-08-2015, 11:04 AM
thanks for replay i do blkid and as you said both same uuid but not like VG uuid is add this line in /etc/mdadm.conf to be like this or like this mean which uuid put is there any problem if try this or this ? Last edited by arbwebs; 02-08-2015 at 11:07 AM.

Posted by YUPAPA, 02-08-2015, 11:15 AM
don't replace the uuid in mdadm.conf It looks fine Check your grub /boot/grub/grub.conf Based on your above output, I was guessing that uuid belong to md2 / sda3 / sdb3, but doesn't look like it anymore.

Posted by arbwebs, 02-08-2015, 11:37 AM
that is grub.conf also i don't understand your well is you mean the uuid for md2 is DN8BoD-KQEo-E0PZ-i5t8-9ExX-Xkcx-pA1uxz or what

Posted by arbwebs, 02-08-2015, 11:39 AM
also in mdadm.com just this i suggest add this and ask which uuid write

Posted by YUPAPA, 02-08-2015, 12:04 PM
I would try running a mdadm scan first to see if those two devices can be picked up. Unless xen behaves differently, I don't understand why your root uuid is root=UUID=e35f0a7a-dbe7-4bf8-b2d4-e8cc6344f062 which is your /dev/md0 = /boot file system

Posted by arbwebs, 02-08-2015, 12:08 PM
when try this comman maybe when install xen copy whole options for kernerl in post how can fixed which uuid put in grub is there any contact for your sorry for ask

Posted by YUPAPA, 02-08-2015, 12:18 PM
PM me with the access details, I'll look

Posted by arbwebs, 02-11-2015, 10:13 AM
Thanks YUPAPA and problem solve



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
opinion on my new site (Views: 675)
need help in my script (Views: 688)


Language: