Solved

Mrepo ISO file is not mounting

Posted on 2013-01-11
8
678 Views
Last Modified: 2013-01-31
I have loaded my ISO files int /opt/iso   and configured mrepo.conf and /etc/mrepo.conf.d/centos6.3-64

but when I run mrepo -ugv  iso file is not getting mounted to /var/www/html

[root@localhost mrepo.conf.d]# cat  /etc/mrepo.conf
### Configuration file for mrepo

### The [main] section allows to override mrepo's default settings
### The mrepo-example.conf gives an overview of all the possible settings
[main]
srcdir = /opt/iso
wwwdir = /var/www/mrepo
confdir = /etc/mrepo.conf.d
arch = i386 x86_64

mailto = root@localhost
smtp-server = localhost

#rhnlogin = username:password

### Any other section is considered a definition for a distribution
### You can put distribution sections in /etc/mrepo.conf.d/
### Examples can be found in the documentation at:
### /usr/share/doc/mrepo-0.8.7/dists/.

[root@localhost mrepo.conf.d]# cat /etc/mrepo.conf.d/centos6.3-64
[Cents6.3-64]
name = CentOS $release ($arch)
release = 6
myrepo = file://var/www/mrepo
metadata = repomd repoview yum


[root@localhost mrepo.conf.d]# mrepo  -ugv
Setting option confdir in section [main] to: /etc/mrepo.conf.d
Setting option srcdir in section [main] to: /opt/iso
Setting option wwwdir in section [main] to: /var/www/mrepo
Setting option mailto in section [main] to: root@localhost
Setting option smtp-server in section [main] to: localhost
Setting option arch in section [main] to: i386 x86_64
0
Comment
Question by:mokkan
  • 4
  • 4
8 Comments
 

Author Comment

by:mokkan
ID: 38770049
Any help guys ?
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 38771177
Your config has wwwdir = /var/www/mrepo but in your Q you ask about /var/www/html. Could this be the problem?
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 38771197
There are no error messages. Perhaps mrepo can't find anything to do. mrepo -ugvv may tell you more (extra "v" on the end of the command).
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:mokkan
ID: 38774371
Sorry it was a typo. It should be /var/www/mrepo

Here is the output of -vvvv



[root@localhost www]# mrepo  -ugvvvv
Verbosity set to level 4
Using configfile /etc/mrepo.conf
Reading config file /etc/mrepo.conf
Setting option cachedir in section [main] to: /var/cache/mrepo (default)
Setting option lockdir in section [main] to: /var/cache/mrepo (default)
Setting option confdir in section [main] to: /etc/mrepo.conf.d
Setting option htmldir in section [main] to: /usr/share/mrepo/html (default)
Setting option pxelinux in section [main] to: /usr/lib/syslinux/pxelinux.0 (default)
Setting option srcdir in section [main] to: /var/www/iso
Setting option tftpdir in section [main] to: /tftpboot/mrepo (default)
Setting option wwwdir in section [main] to: /var/www/mrepo
Setting option logfile in section [main] to: /var/log/mrepo.log (default)
Setting option mailto in section [main] to: root@localhost
Setting option mailfrom in section [main] to: mrepo@localhost.localdomain (default)
Setting option smtp-server in section [main] to: localhost
Setting option arch in section [main] to: i386 x86_64
Setting option metadata in section [main] to: repomd repoview (default)
Setting option shareiso in section [main] to: yes (default)
Setting option quiet in section [main] to: no (default)
Setting option hardlink in section [main] to: no (default)
Setting option fuseiso in section [main] to: yes (default)
Setting option unionfs in section [main] to: yes (default)
Setting option no_proxy in section [main] to: None (default)
Setting option ftp_proxy in section [main] to: None (default)
Setting option http_proxy in section [main] to: None (default)
Setting option https_proxy in section [main] to: None (default)
Setting option createrepocmd in section [main] to: /usr/bin/createrepo (default)
Setting option fuseisocmd in section [main] to: /usr/bin/fuseiso (default)
Setting option genbasedircmd in section [main] to: /usr/bin/genbasedir (default)
Setting option hardlinkcmd in section [main] to: /usr/sbin/hardlink (default)
Setting option hardlinkcppcmd in section [main] to: /usr/bin/hardlink++ (default)
Setting option hardlinkpycmd in section [main] to: /usr/bin/hardlinkpy (default)
Setting option lftpcmd in section [main] to: /usr/bin/lftp (default)
Setting option mirrordircmd in section [main] to: /usr/bin/mirrordir (default)
Setting option mountcmd in section [main] to: /bin/mount (default)
Setting option repoviewcmd in section [main] to: /usr/bin/repoview (default)
Setting option rhngetcmd in section [main] to: /usr/bin/rhnget (default)
Setting option rsynccmd in section [main] to: /usr/bin/rsync (default)
Setting option unionfscmd in section [main] to: /usr/bin/unionfs (default)
Setting option umountcmd in section [main] to: /bin/umount (default)
Setting option yougetcmd in section [main] to: /usr/bin/youget (default)
Setting option yumarchcmd in section [main] to: /usr/bin/yum-arch (default)
Setting option createrepo-options in section [main] to: -p (default)
Setting option lftp-bandwidth-limit in section [main] to: None (default)
Setting option lftp-cleanup in section [main] to: yes (default)
Setting option lftp-exclude-debug in section [main] to: yes (default)
Setting option lftp-exclude-srpm in section [main] to: yes (default)
Setting option lftp-options in section [main] to:  (default)
Setting option lftp-commands in section [main] to:  (default)
Setting option lftp-mirror-options in section [main] to: -c -P (default)
Setting option lftp-timeout in section [main] to: None (default)
Setting option mirrordir-cleanup in section [main] to: yes (default)
Setting option mirrordir-exclude-debug in section [main] to: yes (default)
Setting option mirrordir-exclude-srpm in section [main] to: yes (default)
Setting option mirrordir-options in section [main] to:  (default)
Setting option rhnlogin in section [main] to: None (default)
Setting option rhnget-options in section [main] to:  (default)
Setting option rhnget-cleanup in section [main] to: yes (default)
Setting option rhnget-download-all in section [main] to: no (default)
Setting option rsync-bandwidth-limit in section [main] to: None (default)
Setting option rsync-cleanup in section [main] to: yes (default)
Setting option rsync-exclude-debug in section [main] to: yes (default)
Setting option rsync-exclude-srpm in section [main] to: yes (default)
Setting option rsync-options in section [main] to: -rtHL --partial (default)
Setting option rsync-timeout in section [main] to: None (default)
Setting option repoview-options in section [main] to:  (default)


0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 38775994
It does not appear to read /etc/mrepo.conf.d/centos6.3-64. You might have to resort to using strace to see whether it accesses that directory at all and if so what further action it takes. Could there be a permissions problem?
And what is myrepo in the Centos file anyway? A typo for mrepo?
0
 

Author Comment

by:mokkan
ID: 38782955
Thank you, I will look into it. I have a quick question. This mrepo program suppose to mount as loop device or we need to mount it?  I am confused about the mounting ...

Where is it mounting?
0
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 500 total points
ID: 38784629
It'll be a loop device. It will mount on some empty directory which I expect mrepo will create.
0
 

Author Closing Comment

by:mokkan
ID: 38840774
Thank you, it worked
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question