* Tar and NFS
@ 1996-06-12 4:00 Aaron McDonough
1996-06-12 4:00 ` Andrew Gierth
1996-06-12 4:00 ` Wolfram Klaus
0 siblings, 2 replies; 5+ messages in thread
From: Aaron McDonough @ 1996-06-12 4:00 UTC (permalink / raw)
Hi,
Does anybody know how to restore files from magnetic tape to an
NFS mounted disk and properly restore uid's and gid's correctly. Using tar
(and gtar) the ownership is set back to nobody(the anonymous NFS user)
instead of the correct users. uid's and gid's are set correctly in the tar
file and match those on the remote system, but the error still occurs.
Does anybody know how to get around this problem?
Any help will be *very much* appreciated.
Cheers,
Aaron.
-------------------------------------------------------------------------
Aaron McDonough E-mail: abm@minyos.its.rmit.edu.au
Applied Physics aaron@bunyip.ph.rmit.edu.au
RMIT WWW: http://thetida.ph.rmit.edu.au/comp-phys/aaron/aaron.html
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Tar and NFS
1996-06-12 4:00 Tar and NFS Aaron McDonough
@ 1996-06-12 4:00 ` Andrew Gierth
1996-06-19 4:00 ` Dwayne Carter
1996-06-12 4:00 ` Wolfram Klaus
1 sibling, 1 reply; 5+ messages in thread
From: Andrew Gierth @ 1996-06-12 4:00 UTC (permalink / raw)
In <4plend$7cf@aggedor.rmit.EDU.AU>,
s9010721@minyos.its.rmit.EDU.AU (Aaron McDonough) writes:
>Hi,
> Does anybody know how to restore files from magnetic tape to an
>NFS mounted disk and properly restore uid's and gid's correctly. Using tar
>(and gtar) the ownership is set back to nobody(the anonymous NFS user)
>instead of the correct users. uid's and gid's are set correctly in the tar
>file and match those on the remote system, but the error still occurs.
>Does anybody know how to get around this problem?
That sounds like the filesystem is not exported with root access to the
client doing the restore - since presumably the restore is being done as
root, all the file accesses are performed as 'nobody' on the server, so
changing the owner may not be allowed.
>Any help will be *very much* appreciated.
Try one of:
- export the filesystem with root access (there are of course security
implications in doing this); see man exports or man exportfs for how
- dd off the tape and pipe it into 'rsh serverhost tar xf -' or some
approximate equivalent
- execute on the server host 'rsh tapehost dd ....' piped into tar xf -
(you get the idea)
There may be other variations on the above themes... :-)
HTH
-- Andrew (andrewg@microlise.co.uk)
"Usenet is like a herd of performing elephants with diarrhea; massive,
difficult to redirect, awe-inspiring, entertaining, and a source of
mind-boggling amounts of excrement when you least expect it." [Gene Spafford]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Tar and NFS
1996-06-12 4:00 ` Andrew Gierth
@ 1996-06-19 4:00 ` Dwayne Carter
1996-06-21 4:00 ` Eric Werme
0 siblings, 1 reply; 5+ messages in thread
From: Dwayne Carter @ 1996-06-19 4:00 UTC (permalink / raw)
To: Andrew Gierth
Hey Andrew!
You sound like a man in the "know".
We're having a hard time getting our Digital Alpha 2100 to "see" our
Novell Netware 3.12 server via NFS. What gives?
We have loaded NFS (we THINK properly) and configured it. We have loaded
the latest fixes (1.2c NFS Fix) and downed the server. When our UNIX man
trys to mount to the Novell volume (/sys3/nfs1) we get thid error:
Cannot mnt PRC: RPC: port mapper failure_RPC:Timeout
It will keep repeating.
We are trying this command (and several variations)
> mount -o nfsv2,port=2049 SRDS_main: /sys3/nfs1 /mnt
Any thoughts?
Dwayne
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Tar and NFS
1996-06-19 4:00 ` Dwayne Carter
@ 1996-06-21 4:00 ` Eric Werme
0 siblings, 0 replies; 5+ messages in thread
From: Eric Werme @ 1996-06-21 4:00 UTC (permalink / raw)
Dwayne Carter <dcarter4@popd.ix.netcom.com> writes:
>We have loaded NFS (we THINK properly) and configured it. We have loaded
>the latest fixes (1.2c NFS Fix) and downed the server. When our UNIX man
>trys to mount to the Novell volume (/sys3/nfs1) we get thid error:
>Cannot mnt PRC: RPC: port mapper failure_RPC:Timeout
This means that the NFS client can't contact the portmap service on the
server to request the port for the mount protocol.
In Unix parlance, you aren't running portmap on the server. I have no
idea what the Novell equivalent is.
If you have packet filter configured, watching the network traffic with
tcpdump can be a big time saver. See the Digital UNIX FAQ for instructions.
--
Eric (Ric) Werme | werme@zk3.dec.com
Digital Equipment Corp. | This space intentionally left blank.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Tar and NFS
1996-06-12 4:00 Tar and NFS Aaron McDonough
1996-06-12 4:00 ` Andrew Gierth
@ 1996-06-12 4:00 ` Wolfram Klaus
1 sibling, 0 replies; 5+ messages in thread
From: Wolfram Klaus @ 1996-06-12 4:00 UTC (permalink / raw)
s9010721@minyos.its.rmit.EDU.AU (Aaron McDonough) writes:
>Hi,
> Does anybody know how to restore files from magnetic tape to an
>NFS mounted disk and properly restore uid's and gid's correctly. Using tar
>(and gtar) the ownership is set back to nobody(the anonymous NFS user)
>instead of the correct users. uid's and gid's are set correctly in the tar
>file and match those on the remote system, but the error still occurs.
>Does anybody know how to get around this problem?
>Any help will be *very much* appreciated.
>Cheers,
> Aaron.
If you tar as root onto a NFS drive, which doesn't export with -root=0
you will be nobody to the NFS server. Solution: Either export the file
system with -root=0 (temporarily) or restore the files directly on the
NFS server machine. In both cases you need root privileges on the
server.
Wolfram
--
Wolfram Klaus (klaus@manuel.physik.fu-berlin.de) FU Berlin, FB Physik
*************************************************************************
************ Linux ... the choice of a GNU generation *******************
*************************************************************************
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1996-06-21 4:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-12 4:00 Tar and NFS Aaron McDonough
1996-06-12 4:00 ` Andrew Gierth
1996-06-19 4:00 ` Dwayne Carter
1996-06-21 4:00 ` Eric Werme
1996-06-12 4:00 ` Wolfram Klaus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox