Centos 7 VM enter in emergency mode while reboot

Issues related to applications and software problems
ludomania007
Posts: 15
Joined: 2019/05/07 11:30:10

Re: Centos 7 VM enter in emergency mode while reboot

Post by ludomania007 » 2019/05/09 15:26:10

Yes as root. See attached image
pvs-vgs-lvs -cut.png
pvs-vgs-lvs -cut.png (3.23 KiB) Viewed 735 times

User avatar
TrevorH
Forum Moderator
Posts: 27123
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 7 VM enter in emergency mode while reboot

Post by TrevorH » 2019/05/09 17:08:30

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% /
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

ludomania007
Posts: 15
Joined: 2019/05/07 11:30:10

Re: Centos 7 VM enter in emergency mode while reboot

Post by ludomania007 » 2019/05/09 20:06:59

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
Attachments
dfh-controller-cut.png
dfh-controller-cut.png (9.42 KiB) Viewed 725 times

ludomania007
Posts: 15
Joined: 2019/05/07 11:30:10

Re: Centos 7 VM enter in emergency mode while reboot

Post by ludomania007 » 2019/05/10 14:45:27

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!!

User avatar
TrevorH
Forum Moderator
Posts: 27123
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 7 VM enter in emergency mode while reboot

Post by TrevorH » 2019/05/10 14:49:17

The default file we ship contains no filer line at all (except commented examples)
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

ludomania007
Posts: 15
Joined: 2019/05/07 11:30:10

Re: Centos 7 VM enter in emergency mode while reboot

Post by ludomania007 » 2019/05/13 22:59:50

Hello, any help how to correct these issues? @TrevorH

tunk
Posts: 615
Joined: 2017/02/22 15:08:17

Re: Centos 7 VM enter in emergency mode while reboot

Post by tunk » 2019/05/14 14:36:17

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

ludomania007
Posts: 15
Joined: 2019/05/07 11:30:10

Re: Centos 7 VM enter in emergency mode while reboot

Post by ludomania007 » 2019/05/14 21:11:23

@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.
Attachments
pvs-vgs-lvs-controller.png
pvs-vgs-lvs-controller.png (98.25 KiB) Viewed 667 times
fdisk-controller-cut.png
fdisk-controller-cut.png (28 KiB) Viewed 667 times
dfh-controller-cut.png
dfh-controller-cut.png (9.42 KiB) Viewed 667 times

ludomania007
Posts: 15
Joined: 2019/05/07 11:30:10

Re: Centos 7 VM enter in emergency mode while reboot

Post by ludomania007 » 2019/05/24 08:24:39

Hello,

Any help in the forum? Thanks

hunter86_bg
Posts: 1929
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Centos 7 VM enter in emergency mode while reboot

Post by hunter86_bg » 2019/05/26 07:56:23

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.

Post Reply

Return to “CentOS 7 - Software Support”