Re: NFS and loop devices

From: RobD (robden12_at_adelphia.NOSPAM.net)
Date: 12/02/04


Date: Thu, 2 Dec 2004 00:18:55 -0800

I duplicated your problem on two virtual machines (using vmware) and I was
able find a solution. First, I tried using the "nohide" option for the
exports. This is used if two filesystems are involved, a parent and a
child, so the child fs is visible (see exports(5) man page). This alone
didn't help. I then followed their suggestion and used a single host's IP
address; again no joy. What did make it work was to explicitly export the
dvd1, dvd2, ... subdirectories. I think this is needed because of the loop
device.

The exports file looks something like this:
/media/dvd/ 192.168.1.0/24(ro,async,nohide)
/media/dvd/dvd1/ 192.168.1.0/24(ro,async,nohide)
/media/dvd/dvd2/ 192.168.1.0/24(ro,async,nohide)

The "nohide" options are required.

- Robert -

"suttie" <sutter_peter@hotmail.com> wrote in message
news:41ae99c5@funnel.arach.net.au...
> Hi,
>
> As the result of archiving, I have a number of data cds and data dvds
> which
> I would like to share out via nfs.
>
> Because I do not have as many cd and dvd readers as I have disks, I copied
> the dvd's/cd's as iso images to a large disk on the 'archive' server.
>
> On the 'archive' server, I mount the iso files as a loop device
> to /media/DVD/DVD1, /media/DVD/DVD2 etc, one mount point for each iso
> image. The entry in fstab is
>
> /archive/DVD/dvd1.iso /media/DVD/DVD1 iso9660 loop,auto,ro
>
> On the archive server, I now try to share out /media/DVD via nfs, the
> entry
> in exports is:
>
> /media/DVD 192.168.1.0/24(ro,async)
>
> On the client, I can mount with
>
> mount -t nfs archive:/media/DVD /mountpoint.
>
> A ls /mountpoint shows all the directories available. A ls
> /mountpoint/DVD1
> shows an empty directory.
>
> Why? What do I overlook?
>
> The strange thing is, if I share out the iso image, I can mount it as a
> loop
> device on the client, and I can access the content of the dvd. Why does it
> work this way round?
>
> Thanks
>
> Peter
>



Relevant Pages

  • Re: NFS mount issue
    ... > I'm trying to mount my home directory on my office box on ... NFS is very sensitive to errors in exports. ... I wasn't root when I tried to mount! ...
    (freebsd-questions)
  • Re: NFS and loop devices
    ... > The exports file looks something like this: ... >> Because I do not have as many cd and dvd readers as I have disks, ... I mount the iso files as a loop device ...
    (alt.os.linux.suse)
  • NFS and inability to mount remotely
    ... I'm getting the following error trying to mount the nfs exports that I ... to get it I'm running this mount command: ... program vers proto port service ...
    (freebsd-questions)
  • Re: NFS
    ... >> The NFS server can see the exports are in the same FS so why does it ... has been supplanted by mount --bind anyway. ... client imports several of these exports, ... msdos-type filesystems this is true. ...
    (uk.comp.os.linux)