General
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot mount ISO image over NFS

Pelephone System
Frequent Advisor

Cannot mount ISO image over NFS

Hey,
I have a ISO Image on NFS Server, and when I try to mount it, It fails.
When I copy the iso image to a local directory and try to mount it - it's working fine.

I have the same issue on all of my Red Hat 5.1 servers.
Here is some info about my server:
Enterprise Linux Enterprise Linux Server release 5.1 (Carthage)
kernel: Linux maoflin2 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

Here is the error i'm getting:
[root@maoflin2 ~]# mount -v -t iso9660 -o loop,ro /sysImg/maoflin2/25-08-2009/maoflin2-25-08-209-1.iso /mnt/tmp/
mount: going to use the loop device /dev/loop0
ioctl: LOOP_SET_FD: Invalid argument
mount: failed setting up loop device

I have also uploaded the strace output of the command.
HPUX sysadmin
9 REPLIES
Steven E. Protter
Exalted Contributor

Re: Cannot mount ISO image over NFS

Shalom,

Try opening an nfs mount.

Then.

cd
mount -o loop directory

That should work.

You are trying to do a two step process in one step.

sEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pelephone System
Frequent Advisor

Re: Cannot mount ISO image over NFS

Hey Steven :)
Its working just fine from all the my hosts, except 4 RHEL 5.1

here is the output (same thing):
[root@maoflin2 25-08-2009]# mount -v -o loop maoflin2-25-08-209-1.iso /mnt/tmp/
mount: going to use the loop device /dev/loop0
ioctl: LOOP_SET_FD: Invalid argument
mount: failed setting up loop device
HPUX sysadmin
Vitaly Karasik_1
Honored Contributor

Re: Cannot mount ISO image over NFS

I suggest you to upgrade to the latest patch level.

it seems like there are some bugs which prevent from mounting loopback fs from non-local fs (yes, it's relative old, but anyway...):
- GlusterFS - http://systembash.com/content/error-while-mounting-an-iso-image-in-linux-ioctl-loop_set_fd-invalid-argument/
- unionfs - http://www.mail-archive.com/debian-bugs-closed@lists.debian.org/msg98512.html
- ntfs/smb - http://www.linuxquestions.org/questions/slackware-14/mounting-iso-image-374583/
Pelephone System
Frequent Advisor

Re: Cannot mount ISO image over NFS

I'm trying to find which exacly packages I need to upgrade.

I can't just upgrade a running production server...

the loop.ko is the same version on the working and the non working machine :/
HPUX sysadmin
Vitaly Karasik_1
Honored Contributor

Re: Cannot mount ISO image over NFS

and kernel itself?

Pelephone System
Frequent Advisor

Re: Cannot mount ISO image over NFS

same version.
The loop.ko is also the same version :/
HPUX sysadmin
Vitaly Karasik_1
Honored Contributor

Re: Cannot mount ISO image over NFS

>Its working just fine from all the my >hosts, except 4 RHEL 5.1

hmm.. I was under opinion that other nfs clients are not rhel5.1...

so you have few other rhel5.1 clients which are OK?
what about nfs-utils versions? do you have lockd and statd running on all clients?

Pelephone System
Frequent Advisor

Re: Cannot mount ISO image over NFS

Yes, I have other Red Hat 5.1 servers that are working fine.

The only diffrance is all of the not working machines are InfiniBand.
And when I compare the nfs rpm's those servers have the following rpm:
rnfs-utils-1.1.5-2.OFED

Here is the description of that rpm:
This package provides only the mount binary necessary to mount NFS-RDMA
connections. All other NFS utilities are provided by the nfs-utils RPM
(which is required by this package). The installed binary will be named
mount.rnfs

But I'm still not sure that this is the thing that makes me all the trouble :/
What do you think ?
HPUX sysadmin
Vitaly Karasik_1
Honored Contributor

Re: Cannot mount ISO image over NFS

may be "mount" command will show some difference in nfs mount options?

I guess it should be some difference either in software versions/configurations or mount options.