nfs mounts, file owners and groups problem

From: Markus Mayer (mymaillists@gmx.at)
Date: Wed Sep 26 2007 - 07:39:08 EDT


Hello all,

I need to transfer a large amount of data (about 730Gb) from one machine to
another and am not able to take anything off line. As an rsync client/server
setup doesn't preserve the file ownership and groups at all, I am trying to
do it using an nfs share. This method is also running into problems.

I have a share on one machine, set up with the following command:
S1# share -F nfs -o ro=<servername>,root=<servername> /share/location
On the second machine, I can mount the share using:
S2# mount -F nfs-o ro <servername>:/share/location /mnt/remoteserver

The problem I run into is that on the first machine, files have thier owner
and group, however on the nfs mount on the second machine, often the owner is
changed to nobody. An example of such a file is:
S1# ls -ln /share/location/dir1/afile
-rw-rw-r-- 1 206 201 1348 Sep 11 2006 afile
On the second machine however, I get:
S2# ls -ln /mnt/remoteserver/dir1/afile
-rw-rw-r-- 1 60001 201 1348 Sep 11 2006 afile

There does seem to be some consistency in this behaviour, all be it strange.
All files on S1 with owner root have their ownership seen as nobody on S2.
For other files, if the file owner on S1 has id 206, the owner is seen as
nobody on S2, however if the owner is 205 or 207, the owner is preserved. On
S1, there is an user entry for id 206, so I put that id on S2, however with
no change in behaviour for ownership preservations.

I'm at an absolute loss as to what's happening here and would be grateful for
any help anyone can give me.

regards
Markus
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:42:21 EDT