Results 1 to 1 of 1
Hi,
I am having issues with a local yum repository on a server I manage.
Here are some server details:
OS: Red Hat Enterprise Linux ES release 4 (Nahant Update ...
- 09-10-2011 #1Just Joined!
- Join Date
- Sep 2011
- Posts
- 1
Question regarding setting up a yum repository on a Veritas filesystem
Hi,
I am having issues with a local yum repository on a server I manage.
Here are some server details:
OS: Red Hat Enterprise Linux ES release 4 (Nahant Update 4)
kernel: 2.6.9-67.0.1.ELsmp
yum: 2.4.3
apache: Apache/2.0.52
Veritas: 5.0.10.00-MP1_RHEL4
I have yum repos set up on a Veritas filesystem (/dev/vx/dsk/OSInstallDG/OSInstallvol mount point: /var/opt/repositories) but when I try to do a yum search for a package I get the following errors:
//var/cache/yum/RedHat-4ES-U4-x86_64-Base/repomd.xml:1: parser error : Document is empty
^
//var/cache/yum/RedHat-4ES-U4-x86_64-Base/repomd.xml:1: parser error : Start tag expected, '<' not found
^
h t t p://<server hostname>/RHEL4-ES/RHEL4-U4-x86_64-ES/RedHat/RPMS/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for RedHat-4ES-U4-x86_64-Base: Error: could not parse file //var/cache/yum/RedHat-4ES-U4-x86_64-Base/repomd.xml
I've tried removing /var/cache/yum/RedHat-4ES-U4-x86_64-Base and it still gets the above error. The file is empty:
-rw-r--r-- 1 root root 0 Feb 1 2008 /var/cache/yum/RedHat-4ES-U4-x86_64-Base/repomd.xml
After several tests, I found that the only time I can get the repository to work is if it is on on local filesystem as opposed to the Veritas filesystem.
Here is my /etc/httpd/conf.d/yum.conf config when I have the yum repository on the Veritas repository:
Alias /RHEL4-ES "/var/opt/repositories/RHEL4-ES"
<Directory "/var/opt/repositories/RHEL4-ES">
Options +Indexes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
I have tried:
- AllowOverride All
- Also, I tried FollowSymLinks with symbolic links set up under default document root to the repositories on the Veritas filesystems
Questions:
1. Has anyone successfully set up a yum repository on a Veritas filesystem?
2. If so, can you let me know what I'm missing?
Thanks in advance.


Reply With Quote