Solved

Mrepo ISO file is not mounting

Posted on 2013-01-11
8
660 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
 

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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now