The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > 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 10:33 AM
tar on remote tape drive nom SUN Solaris 3 03-28-2007 11:13 AM
Restoring tape files... B14speedfreak UNIX for Dummies Questions & Answers 0 03-09-2007 11:45 AM
Mounting remote tape drive dnicky Shell Programming and Scripting 0 11-14-2006 08:33 AM
Blocksize problem restoring file from tape citrowske UNIX for Dummies Questions & Answers 11 10-17-2005 05:22 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-26-2007
lindab lindab is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 4
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.
  #2 (permalink)  
Old 06-26-2007
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
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.
  #3 (permalink)  
Old 07-02-2007
lindab lindab is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 4
Hi blowtorch - I've logged onto server2 and can create a file on the shared folder so I think the permissions must be OK
  #4 (permalink)  
Old 06-26-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
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
  #5 (permalink)  
Old 07-02-2007
lindab lindab is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 4
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??
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:09 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0