NFS Share - chown problem

Hi all,

I had share the server Gemini /u10 to the server Centaurus.
/etc/dfs/dfstab

share -F nfs -o root=centaurus /u10

My problem is:
in the server Gemini the the owner for /U10 is oracle:dba
but when in the server Centaurus, I am not able to change the owner become oracle:dba, it show me oracle:nobody in Server Centaurus.

Server Gemini
drwxr-xr-x   4 oracle   dba          512 Aug  3 08:26 u10

/etc/group
dba:*:101:root,oracle,ora10g
Server Centaurus
drwxr-xr-x   4 oracle   nobody       512 Aug  3 08:26 u10

etc/group
dba::101:oracle,ora10g,mysql,lss

How i need to do,to change the owner become oracle:dba for /u10 in server Centaurus?

Please checkthe GID of the dba group in both the servers.

My guess is that the "nobody" user in centauras is having the same GID of the "dba" user in Gemini.

Usually group permissions are set based on the name maching the GID of the NFS share directory on the client side.

If this is the case, simply you can change the GID in the NFS client in /etc/group

Regards
Ramkumar

Thanks for ur reply.
below is the both /etc/group

Gemini

root::0:
other::1:root
bin::2:root,daemon
sys::3:root,bin,adm
adm::4:root,daemon,pongla
uucp::5:root
mail::6:root
tty::7:root,adm
lp::8:root,adm
nuucp::9:root
staff::10:
daemon::12:root
sysadmin::14:pongla
smmsp::25:
gdm::50:
webservd::80:
postgres::90:
nobody::60001:
noaccess::60002:
nogroup::65534:
sasl::100:
dovecot::104:
nagios::102:
nagioscm::103:nagios
dba:*:101:root,oracle,ora10g

Centaurus

root::0:
other::1:root
bin::2:root,daemon
sys::3:root,bin,adm
adm::4:root,daemon
uucp::5:root
mail::6:root
tty::7:root,adm
lp::8:root,adm
nuucp::9:root
staff::10:
daemon::12:root
sysadmin::14:
nobody::60001:
noaccess::60002:
nogroup::65534:
smmsp::25:
gdm::50:
webservd::80:
postgres::90:
users::100:
onsite::105:
softdev::102:lss,dss,netsys,css,scss,amts,packout,dcm,arch,hsa,eco,ecoman,can
guest::102:devp,guest
oper::103:coherent,brtv,oracle
dba::101:oracle,ora10g,mysql,lss
ftp::30000:ftp,coherent,brtv
sib::60090:tibco,patrol
systems::60095:harvest

The nobody have the different GID.. any idea?

---------- Post updated 08-05-09 at 08:25 AM ---------- Previous update was 08-04-09 at 11:55 AM ----------

Hi all , the problem solve
solution: unshare the filesystem, and redo again the prosess to share the filesystem.

Are you using any naming services? Please post your /etc/nsswitch.conf from both machines.

Centaurus and geminy are likely on different NFSv4 domains, probably because they have a different DNS domain defined in /etc/resolv.conf. In such case, groups ids are ignored as they might not match.

You can force the domain on both servers by setting NFSMAPID_DOMAIN in /etc/default/nfs.

Search NFSMAPID_DOMAIN in "man nfs" for details.

Both the resolv.conf have the same domain.:slight_smile:

These boxes are very likely on different NFSv4 domains. That would explain the group being ignored. Don't focus on resolv.conf and fix your configuration if you want this to be corrected.

check the nfs version on both nodes.
nfsstat -a or nfsstat -m <mount point name>
If they differ between the 2 systems, mount them using the same NFS verison and try
mount -F nfs -o vers=3 hostname:directory mountpoint

This issue is obviously related to NFSv4 being used. I don't get what you mean by different versions at both sides. A single protocol can be used for this mount, it can't be mixed.

Downgrading to NFSv3 will fix the problem but it would be better in my opinion to properly configure NVSv4.