Page 1 of 3
Centos 7 VM enter in emergency mode while reboot
Posted: 2019/05/07 11:41:54
by ludomania007
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
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
Re: Centos 7 VM enter in emergency mode while reboot
Posted: 2019/05/07 13:23:24
by tunk
Can you mount /home manually?
If not, any error messages?
Re: Centos 7 VM enter in emergency mode while reboot
Posted: 2019/05/07 15:17:56
by TrevorH
What is your /home? What device does it reside on?
Re: Centos 7 VM enter in emergency mode while reboot
Posted: 2019/05/08 13:36:28
by ludomania007
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.
Re: Centos 7 VM enter in emergency mode while reboot
Posted: 2019/05/08 13:37:31
by ludomania007
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
Re: Centos 7 VM enter in emergency mode while reboot
Posted: 2019/05/08 14:05:28
by tunk
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
Re: Centos 7 VM enter in emergency mode while reboot
Posted: 2019/05/09 09:54:03
by ludomania007
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
Re: Centos 7 VM enter in emergency mode while reboot
Posted: 2019/05/09 12:28:47
by TrevorH
As it's on an LVM LV, we need to see the output from the commands
pvs
vgs
lvs
Re: Centos 7 VM enter in emergency mode while reboot
Posted: 2019/05/09 14:44:26
by ludomania007
There's not any result for each command.
Re: Centos 7 VM enter in emergency mode while reboot
Posted: 2019/05/09 14:54:43
by TrevorH
You ran them as root?