Unable to mount nfs
Hi Gurus,
I am using 2.6.32-71.el6.x86_64. I have a volume mounted via NFS on my server. This volume actually resides on my storage (NetApp). I have two problems. 1) When I create a directory on that partition as root, the owner and group defaults to nfsnobody. But when I create a directory as any other user except root, the owner and group is of that same user through which I created the directory. 2) When I try to make this server as NFS server, by sharing the volume that is already mounted as NFS, i get an error as below [root@portaltest1 linxnfs]# exportfs -a exportfs: Warning: /linxnfs/shared does not support NFS export. [root@portaltest1 linxnfs]# Can anybody help me in this regard? Thank a lot in advance. |
Hello,
what is the FileSystem Type? Regards, maniannam |
Hello,
Filesystem is NFS. Regards. |
NFS is not a filesystem, it's a network protocol similar to CIFS. Maniannam is asking what the actual filesystem is, such as ntfs, ext3, etc.
#1 is normal behavior, and is caused by rootsquash on the NFS share. This means that "root" on any remote machine does not have the same permissions as "root" on the local machine, so that there is only one "root" with true global permissions on that filesystem...the one on the actual machine on which that filesystem resides. #2 - I've never tried to re-share a NFS mount, and I don't really see the benefit. Why not just have the clients mount the original share directly instead of doubling your network overhead by daisy chaining the mount? |
Very sorry to say but strangely the FS in NFS stands for file system. That makes it a filesystem doesn't it?
|
To further prove my point:
Code:
Filesystem Type 1K-blocks Used Available Use% Mounted on |
You can't always take the definition of an acronym at face value.
NFS is a network protocol. Just like RAID stands for redundant array of independent disks...however RAID0, despite being a legitimate RAID implementation, has no redundancy. |
Thanks suicidaleggroll, always nice to learn from people like yourself.
Can you tell me how can I check the filesystem on this partition that is shared by my storage (NetApp) and mounted on my server via NFS protocol. According to me i am trying df -T Regards |
Easiest way is to log into the server (NetApp) and run df -T there.
For example, on my local machine: Code:
[user@client ~]$ df -T | grep raid Code:
[user@server ~]$ df -T | grep raid |
NetApp is my storage server. I dont think df -T will work there.
Code:
udntap-n2-sas> df -T |
You could try running "mount"
|
Sir, this is not a RHEL system. This is a storage system.
Code:
udntap-n2-sas> mount |
Code:
udntap-n2-sas> uname |
It doesn't have to be RHEL in order to run mount, many NAS systems run various distributions of linux. Given that list of commands, I'd say yours does too, it's just trimmed things down quite a bit.
Either way, I don't think you need to know the underlying filesystem to answer your questions. #1 is caused by root squash. #2 seems kind of pointless anyway, but there might be a way to get around it. Why can't you simply mount the NAS directly from each machine that needs it instead of daisy chaining the mount from machine to machine? |
All times are GMT -5. The time now is 08:01 AM. |