NFS mounted files


 
Thread Tools Search this Thread
Operating Systems Solaris NFS mounted files
# 1  
Old 10-05-2010
NFS mounted files

If I am not a system admin. How can I tell where a particular mounted file is mounted from.
Harleyrci
# 2  
Old 10-05-2010
Hi.

Files aren't usually mounted, only filesystems.

df will normally show this - for any user.

That's to say, running df for the directory the file is in, will show you where it it mounted.
# 3  
Old 10-05-2010
Greetings.
I guess I am trying to find where a particular directory/filesystem is physically located. Will DF show me that?

Thanks in advance
Harleyrci
# 4  
Old 10-05-2010
An NFS mount will show up something like:

Code:
some_server:/shared-directory/blah/blah  101231233130 120203923 232039123 /local/mount/point

If by "physically", you know where "some_server" is "physically" located, then yes.
# 5  
Old 10-05-2010
I would like to know which machine an NFS mounted filesystem actually lives. Or am I not really understanding this function. It seems if I am a box A and I mount a filesystem /home/userid, then on box B i can access that filesystem. But now I am on box C and would like to know where the filesystem was mounted at. Here is the situation. I am on box C and I issue an FUSER on that filesystem "/home/userid" because I want to see who has an "open" process on the filesystem. However, FUSER -u will not bring back the user-id or process id.
Harleyrci
# 6  
Old 10-05-2010
According to your description, box C is neither the NFS server nor the NFS client so how do you expect it to know anything about /home/userid ?
Moreover, it seems you got the mounting thing backwards, i.e. confusing mounting and sharing. If you are on box A and mount /home/userid, then you can access /home/userid on box A, not box B which I guess is the file server where you can access that directory anytime as it is on a local filesystem.
# 7  
Old 10-06-2010
Thanks jilliagre, for your feedback. I am learning as I go I guess. It seems to me that if I have a filesystem / directory that I want everyone to be able to see and have access to I need to mount using NFS. Next that mounted filesystem should be listed in the /etc/mnttab on each of the machines that will have access to it (Shared I guess is a good term). So, now if I am a user on machine C I can access the mounted filesystem, however, I do not really know as a user on machine C where the filesystem actually resides. So, as a user, how can I find out where the file actually resides? Any input/feedback would be most appreciated. I do admit, that I may not have a full understanding of NFS. You help is most useful to me.
Harleyrci
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Unable to write to NFS mounted directory

Hi, I have exported a few nfs mounts from one server to the nfs clients. This is my nfs server dfstab : # cat /etc/dfs/dfstab # place share(1M) commands here for automatic execution # on entering init state 3. # # share <pathname> # .e.g, # share -F... (3 Replies)
Discussion started by: anaigini45
3 Replies

2. How to Post in the The UNIX and Linux Forums

NFS mounted and unmounted shell script

Hi, I making a script to check nfs mount and unmount options. After various findings, i didn't get any solution for that. Can you please help me in making the script. 1) I have used, if grep -qs '/var/JETSHARE' /proc/mounts; then echo "It's mounted." else echo "It's not mounted. ... (2 Replies)
Discussion started by: Santosh101
2 Replies

3. UNIX for Dummies Questions & Answers

Unable to write to a mounted NFS share

Hi All, I created a nfs share in the server(Solaris 10) with the following command and also updated the dfstab file share -F nfs -o rw=server_name2,anon=0 /to_share And then in the client(solaris 10) added the following command to mount the share mount -F nfs server_name1:/to_share... (4 Replies)
Discussion started by: Rossdba
4 Replies

4. UNIX for Dummies Questions & Answers

Want to improve the rsize and wsize of nfs mounted drives

Hi we have couple of nfs mounts between various linux servers. Recently i was wondering how to improve the performance by altering the parameters "msize" and "rsize" for nfs. In my machine i have determined the NFSSVC_MAXBLKSIZE_V2 = 8*1024 but kernel 2.6 supports upto 32k Optimizing NFS... (0 Replies)
Discussion started by: rakeshkumar
0 Replies

5. Red Hat

doubt in NFS mounted filesystem in linux

Hi, I have some filesystem which is nfs mounted and shared to other servers. Nfs server name= nfsserver (here filesystem is locally mounted) server name where filesystem is shared = sharedserver1 and sharedserver2 filesystem which is shared = /filesystem1 when i am checking utilization by... (1 Reply)
Discussion started by: anshu ranjan
1 Replies

6. UNIX Desktop Questions & Answers

VNC + GNOME with nfs mounted homedirs.

Hi! I'm experiencing some disturbing problems with a machine at work. I've got about 20 users and of which 15 uses VNC to connect to the machine for working with GNOME. The problem is that after a while it seems like the homedir get some nfs stales or something, gnome processes hangs and so... (0 Replies)
Discussion started by: Esaia
0 Replies

7. Programming

Not able to use NFS mounted directory as buffer for untar & unzip.

Hi, For a new requirement, we are trying to use NFS mounted directory as the buffer (TMP_DIR) for untar. Target OS- VxWorks Host OS - Windows Embedded. mounted a directory in wondows onto VxWorks. During untar process of GNU we come across utime, for chaning the time stamp of the... (0 Replies)
Discussion started by: suraj.bc
0 Replies

8. Solaris

Remote mount an already mounted nfs filesystem

Hello all, We're using JET to build our systems.. I'm in the process of needing to build a centrally located JET box with access to all our networks rather that 2 or 3 dotted around. Part of the means I need to locate the boot & OS images on an NFS mount (via NETAPP filer).. However in the... (1 Reply)
Discussion started by: itsupplies
1 Replies

9. Shell Programming and Scripting

Testing if nfs filesystem is mounted

Hello, I have a backup script that backs up my system to a nfs mounted file system. The mount point on my local system is /backup. I want my script to check whether the nfs file system is mounted on /backup before actually backing anything up. Even if the nfs file system was NOT mounted,... (2 Replies)
Discussion started by: xadamz23
2 Replies

10. UNIX for Dummies Questions & Answers

How can I tell if a filesystem is NFS mounted?

I would like to know if there is a command or set of commands that I can run to verify that there are no 'extraneous' nfs mounted filesystems on our server. I didn't see anything in doing a search on NFS. We think that we may have some filesystems that are still nfs mounted when the link should... (3 Replies)
Discussion started by: giannicello
3 Replies
Login or Register to Ask a Question