LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-13-2012, 05:09 AM   #1
samkhan83
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Rep: Reputation: Disabled
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.
 
Old 08-13-2012, 09:44 AM   #2
maniannam
Member
 
Registered: Dec 2007
Location: India
Distribution: fedora 11
Posts: 64

Rep: Reputation: 16
Hello,

what is the FileSystem Type?

Regards,
maniannam
 
Old 08-13-2012, 01:40 PM   #3
samkhan83
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hello,

Filesystem is NFS.

Regards.
 
Old 08-13-2012, 01:47 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143
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?

Last edited by suicidaleggroll; 08-13-2012 at 01:51 PM.
 
Old 08-13-2012, 01:52 PM   #5
samkhan83
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Very sorry to say but strangely the FS in NFS stands for file system. That makes it a filesystem doesn't it?
 
Old 08-13-2012, 01:54 PM   #6
samkhan83
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
To further prove my point:

Code:
Filesystem    Type   1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg_portaltest1-lv_root
              ext4    15227752   8161956   6292268  57% /
tmpfs        tmpfs    15473904       624  15473280   1% /dev/shm
/dev/sda1     ext4      495844     36406    433838   8% /boot
udntap-n1-sata:/vol/portaltest1_211/qt1
               nfs    54525952  14737216  39788736  28% /linxnfs

Last edited by samkhan83; 08-13-2012 at 01:55 PM.
 
Old 08-13-2012, 01:54 PM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143
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.
 
Old 08-13-2012, 01:58 PM   #8
samkhan83
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
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
 
Old 08-13-2012, 01:59 PM   #9
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143
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
server:/raid   nfs     37T  326G   37T   1% /server/raid
But on the server:
Code:
[user@server ~]$ df -T | grep raid
/dev/sdc1      xfs     37T  326G   37T   1% /raid
So it's actually an XFS filesystem. NFS is just the protocol that allows me to remotely access it on my client machine.

Last edited by suicidaleggroll; 08-13-2012 at 02:02 PM.
 
Old 08-13-2012, 02:11 PM   #10
samkhan83
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
NetApp is my storage server. I dont think df -T will work there.

Code:
udntap-n2-sas> df -T
df: Invalid option - T
usage: df [ -i | -r | -S | -s | -x ] [ -h | -k | -m | -g | -t ] [ -A | -V | -L ] [ <pathname> | <name> ]
udntap-n2-sas>
 
Old 08-13-2012, 02:21 PM   #11
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143
You could try running "mount"
 
Old 08-13-2012, 02:24 PM   #12
samkhan83
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Sir, this is not a RHEL system. This is a storage system.

Code:
udntap-n2-sas> mount
mount not found.  Type '?' for a list of commands
udntap-n2-sas>
 
Old 08-13-2012, 02:25 PM   #13
samkhan83
LQ Newbie
 
Registered: Aug 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Code:
udntap-n2-sas> uname
uname not found.  Type '?' for a list of commands
udntap-n2-sas> ?
?                   fpolicy             nfsstat             smtape
acpadmin            fsecurity           nis                 snap
aggr                ftp                 options             snaplock
arp                 halt                orouted             snapmirror
backup              help                partner             snapvault
bmc                 hostname            passwd              snmp
cdpd                httpstat            ping                software
cf                  ide_savecore        ping6               source
charmap             ifconfig            pktt                sp
cifs                ifgrp               portset             stats
clone               ifstat              priority            storage
config              igroup              priv                sysconfig
date                ipsec               qtree               sysstat
dcb                 ipspace             quota               timezone
df                  iscsi               radius              traceroute
disk                key_manager         rdate               traceroute6
disk_fw_update      keymgr              rdfile              ups
dns                 license             reallocate          uptime
download            lock                reboot              useradmin
du                  logger              restore             version
dump                logout              rlm                 vfiler
echo                lun                 route               vlan
ems                 man                 routed              vmservices
environment         maxfiles            rshstat             vol
exportfs            mt                  sasadmin            vscan
fcadmin             nbtstat             sasstat             wcc
fcnic               ndmpcopy            savecore            wrfile
fcp                 ndmpd               sectrace            ypcat
fcstat              ndp                 secureadmin         ypgroup
file                netdiag             setup               ypmatch
filestats           netstat             shelfchk            ypwhich
flexcache           nfs                 sis
udntap-n2-sas>
 
Old 08-13-2012, 02:41 PM   #14
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143
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?

Last edited by suicidaleggroll; 08-13-2012 at 02:43 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to mount nfs share under rescue in VM vinaytp Linux - Newbie 2 06-12-2010 09:10 AM
Unable to NFS mount .ERROR (mount: RPC: Remote system error - Connection timed) pabba Linux - Networking 3 05-06-2010 01:09 PM
Unable to mount root via NFS devaras Linux - Newbie 1 02-23-2010 10:16 PM
I am unable to mount to nfs server ram_rajavarapu Linux - Enterprise 1 11-17-2008 04:35 AM
Unable to mount via NFS calebsg Linux - Networking 3 03-11-2005 09:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration