NFS Share Setup On AIX


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 03-17-2011
NFS Share Setup On AIX

Hi all,

I have one IBM AIX server (serverA) which is connected to the san storage. I have created a volume group and also file system (jfs2) and mounted to directory /profit.

After that I created a NFS share for that directory and started the NFS daemon.

Over at another server, which is IBM AIX also (serverB), I created a mount point /profit and mounted the nfs share from serverA to serverB using the below command: mount 192.168.10.1:/profit /profit

On serverB, I am able to access the directory and list the files in it. But the strange thing is, on serverA, the directory and files are under the oracle user ownership. But in serverB, i see them as a different user.

When i touch a file in that directory at serverB, on serverA, i see it as another user id.

Any clue how i can fix this?

Below is the file listing from serverB

Code:
$ ls -l
total 0
-rwxrwxrwx    1 root     system            0 Mar 16 15:00 haha
-rwxrwxrwx    1 radiusd  radiusd           0 Mar 16 15:19 haha2
-rwxrwxrwx    1 radiusd  radiusd           0 Mar 16 15:31 haha3
-rw-r--r--    1 oracle   oinstall          0 Mar 17 2011  hahah3
drwxrwxrwx    2 radiusd  radiusd         256 Mar 16 14:40 lost+found

On serverA it looks like below:

Code:
# ls -l /profit
total 0
-rwxrwxrwx    1 root     system            0 Mar 16 15:00 haha
-rwxrwxrwx    1 oracle   dba               0 Mar 16 15:19 haha2
-rwxrwxrwx    1 oracle   dba               0 Mar 16 15:31 haha3
-rw-r--r--    1 10       sshd              0 Mar 17 16:01 hahah3
drwxrwxrwx    2 oracle   dba             256 Mar 16 14:40 lost+found

Below is the /etc/exports file from serverA

Code:
# more /etc/exports
/profit -vers=3,sec=sys:krb5p:krb5i:krb5:dh,rw

Thanks.

---------- Post updated at 05:05 PM ---------- Previous update was at 04:28 PM ----------

I think I may have find out why. It's because the oracle uid and gid in serverA are different from the one in serverB. So i changed the ownership to nobody:nobody.

So, 1 question. When we setup NFS, what's the best practice in terms of directory and file ownerships?
# 2  
Old 03-17-2011
Having consistent uid and gid on all your systems should help, but not only for NFS but any kind of file transfers etc.
NIS/NIS+ or LDAP can help keeping all uids and gids synchronous. Keeping them the same on all systems manually is a valid option too of course.
This User Gave Thanks to zaxxon For This Post:
a_sim (03-21-2011)
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Unable to search NFS Share jgt IP Networking 5 12-21-2018 03:38 PM
Mount NFS Share On NFS Client via bash script. Brian.t Shell Programming and Scripting 4 03-13-2016 11:03 AM
NFS share and groups cjhilinski Red Hat 14 03-11-2015 11:24 AM
Permissions for NFS share Rossdba UNIX for Dummies Questions & Answers 0 08-27-2014 07:58 PM
NFS share mastansaheb Red Hat 1 04-10-2013 04:28 AM
CIFS share re-export NFS prossits AIX 1 06-06-2012 04:22 PM
CIFS share re-export NFS prossits Red Hat 1 06-06-2012 03:12 PM
Ldom Vdisk on NFS Share fugitive Solaris 1 09-06-2011 03:33 AM
du and df do not match on NFS share masterpengu UNIX for Advanced & Expert Users 3 05-09-2011 07:01 PM
How can I setup a NFS server to share with a whole network? krishania Solaris 3 03-04-2011 03:34 AM
NFS- share drive question sam101 Solaris 3 01-25-2011 12:41 AM
Access AIX NFS Share from Windows Server 2008 ThePistonDoctor AIX 6 08-04-2010 06:00 PM
NFs share AIX 6.1 and 5.3 - bug ? - unclefab AIX 1 06-07-2010 12:55 PM
NFS share error rcmrulzz Red Hat 2 05-14-2008 09:05 AM
NFS share options psimoes79 Solaris 6 10-01-2007 03:27 PM