?
Solved

Mrepo ISO file is not mounting

Posted on 2013-01-11
8
Medium Priority
?
739 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 35

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 35

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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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 35

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 35

Accepted Solution

by:
Duncan Roe earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…
Suggested Courses
Course of the Month17 days, 13 hours left to enroll

829 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