The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to send files to remote tape drive yashdbad UNIX for Dummies Questions & Answers 3 12-29-2007 06:33 AM
tar on remote tape drive nom SUN Solaris 3 03-28-2007 07:13 AM
Restoring tape files... B14speedfreak UNIX for Dummies Questions & Answers 0 03-09-2007 07:45 AM
Mounting remote tape drive dnicky Shell Programming and Scripting 0 11-14-2006 04:33 AM
Blocksize problem restoring file from tape citrowske UNIX for Dummies Questions & Answers 11 10-17-2005 01:22 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-26-2007
Registered User
 

Join Date: Jun 2007
Posts: 4
Stumble this Post!
Unhappy Problem restoring files from remote tape drive

Server 1 - Sun Solaris 5.8 sparc SUNW,Sun-Fire-480R with attached DLT tape drive /dev/rmt/0n
Server 2 - Old DG-UX box which has restore command on it compatible with the files on the backyup tape - backed up with dump2
Server 3 - Sun solaris 5.9 sparc SUNW,Sun-Fire-V490 with lots of free space to bring back files from backup tape.
Server 1 has run the command mt -f /dev/rmt/0n fsf 1 to move tape drive onto first dump on tape.
Server 3 has shared an area of disk space
Server 2 can get onto the shared space and from this working directory issues the command restore rf server2:/dev/rmt/0n
Getting permission denied error

Any ideas how to get around this?
Can't access the information on tape using ufsrestore or vxrestore as backup tape was created using dump2 (DG_UX)
Have .rhosts files on all servers with "servername root" for each server.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-26-2007
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,325
Stumble this Post!
How is this server2 accessing the shared directory? Is it mounted via NFS? If it is, is the export from server3 done with write permissions for server2? Note that you will have to explicitly allow server2 to write to the exported filesystem.
Reply With Quote
  #3 (permalink)  
Old 06-26-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Stumble this Post!
Quote:
Originally Posted by lindab View Post
Server 2 can get onto the shared space and from this working directory issues the command restore rf server2:/dev/rmt/0n
Getting permission denied error
...

Have .rhosts files on all servers with "servername root" for each server.
I think you are on the right track "rmt" is "remote magnetic tape" and is normally called through "rsh" or similar. The .rhosts file should be the right approach, of course there are a number of permissions you need to check...

1. the permission to invoke rsh on the target host as the given user

2. the permission to access the tape

The first one can be tested by trying to run 'pwd', eg 'rsh -n server pwd'.

The second can be tested by login on to the box as the user the rsh will execute as and checking the rights of the magnetic tape, eg can you do

dd if=/dev/rmt/0n of=/dev/null
Reply With Quote
  #4 (permalink)  
Old 07-02-2007
Registered User
 

Join Date: Jun 2007
Posts: 4
Stumble this Post!
Hi blowtorch - I've logged onto server2 and can create a file on the shared folder so I think the permissions must be OK
Reply With Quote
  #5 (permalink)  
Old 07-02-2007
Registered User
 

Join Date: Jun 2007
Posts: 4
Stumble this Post!
Cool

"The first one can be tested by trying to run 'pwd', eg 'rsh -n server pwd'. "

We seem to have a problem here from server 2 as root I can rsh to Server3 but not Server1
However from Server3 I can rsh to both Server1 and Server2
/etc/hosts on each machine has entries for the others
/.rhosts on each server has entries for the other servers

What else would be controlling ability to rsh??
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0