Page 2 of 3

Re: Centos 7 VM enter in emergency mode while reboot

Posted: 2019/05/09 15:26:10
by ludomania007
Yes as root. See attached image
pvs-vgs-lvs -cut.png
pvs-vgs-lvs -cut.png (3.23 KiB) Viewed 2550 times

Re: Centos 7 VM enter in emergency mode while reboot

Posted: 2019/05/09 17:08:30
by TrevorH
That makes no sense as I can see from your df output that you are using LVM.

/dev/mapper/cl-root 41G 5.7G 36G 14% /

Re: Centos 7 VM enter in emergency mode while reboot

Posted: 2019/05/09 20:06:59
by ludomania007
Hello @TrevorH

U're probably right. i use a same template to build my nodes and when i look in another node that do not crash that is what i see.
I d'ont really know what happen and how to fix it
The attachment fdisk-controller-cut.png is no longer available
The attachment fdisk-controller-cut.png is no longer available
The attachment fdisk-controller-cut.png is no longer available

Re: Centos 7 VM enter in emergency mode while reboot

Posted: 2019/05/10 14:45:27
by ludomania007
I just find that for that two nodes there was an error in /etc/lvm/lvm.conf. The filter was set like this ..

Code: Select all

filter = [ "r/.*/" ]
Maybe this that create all that error! i comment the filter but pvs, lvs and vgs still show nothing!!

Re: Centos 7 VM enter in emergency mode while reboot

Posted: 2019/05/10 14:49:17
by TrevorH
The default file we ship contains no filer line at all (except commented examples)

Re: Centos 7 VM enter in emergency mode while reboot

Posted: 2019/05/13 22:59:50
by ludomania007
Hello, any help how to correct these issues? @TrevorH

Re: Centos 7 VM enter in emergency mode while reboot

Posted: 2019/05/14 14:36:17
by tunk
I don't know what your problem is, but it may help if you
from "another node" post the output from this (running as root):
fdisk -l
pvs
vgs
lvs

Re: Centos 7 VM enter in emergency mode while reboot

Posted: 2019/05/14 21:11:23
by ludomania007
@tunk

Please look at the attachments.

Can i try to mount to mount /home to /dev/mapper/cl-home with this command

Code: Select all

mount /dev/mapper/cl-home /home 
will i recover all files that was on /home directory?

The other issues is to retrieve all the physycal, logical volumes and volumes group? or how can i rebuild them with some commands?

Thanks.

Re: Centos 7 VM enter in emergency mode while reboot

Posted: 2019/05/24 08:24:39
by ludomania007
Hello,

Any help in the forum? Thanks

Re: Centos 7 VM enter in emergency mode while reboot

Posted: 2019/05/26 07:56:23
by hunter86_bg
It seems you need some clarification about LVM.

Each PV contqins the VG metadata (can be seen with strings /dev/mypv) and once 'pvs'/'vgs'/'lvs' is run - all disks are scanned and data is cached.
In order to restore your VG (I haven't checked all the previous comments and/or attachments) you just need all your PVs to be available.

Before you try to mount your home run:

Code: Select all

findmnt /home
If nothing comes, try to mount:

Code: Select all

mount /home
And your entry in fstab will be read and your /home mounted.