• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 353
  • Last Modified:

mount /data on Client (RHEL)

I have an nfs server with a filesystem /data mounted. It has all the permissions enabled for clients to mount this FS.

I want to mount this FS on a NFS server. But NFS server already has a local filesystem /data. Now how do I mount /data on the server to /data on the client.

Should I create another FS on client, copy everything to that FS, unmount /data from client and mount it back. Please give me an efficient way.
  • 2
1 Solution
Why don't you just mount it with a different name?

mount -t nfs yourserver:/data /otherdata

A mount point does not have to have the same name as the fs on the server.
Could you please show us:

# dh -Th

from the box on which you want to mount.
mnis2008Author Commented:
#df -Th
              ext3    3.0G  1.4G  1.5G  49% /
/dev/sda1     ext3     99M   49M   45M  53% /boot
none         tmpfs    506M     0  506M   0% /dev/shm
              ext3    385G   56G  310G  16% /home
              ext3   1008M   34M  924M   4% /tmp
              ext3    4.0G  628M  3.2G  17% /usr
              ext3    4.0G  3.1G  727M  82% /var
So you don't have /data as a seprate FS so if you really want to mount your nfs share at /data then rename the existing /data dir to something else and then create a new /data dir.
You will achive your goal.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now