LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-11-2016, 03:31 PM   #1
vs1784
LQ Newbie
 
Registered: Mar 2016
Posts: 3

Rep: Reputation: Disabled
Mounting messed up LVM


We had lost power and my CentOS VM wont start now. It started complaining about missing LVM. It seems one of the disk is missing.

I booted using Knoppinx and tried to figure out the issue but could not identify where to begin.

Please help if anyone can. Data is important and i would like to recover files if i can.

root@Microknoppix:~# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup00
PV Size 24.90 GiB / not usable 21.77 MiB
Allocatable yes
PE Size 32.00 MiB
Total PE 796
Free PE 638
Allocated PE 158
PV UUID 1w7rK2-dPRj-KWiy-Zk1W-n0oT-wDbw-nD1dTa

--- Physical volume ---
PV Name /dev/sda3
VG Name VolGroup00
PV Size 25.00 GiB / not usable 3.59 MiB
Allocatable yes (but full)
PE Size 32.00 MiB
Total PE 800
Free PE 0
Allocated PE 800
PV UUID cjrG52-Kj2H-4XVn-TC12-q9FO-SBzn-TMknFi

--- Physical volume ---
PV Name /dev/sda4
VG Name VolGroup00
PV Size 25.00 GiB / not usable 27.75 MiB
Allocatable yes
PE Size 32.00 MiB
Total PE 799
Free PE 799
Allocated PE 0
PV UUID IUt04f-PJUQ-N5nl-20SX-U1wD-2lpk-HJ0bWb



root@Microknoppix:~# lvdisplay
--- Logical volume ---
LV Path /dev/VolGroup00/LogVol01
LV Name LogVol01
VG Name VolGroup00
LV UUID g61YsA-PLWM-7Uy9-l21C-sQNH-p7ND-XQ1DIj
LV Write Access read/write
LV Creation host, time ,
LV Status NOT available
LV Size 29.94 GiB
Current LE 958
Segments 2
Allocation inherit
Read ahead sectors auto



root@Microknoppix:~# vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 3
Metadata Sequence No 12
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 3
Act PV 3
VG Size 74.84 GiB
PE Size 32.00 MiB
Total PE 2395
Alloc PE / Size 958 / 29.94 GiB
Free PE / Size 1437 / 44.91 GiB
VG UUID TTweif-owk6-Y3VD-LNBe-5gSS-50hp-eHaRRF



root@Microknoppix:/mnt# cat /proc/partitions
major minor #blocks name

240 0 1990272 cloop0
251 0 2917988 zram0
11 0 713980 sr0
8 0 78643200 sda
8 1 104391 sda1
8 2 26105625 sda2
8 3 26218080 sda3
8 4 26210047 sda4
252 0 31391744 dm-0



root@Microknoppix:/mnt# lvmdiskscan
/dev/ram0 [ 97.66 MiB]
/dev/VolGroup00/LogVol01 [ 29.94 GiB]
/dev/ram1 [ 97.66 MiB]
/dev/sda1 [ 101.94 MiB]
/dev/ram2 [ 97.66 MiB]
/dev/sda2 [ 24.90 GiB] LVM physical volume
/dev/ram3 [ 97.66 MiB]
/dev/sda3 [ 25.00 GiB] LVM physical volume
/dev/ram4 [ 97.66 MiB]
/dev/sda4 [ 25.00 GiB] LVM physical volume
/dev/ram5 [ 97.66 MiB]
/dev/ram6 [ 97.66 MiB]
/dev/ram7 [ 97.66 MiB]
/dev/ram8 [ 97.66 MiB]
/dev/ram9 [ 97.66 MiB]
/dev/ram10 [ 97.66 MiB]
/dev/ram11 [ 97.66 MiB]
/dev/ram12 [ 97.66 MiB]
/dev/ram13 [ 97.66 MiB]
/dev/ram14 [ 97.66 MiB]
/dev/ram15 [ 97.66 MiB]
0 disks
18 partitions
0 LVM physical volume whole disks
3 LVM physical volumes


root@Microknoppix:~# lvscan
inactive '/dev/VolGroup00/LogVol01' [29.94 GiB] inherit
 
Old 03-11-2016, 03:46 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,609

Rep: Reputation: 702Reputation: 702Reputation: 702Reputation: 702Reputation: 702Reputation: 702Reputation: 702
You have one disk showing up, sda. It has 4 partitions: sda1 is probably your 100MB /boot partition, sda2/3/4 form volume group VolGroup00, which contains one logical volume LogVol01.

Post the contents of /etc/fstab so we know what else it thinks should be mounted.
 
Old 03-11-2016, 03:49 PM   #3
vs1784
LQ Newbie
 
Registered: Mar 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
See /etc/fstab below
Code:
root@Microknoppix:~# cat /etc/fstab
# DEFAULT BASE FSTAB, UNCONFIGURED
proc       /proc         proc       noauto             0 0
sysfs      /sys          sysfs      noauto             0 0
# Added by KNOPPIX
/dev/sda1 /media/sda1 ext3 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/fd0 /media/fd0 auto noauto,users,exec 0 0
# Added by KNOPPIX
/dev/sr0 /media/sr0 iso9660 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/sda2 /media/sda2 LVM2_member noauto,users,exec 0 0
# Added by KNOPPIX
/dev/sda4 /media/sda4 LVM2_member noauto,users,exec 0 0
# Added by KNOPPIX
/dev/sda3 /media/sda3 LVM2_member noauto,users,exec 0 0
root@Microknoppix:~#
 
Old 03-11-2016, 06:22 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,957

Rep: Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267
Unfortunately, that is the fstab that Knoppix generated and not the fstab from your CentOS VM, which is locked up inside your LV. Knoppix doesn't seem to be complaining about the LVM structure.

Can you successfully mount /dev/VolGroup00/LogVol01 (preferably read-only) in Knoppix and post the etc/fstab that's in there? You will have to activate the volume group first, "vgchange -ay VolGroup00". (That's harmless -- it affects only the state of the currently running kernel, not anything on the disk.)

Last edited by rknichols; 03-11-2016 at 06:36 PM. Reason: s/might have to/will have to/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LVM recover a LV - I messed up good racker79 Linux - Server 3 12-03-2015 04:47 PM
LVM config messed up, need help fixing. usao Linux - Server 1 12-06-2014 12:24 PM
How do I get rid of a messed up LVM Hard Drive thomasArthur Linux - Newbie 4 02-17-2014 11:15 PM
Centos / Fedora won't boot: kernel panic due to LVM messed up!!! please help!!!!! smileamiledr Linux - Server 23 01-21-2010 10:53 AM
Messed up an LVM - is there a way to recover? BrianK Linux - General 3 05-09-2007 07:45 PM


All times are GMT -5. The time now is 06:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration