Centos 7 VM enter in emergency mode while reboot

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

Centos 7 VM enter in emergency mode while reboot

Post by ludomania007 » 2019/05/07 11:41:54

Hello,
I got some problem with my Centos 7 VM on Xencenter 7. Most of time when i try to reboot my VMs, they crash at rebooting and enter in emergency mode. As suggested i use

Code: Select all

journalctl -xb

and in the result i saw

Code: Select all

job home.mount/start failed with result 'dependency
job dev-mapper-cl\x2dhome.device/start failed with result 'timeout'
or
no memory reserved for crash kernel, starting kdump failed
failed to start crash recovery kernel arming.
With some capture after and before crash i notice that the partition /dev/mapper/cl-home (with fdisk) didn't appear anymore. And when i look at journactl i saw the message

Code: Select all

job dev-mapper-cl\x2dhome.device/start time out
I just try something, i comment the line with /home in the /etc/fstab file, the VM start again but i cannot login with the normal user, i can only login with root.
I don't understand why the home partition disappear and how to prevent it or fix it .
Now i cannot login with the normal user and cannot access to home

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

Re: Centos 7 VM enter in emergency mode while reboot

Post by tunk » 2019/05/07 13:23:24

Can you mount /home manually?
If not, any error messages?

User avatar
TrevorH
Forum Moderator
Posts: 25829
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/07 15:17:56

What is your /home? What device does it reside on?
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

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

Re: Centos 7 VM enter in emergency mode while reboot

Post by ludomania007 » 2019/05/08 13:36:28

tunk wrote:
2019/05/07 13:23:24
Can you mount /home manually?
If not, any error messages?
Please can you tell me how to do that? the /home was there and now disappear so which command can i use to mount /home and eventually recover files that was saved there.

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

Re: Centos 7 VM enter in emergency mode while reboot

Post by ludomania007 » 2019/05/08 13:37:31

TrevorH wrote:
2019/05/07 15:17:56
What is your /home? What device does it reside on?
Home was the folder of the current user and it was on the /dev/xvda1 that was the only partion of my disk

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

Re: Centos 7 VM enter in emergency mode while reboot

Post by tunk » 2019/05/08 14:05:28

Can you post the /home line in /etc/fstab?
Can you also post the output of this: df -h
Edit: And this (running as root): fdisk -l

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

Re: Centos 7 VM enter in emergency mode while reboot

Post by ludomania007 » 2019/05/09 09:54:03

Hi,
Can you post the /home line in /etc/fstab?

Code: Select all

#/dev/mapper/cl-home     /home                   xfs     defaults        0 0
Can you also post the output of this: df -h

Code: Select all

/dev/mapper/cl-root   41G  5.7G   36G  14% /
devtmpfs             2.9G     0  2.9G   0% /dev
tmpfs                3.0G     0  3.0G   0% /dev/shm
tmpfs                3.0G  9.7M  2.9G   1% /run
tmpfs                3.0G     0  3.0G   0% /sys/fs/cgroup
tmpfs                3.0G  8.0K  3.0G   1% /tmp
/dev/xvda1           497M  205M  293M  42% /boot
tmpfs                595M   12K  595M   1% /run/user/42
tmpfs                595M     0  595M   0% /run/user/0
Edit: And this (running as root): fdisk -l

Code: Select all

Disk /dev/xvdb: 162.1 GB, 162135015424 bytes, 316669952 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/xvda: 69.8 GB, 69793218560 bytes, 136314880 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0004abae

    Device Boot      Start         End      Blocks   Id  System
/dev/xvda1   *        2048     1026047      512000   83  Linux
/dev/xvda2         1026048   136314879    67644416   8e  Linux LVM

Disk /dev/mapper/cl-root: 43.9 GB, 43880808448 bytes, 85704704 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/cl-swap: 3892 MB, 3892314112 bytes, 7602176 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

User avatar
TrevorH
Forum Moderator
Posts: 25829
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 12:28:47

As it's on an LVM LV, we need to see the output from the commands

pvs
vgs
lvs
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

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

Re: Centos 7 VM enter in emergency mode while reboot

Post by ludomania007 » 2019/05/09 14:44:26

There's not any result for each command.

User avatar
TrevorH
Forum Moderator
Posts: 25829
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 14:54:43

You ran them as root?
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply