Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a questiong regarding NFS.

I'm exporting /opt/foo via NFS in /etc/exports:

/opt/foo      client.domain.com(rw,no_root_squash,async,wdelay,no_subtree_check)

/opt/foo is mounted on client.domain.com.

Now, since I'm running out of disk space I decided to mount a logical volume on /opt/foo/bar since "bar" is the directory where the application's data is stored.

mv bar bar.bak
mkdir bar
mount -t ext3 /dev/VolGroup00/LogVol00 /opt/foo/bar

Now it turns out that the client is accessing the folder "bar.bak". I tried to refresh the export table by excecuting either of the following:

exportfs -r
/etc/init.d/nfsd restart

Is there any way I can get the client to access the new "/opt/foo/bar" without remounting? I don't have access to the client that mounts the NFS export.

Michael

share|improve this question

1 Answer 1

Short answer: You can't.

Once the client has mounted the exported filesystem, it accesses it by a handle, not by name; the handle is constructed from the device and inode, which renaming won't change - and neither will mounting something over the already-mounted directory (different filesystem ID). If you absolutely can't get the client to remount, your best bet is to mount the new volume to replace a busy/full subdirectory of /opt/foo/bar - open file handles on the client won't be impacted, but new opens will.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.