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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-13-2012, 05:09 AM
|
#1
|
LQ Newbie
Registered: Aug 2012
Posts: 8
Rep:
|
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.
|
|
|
08-13-2012, 09:44 AM
|
#2
|
Member
Registered: Dec 2007
Location: India
Distribution: fedora 11
Posts: 64
Rep:
|
Hello,
what is the FileSystem Type?
Regards,
maniannam
|
|
|
08-13-2012, 01:40 PM
|
#3
|
LQ Newbie
Registered: Aug 2012
Posts: 8
Original Poster
Rep:
|
Hello,
Filesystem is NFS.
Regards.
|
|
|
08-13-2012, 01:47 PM
|
#4
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
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.
|
|
|
08-13-2012, 01:52 PM
|
#5
|
LQ Newbie
Registered: Aug 2012
Posts: 8
Original Poster
Rep:
|
Very sorry to say but strangely the FS in NFS stands for file system. That makes it a filesystem doesn't it?
|
|
|
08-13-2012, 01:54 PM
|
#6
|
LQ Newbie
Registered: Aug 2012
Posts: 8
Original Poster
Rep:
|
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.
|
|
|
08-13-2012, 01:54 PM
|
#7
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
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.
|
|
|
08-13-2012, 01:58 PM
|
#8
|
LQ Newbie
Registered: Aug 2012
Posts: 8
Original Poster
Rep:
|
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
|
|
|
08-13-2012, 01:59 PM
|
#9
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
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.
|
|
|
08-13-2012, 02:11 PM
|
#10
|
LQ Newbie
Registered: Aug 2012
Posts: 8
Original Poster
Rep:
|
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>
|
|
|
08-13-2012, 02:21 PM
|
#11
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
You could try running "mount"
|
|
|
08-13-2012, 02:24 PM
|
#12
|
LQ Newbie
Registered: Aug 2012
Posts: 8
Original Poster
Rep:
|
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>
|
|
|
08-13-2012, 02:25 PM
|
#13
|
LQ Newbie
Registered: Aug 2012
Posts: 8
Original Poster
Rep:
|
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>
|
|
|
08-13-2012, 02:41 PM
|
#14
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
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.
|
|
|
All times are GMT -5. The time now is 09:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|