Bug 139574
Summary: | syslogd hangs on startup when /var is symlinked to non-root partition | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Kevin Cozens <kevin> |
Component: | sysklogd | Assignee: | Jason Vas Dias <jvdias> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-11-16 21:04:09 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Kevin Cozens
2004-11-16 19:31:02 UTC
Firstly, make sure that the new /var partition (/part2) is mounted at the same time as / in /etc/fstab - the sixth field (pass_no) must be no greater than 2. It sounds like you have SELinux enabled - syslogd has the incorrect file contexts for /part2/var/{run,log} : open("/var/run/syslogd.pid", O_RDONLY) = -1 EACCES (Permission denied) This problem would disappear if you can mount the whole of /part2 under /var: # cd /part2 # mv var/* . # rmdir var # cd / # umount /part2 # mount /dev/hda4 /var and then relabel to get the correct selinux file contexts: # restorecon -R /var OR you could try doing the above, with the restorecon, and then move all the relabeled directories back to /part2/var, and then the link from /var to /part2/var MIGHT work - you may have to add policy for /var for syslogd & klogd. OR you could disable selinux: edit /etc/selinux/config and set SELINUX=disabled See documents in /usr/share/SELinux . I now have some updated information - you need to use 'setfiles' instead of restorecon : You can retain use of the /part2/var directory as follows: Having moved / untar'ed the /var directory under /part2 : # setfiles -r /part2 \ /etc/selinux/targeted/contexts/files/file_contexts /var # rm -f /var # mkdir /var # mount -o bind /part2 /var and add this line to /etc/fstab: /part2/var /var none bind 0 2 I'll try some of the suggestions. I generally run my machine with high security as a way to test setups for client machines. The seinfo command says there is no policy.conf file so I will disable selinux for now until I can create a policy file for the machine. FYI, I selected to enable SELinux during the install of FC3. I did not change the default configuration of SELinux after install. /etc/selinux/config indicates 'enforcing' and 'targeted'. 'enforcing' may be why syslogd hung without providing any indication it was running in to a problem with an SELinux policy. I will try it with 'permissive' to see if that gives me an error message instead of just having the daemon hang. |