Re: Problem with NFS and XEN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Rajesh/linux-nfs,

I am sorry but I didn't understand your comment, Rajesh. ("you don't
do umount from NFS client of NFS mounted filesystem.")
Does this mean "I should do an umount from an NFS client, or does it
mean I shouldn't do an umount from an NFS client."

In any case I did not nor do I want to umount the directory from the
NFS-client side.

I mounted an iso image on the nfs-server side, so that it would be
visible to the client.
After I use it, I want to umount it from the nfs-server side. It doesn't umount.

(When I try to umount the parent directory from the client - I also
get "device is busy".)

>From the server if I type:
exportfs -u 192.168.11.129:/adir              (releasing the parent directory).
this fails, and the subsequent umount /adir/virtualstuff        fails

However if I type:
exportfs -ua

then umount /adir/virtualstuff    succeeds.

Is it a bug that
exportfs -u address:/path_to_directory     fails to 'unbusy the directory',
but
exportfs -ua                                                  succeeds
and a subsequent umount /adir/virtualstuff succeeds.


I am using as a server, opensuse
Linux msi 2.6.27.21-0.1-default #1 SMP 2009-03-31 14:50:44 +0200
x86_64 x86_64 x86_64 GNU/Linux

regards and thanks in advance for your help,

Roger Marcus



On Fri, May 8, 2009 at 9:15 AM, Rajesh Ghanekar
<rajesh_ghanekar@xxxxxxxxxxxx> wrote:
> you don't do umount from NFS client of NFS mounted filesystem.
>
> Roger Marcus wrote:
>>
>> Hi,
>>
>> I am having a problem with NFS and I thought that you could help me or
>> you could steer me to
>> someone who might be able to.
>>
>> The problem is this:
>>
>> An NFS Server mounts an image on a local directory, containing a XEN
>> virtual machine configuration file and a XEN image.
>>
>> An NFS Client computer sees the directory that was mounted remotely
>> and starts the XEN Virtual machine on the mounted directory.
>> The NFS Client computer then stops the XEN Virtual machine. So far, so
>> good. The machine ran. It stopped. The NFS Client
>> leaves the directory. No process is accessing that directory from the
>> client side.
>>
>> Problem: The NFS Server cannot umount the local directory.
>> fuser returns no usage of the directory.
>> lsof returns no usage of the directory.
>> umount -f won't force umount the directory.
>>
>> What does work is exportfs -ua.
>>
>> This is not a good way to go, since it is planned that many clients
>> will be using the server; indeed many
>> clients will be using multiple subdirectories on the server.
>>
>> 1. Is this a XEN bug or an NFS bug?
>> 2. Is there some other command like exportfs in which you can just
>> disable the one local directory but maintain an
>> active mount on the parent directory?
>>
>> exports:
>> /adir     192.168.11.129(rw,sync,no_subtree_check,crossmnt,no_root_squash)
>> =======================================
>> /adir/image.iso (contains xen vm stuff)
>> server executes: mount -o loop /adir/image.iso /adir/virtualstuff
>>
>> client mounts adir with mount -t nfs 192.168.11.22:/adir /adir
>> xm create /adir/virtualstuff/config.cfg
>> xm destroy virtual
>>
>> on the nfs-server:
>> umount /adir/virtualstuff (won't)
>>
>> only exportfs -ua works, but this defeats my purpose.
>>
>> Can you suggest anything?
>>
>> thanks in advance,
>>
>> Roger Marcus
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
>> the body of a message to majordomo@xxxxxxxxxxxxxxx
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux