CentOS 6.9 doesn’t shutdown correctly

General support questions
Post Reply
FHDO_Stiller
Posts: 5
Joined: 2017/08/03 15:14:57

CentOS 6.9 doesn’t shutdown correctly

Post by FHDO_Stiller » 2017/08/07 08:41:47

Hi,

I try to use CentOS 6.9 (final) for our new PCs in the labratory. I'm facing some problems regarding the correct shutdown of CentOS. After shutdown the PCs staying in halt and don't switch off. In the following I have some information regarding the hardware and a snippet of the grub.conf. CentOS is booted in UEFI-mode. We use a dual-boot with Windows 10.

hardware:
OptiPlex 7050 Minitower
Intel Core i7-7700

grub.conf:
title CentOS (2.6.32-696.6.3.el6.x86_64)
root (hd0,5)
kernel /vmlinuz-2.6.32-696.6.3.el6.x86_64 ro root=/dev/mapper/vg_shockley-lv_root rd_NO_LUKS rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=de rd_LVM_LV=vg_shockley/lv_swap rd_LVM_LV=vg_shockley/lv_root LANG=de_DE.UTF-8 rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-696.6.3.el6.x86_64.img

I searched on the Internet before, but doesn't got a working solution. Can someone give me some information where the problem could be or on what I have to focus to fix this?

Thanks in advance,
Kind regards,

Andreas

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 6.9 doesn’t shutdown correctly

Post by TrevorH » 2017/08/07 09:45:25

Remove rhgb quiet from your kernel command line in /boot/grub/grub.conf

Check for BIOS updates from the vendor.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

FHDO_Stiller
Posts: 5
Joined: 2017/08/03 15:14:57

Re: CentOS 6.9 doesn’t shutdown correctly

Post by FHDO_Stiller » 2017/08/07 14:13:43

Hi Trevor,

thanks for your reply. I already updated the BIOS. Regarding the console output everything seems to be ok, while 'rhgb quit' is removed . Any other hint I could try?

Thanks,
Andreas

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 6.9 doesn’t shutdown correctly

Post by TrevorH » 2017/08/07 14:16:00

If it works without rhgb quiet then I'd leave them off. It may be an intermittent problem too in which case maybe you didn't hit it when you tested this particular time.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

FHDO_Stiller
Posts: 5
Joined: 2017/08/03 15:14:57

Re: CentOS 6.9 doesn’t shutdown correctly

Post by FHDO_Stiller » 2017/08/07 14:18:35

Sorry, I maybe expressed myself incorrect. The halt issue still remains.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 6.9 doesn’t shutdown correctly

Post by TrevorH » 2017/08/07 14:30:23

I wasn't expecting it to fix it, just to give you more diagnostic messages to enable you to work out where the problem lay. What is the last thing it says on the console without rhgb quiet?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

FHDO_Stiller
Posts: 5
Joined: 2017/08/03 15:14:57

Re: CentOS 6.9 doesn’t shutdown correctly

Post by FHDO_Stiller » 2017/08/07 14:36:00

Code: Select all

Halting System...
sd 0:0:0:0: [sda] Synchronizing SCSI Cache
sd 0:0:0:0: [sda] Stopping disk
System halted.
_

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 6.9 doesn’t shutdown correctly

Post by TrevorH » 2017/08/07 15:28:35

You could try experimenting with the various options that can be passed via reboot= on the kernel command line. From arch/x86/kernel/reboot.c that lists

/*
* reboot=b[ios] | s[mp] | t[riple] | k[bd] | e[fi] [, [w]arm | [c]old] | p[ci]
* warm Don't set the cold reboot flag
* cold Set the cold reboot flag
* bios Reboot by jumping through the BIOS
* smp Reboot by executing reset on BSP or other CPU
* triple Force a triple fault (init)
* kbd Use the keyboard controller. cold reset (default)
* acpi Use the RESET_REG in the FADT
* efi Use efi reset_system runtime service
* pci Use the so-called "PCI reset register", CF9
* force Avoid anything that could hang.
*/
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

FHDO_Stiller
Posts: 5
Joined: 2017/08/03 15:14:57

Re: CentOS 6.9 doesn’t shutdown correctly

Post by FHDO_Stiller » 2017/08/08 09:43:32

I tried all of the options you mentioned. Sadly nothing helped to fix the problem. While using 'reboot=force' I got the following output:

Code: Select all

Halting System...
sd 0:0:0:0: [sda] Synchronizing SCSI Cache
sd 0:0:0:0: [sda] Stopping disk
System halted.
Clocksource tsc unstable (Delta=500014485ns). Enable clocksource failover by adding clocksource_failover kernel parameter.
The last line repeats in an infinite loop. After adding the suggested 'clocksource_failover' parameter I got this:

Code: Select all

Halting System...
sd 0:0:0:0: [sda] Synchronizing SCSI Cache
sd 0:0:0:0: [sda] Stopping disk
System halted.
Clocksource tsc unstable (delta=258660080ns).
Switching to clocksource hpet
_
But still the PC stays in halt and doesn't shutdown. I think the error with the clocksource maybe corresponds to the force attribute and the different initialisation, doesn't it?

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 6.9 doesn’t shutdown correctly

Post by TrevorH » 2017/08/08 12:13:02

Sorry, no idea.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply