Re: NFS and loop devices

From: fishdude (fishdude-nospam-_at_gmx.net)
Date: 12/02/04


Date: Thu, 02 Dec 2004 12:07:19 +0100

RobD wrote:

> 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.

i don´t think so. on my side it´s working without.
the explicit export solves the problem. ;o)

<°)>><

>
> - 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: Powerpoint to DVD
    ... All very cool and relatively easy (Keynote does ... not deal well with timing on it movie exports... ... several of the people who saw the DVD wanted to know how I did ... with a PC about the same age as my Mac. ...
    (comp.sys.mac.advocacy)
  • 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: Powerpoint to DVD
    ... All very cool and relatively easy (Keynote does ... not deal well with timing on it movie exports... ... several of the people who saw the DVD wanted to know how I did ... authoring the DVD with your favorite DVD authoring suite. ...
    (comp.sys.mac.advocacy)
  • 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 and loop devices
    ... The exports file looks something like this: ... The "nohide" options are required. ... > the dvd's/cd's as iso images to a large disk on the 'archive' server. ... I mount the iso files as a loop device ...
    (alt.os.linux.suse)