Centos 6.10 Starting services failed

General support questions
Post Reply
kimphan
Posts: 2
Joined: 2018/12/18 09:07:27

Centos 6.10 Starting services failed

Post by kimphan » 2018/12/18 09:30:29

Hi all,

I am using a server with Centos 6.10 OS. Yesterday, It met a very bad problem. No users could login into their accounts even if root user with the notice " Permission denied". Then I restarted the server. But It could not be done. A lot of failures appeared. You can see in the below pictures.

https://photos.app.goo.gl/jt8xev4jaYEncYX69

I ried to boot with single mode user but nothing helpful.
Please help me how to handle this problem.
Thank you very much

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

Re: Centos 6.10 Starting services failed

Post by TrevorH » 2018/12/18 09:34:13

Boot from rescue media and run fsck against all your filessystems. However, looking at that output, I suspect that there has already been a filesystem problem and that fsck has already run and moved a bunch of stuff to lost+found. You could also try appending 'enforcing=0' to the end of the kernel command line via the grub menu at boot time but I'm not optimistic that it will fix things.

Hope you have backups...
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

kimphan
Posts: 2
Joined: 2018/12/18 09:07:27

Re: Centos 6.10 Starting services failed

Post by kimphan » 2018/12/18 10:59:51

Hi TrevorH,

I boot my server with single user mode and add enforce 0 at the end. It works. My server can work normally right now.
But Can you tell me why it happened to my server. I want to know to avoid it.

Thank you so much.

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

Re: Centos 6.10 Starting services failed

Post by TrevorH » 2018/12/18 12:14:06

If it works with enforcing=0 then that sounds like you need to relabel your filesystem. The way to do that is to touch /.autorelabel and then reboot. You'll need to make sure you specify enforcing=0 again for that boot as the relabel will fail if it's denied access to the files but once the relabel is complete then you should no longer need it. The relabel might take a long time depending on the size of the filesystem and how many files are present.
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