When first running setup.sh, there is a brief display of the following error:
Warning: The lockfile utility is not found in PATH or /usr/bin.This appeared again when starting the services
This utility prevents concurrent executions of setup.sh
which can lead to unexpected or invalid installation results.
To resolve this, I decided to install lockfile via YUM. The problem is, YUM seems broken by default in 4.1.
Xen is using CentOS for their host OS, but they disable the CentOS repository and enable what appears to be a non-existent/functional Xen repository. Whenever you try to use Yum, it throws an error that the repository checksum is invalid:
http://updates.xensource.com/XenServer/4.0.96/domain0/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksumTo resolve this temporarily, and only on my test system, I edited /etc/yum.repos.d/XenSource.repo and changed the following line:
Trying other mirror.
Error: failure: repodata/primary.xml.gz from xensource: [Errno 256] No more mirrors to try.
enabled=1to:
enabled=0I then edited /etc/yum/repos.d/CentOS-Base.repo and changed the following line under the top "[base]" section
enabled=0to:
enabled=1
"yum whatprovides lockfile" now returned a bunch of results. It seems "lockfile" is part of the postfix package. To get this file I:
- ran "yum install postfix"
- copied "/usr/bin/lockfile" to a temporary location
- ran "yum remove postfix"
- copied "lockfile" back to "/usr/bin/lockfile"
To avoid this cumbersome process on our other Xen hosts I make a new tar.gz of the extracted and modified OpenManage installation which included this file, which I make sure to copy to /usr/bin prior to running "setup.sh" above.
1 comments:
This didn't work for Citrix Xen 5.5, postfix didn't provide 'lockfile' but using the same idea installing procmail worked a treat.
Thanks a lot for the tip!
Post a Comment