Problems with tar between local and nfs disk


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Problems with tar between local and nfs disk
# 1  
Old 04-17-2009
Problems with tar between local and nfs disk

Hi,
I am trying to move a local directory from a local disk to a nfs disk that has been shared on another file server. I am using this tar command:

tar cf - . | (cd /export/nfsdisk && tar xpf - )

It copies the data okay but the big problem is that is resets the owner:group to 'nobody'. The acl's are also okay.

Can anyone give me any pointers?

thanks
# 2  
Old 04-17-2009
Try creating a file manually and seeing who owns it, the nfs server may not allow other owners. Otherwise, try 'tar cpf - .' and 'tar xpf -'.
# 3  
Old 04-17-2009
still testing

thanks for the info, I have been doing further testing and it looks like if I run the tar from the server and copy to the nfs disk, the directories and files all show up with 'nobody' as the owner:group. If I pull the disk from the server to the nfs file server by running the tar command on the nfs file server the owner:group are correct.

I thought that NIS would take care of this regardless of which way the tar ran.

System configurations:

Server - Solaris 10 (sparc)
nfs server - Solaris 10 (x86)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

NFS share full access for local user

Hi All, Is it possible to give full access for a normal user in a NFS share? If its not possible is there a trick with which I can make it work? Thanks in advance Shyam (1 Reply)
Discussion started by: shyam2j
1 Replies

2. Red Hat

Understanding local access to NFS export

Hello, I've inherited an NFS setup that allows external servers to write to an NFS share on a Centos box. Here is an example line from /etc/exports (there are four entries that only are different based on server IP adress). /exports/foobar... (4 Replies)
Discussion started by: KickstartUF
4 Replies

3. Red Hat

NFS problems

Hi All, I hoping someone can help me get my NFS working properly. I don't know why I'm having little issues... Overall, NFS is working, therefore, the problem may not be with NFS. I can ssh to remote nodes and view NFS shared directories (/home). Here is the problem, when on a node and I open a... (2 Replies)
Discussion started by: Bic121
2 Replies

4. UNIX for Dummies Questions & Answers

How to check whether file system is local or NFS?

Hi, suppose I have file system path say /foo/bar/baz then how would I find out whether it is local file system or NFS? If it is NFS then I want to find out the host where file system is located. Thanks, Paresh (5 Replies)
Discussion started by: masaniparesh
5 Replies

5. Debian

NFS problems (Debian)

I'm trying to share some directories with NFS among Debian machines. In order to do so, I installed nfs-common and nfs-kernel-server on the server machine. It seemed that starting portmap daemon lasted a long time and I get the following messages in /var/log/messages: Jan 30 18:18:03 masternode... (26 Replies)
Discussion started by: bellman
26 Replies

6. UNIX for Advanced & Expert Users

NFS Problems

I am having a really bad day today. I am trying to get an nfs mount to work. I want to have a mount from machinea:/home going to /home on machineb. I can mount machinea:/home on any mount point EXCEPT /home and see the files. I can not see the files or list the directory (it hangs) when I mount... (17 Replies)
Discussion started by: mbathrick
17 Replies

7. UNIX for Advanced & Expert Users

Linux w/ local admin mounting nfs drives securely?

Got a situation where some people in the network using Linux would like local admin rights. People have admin rights in Windows and the Linux users want more flexibility. They need to be able to mount some nfs drives. If they have local admin rights, even with root squash set for the nfs... (5 Replies)
Discussion started by: Frostybeard
5 Replies

8. Filesystems, Disks and Memory

Local NFS import / re-export using automount?

Hi, Can I do the following: On SunOS 5.8 /etc/vfstab: remote-host:/Volumes/webdata - /export/home/webdata nfs - yes rw,vers=3,soft,intr,bg,timeo=600 In /etc/auto_direct: /home/science $HOST:/export/home/webdata/science /home/science-edu ... (2 Replies)
Discussion started by: bloyall
2 Replies

9. Solaris

Local Printer Problems

I've connected a Sun Sparc Printer E to a Sun Server to print locally. I've gone through and added the printer using the admintool, but nothing will print. Is there some other configuration that needs to take place that I'm overlooking. :o (0 Replies)
Discussion started by: sprite
0 Replies

10. UNIX for Dummies Questions & Answers

some local hosting problems

well, im back, i had everythign working perfectly and i had to reformat, er.. 'initialize', my harddrive. so i tried starting over from the same directions i had before, and some stuff still isnt working. ok 1) after the first time i installed apache, i went int httpd.conf and change all ... (3 Replies)
Discussion started by: cpk0
3 Replies
Login or Register to Ask a Question