
Originally Posted by
ple
SELinux is disabled on my devel. system. Now that 5.4 is installed on the production server. The fix from milesteg seems to fix just the sda and sdb volumes on my production box. I'm still getting permission denied from /dev/mapper/volumes. Any suggestion?
Thanks.
PL
Are you running RHEL 5.4 64bit by any chance?
While Adding the zimbra user to the disk group on the 32bit test box was the sufficient solution, the same didn't work on the 64bit production box.
Bare in mind that I'm not sure this is the proper way to fix this issue, but it seems that this is the only script "zmdisklog" run via crontab that gets the "Permission denied" error trying to run df against the /dev/mapper/VolGroup00-LogVol0** entry after the RHEL 5.4 update.
Anyway, here is what I did as a quick fix to resolve it:
1- Add a line in sudo (via visudo) for the "zimbra" user as follows:
Code:
%zimbra ALL=NOPASSWD:/opt/zimbra/libexec/zmdisklog
2- Modify the zimbra crontab to add the sudo command to the zmdisklog line:
Code:
*/10 * * * * sudo /opt/zimbra/libexec/zmdisklog
# You should test the command above by hand as the zimbra user before modifying the crontab to make sure it works the way it should.
## The examples here assume that you have your software installed under the default /opt/zimbra path