YUM Repository NFS
I created a repository on NFS to update my machines without internet access, is already working with RHEL5 and RHEL6 but with RHEL7'm in trouble, follows the configuration of my repo:
RHEL 5:
[rhel-myrepo]
name=My Red Hat Enterprise Linux $releasever - $basearch
baseurl=http://rhelrepo.ymdb.com.br/repo/rhel-x86_64-server-5/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@yspp1060 ~]# yum repolist
Loaded plugins: security
repo id repo name status
rhel-myrepo My Red Hat Enterprise Linux 5Server - x86_64 16,995
repolist: 16,995
RHEL 6:
[rhel-myrepo]
name=My Red Hat Enterprise Linux $releasever - $basearch
baseurl=http://rhelrepo.ymdb.com.br/repo/rhel-x86_64-server-6/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@yamaha77 ~]# yum repolist
repo id repo name status
rhel-myrepo My Red Hat Enterprise Linux 6Server - x86_64 16,610
repolist: 16,610
RHEL 7:
[rhel-repo_7]
name=My Red Hat Enterprise Linux $releasever - $basearch
baseurl=http://rhelrepo.ymdb.com.br/repo/rhel-x86_64-server-7/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@yspxx yum.repos.d]# yum repolist
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id repo name status
rhel-repo_7 My Red Hat Enterprise Linux 7Server - x86_64 0
repolist: 0
Not pulling my local repository on RHEL 7. The following structure of my repository server:
drwxr-xr-x 3 root root 4.0K May 18 2015 rhel-myrepo
drwxr-xr-x 4 root root 4.0K May 22 2015 zabbix
drwx------ 2 root root 16K May 26 2015 lost+found
-rwxrwxrwx 1 root root 213 Feb 24 14:50 myrepo6_x64.repo
-rwxrwxrwx 1 root root 213 Feb 24 14:55 myrepo5_x64.repo
-rwxrwxrwx 1 root root 213 Feb 25 11:27 myrepo7_x64.repo
drwxr-xr-x 4 root root 4.0K Feb 26 04:17 rhel-x86_64-server-6
drwxr-xr-x 4 root root 4.0K Feb 26 05:00 rhel-x86_64-server-5
drwxr-xr-x 3 root root 4.0K Feb 26 10:00 rhel-7-server-rpms
drwxr-xr-x 3 root root 4.0K Feb 26 10:04 rhel-x86_64-server-7
What could be happening?
Responses
Hi Manoel, EDITED 3/2/2016
FIRST THINGS FIRST--- See Lesley Kimmel's post below!!!!!!
Some initial thoughts, and perhaps you've done this before.
Just curious, since it is working on your RHEL 5 & 6 systems, try temporarily turning off firewalld on your RHEL 7 system and attempt to access it again. Does that make it work?
Is the NFS mount mounted via automount, and is autofs working? otherwise try a manual mount
Can you manually mount the NFS mount, and if not, what errors do you receive?
Also, the RHEL7 systems, are they on a different subnet or domain? Does your /etc/exports file sufficiently cover your new RHEL 7 systems? (like is there a difference in the IP address or domain)?
What do you see in the log files for errors on the RHEL7 system(s)?
This is just some initial thoughts, not necessarily a comprehensive list.
Let us know how it goes.
Firstly, just because I'm goofy this way, I want to point out that this does not appear to be over NFS. Those repositories are configured to be shared over HTTP.
Regarding your issue, I assume you downloaded your packages with something like 'yumdownloader'? If so you then possibly did 'createrepo'? I vaguely remember there being some differences in the way that the RHEL7 version of createrepo made the directory structure. It is possible that your yum client is not finding the repodata directory. Also, did you try 'yum clean all'?
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
