Solved

Mrepo ISO file is not mounting

Posted on 2013-01-11
8
697 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

732 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