Problem restoring files from remote tape drive


 
Thread Tools Search this Thread
Operating Systems Solaris Problem restoring files from remote tape drive
# 1  
Old 06-26-2007
Data 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  
Old 06-26-2007
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  
Old 06-26-2007
Quote:
Originally Posted by lindab
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
# 4  
Old 07-02-2007
Hi blowtorch - I've logged onto server2 and can create a file on the shared folder so I think the permissions must be OK
# 5  
Old 07-02-2007
Tools

"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??
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Using a remote tape drive.

Hello everyone. I googled a little bit, and the best anwers i had were found in this forum. But , unfortunately, they couldn't give me a solution. So i decided to ask the question completely. I have two servers: One RHEL 5 , x64 , with a SCSI DAT72 Tape Drive. Another (the new one), with... (0 Replies)
Discussion started by: pablobhz
0 Replies

2. Shell Programming and Scripting

Restoring problem on tape!

hi all , a messages appeared to me when i was checking my /var/adm/messages and the below code was in it Oct 6 13:15:21 medprod scsi: /pci@3,700000/SUNW,emlxs@0/fp@0,0/st@w21000024ff305234,7 (st1): Oct 6 13:15:21 medprod Restoring tape position at fileno=320,... (5 Replies)
Discussion started by: semaan
5 Replies

3. UNIX for Advanced & Expert Users

How to mount remote tape drive?

Good day all! I need to recover FS from backup, but the thing is that tape drive cable is not compatible with the server's input (tape drive's cable is wide, but at the server input (V240) is tight one). So, I want to connect this tape drive to another Solaris based server and mount tape drive... (3 Replies)
Discussion started by: nypreH
3 Replies

4. Solaris

Backup to remote tape drive

Hello all, I'm trying to backup some files on a solaris 10 machine to the remote tape drive connected to another solaris 10 machine. I have set up rsh to allow for password-less connection between the servers, but I'm not able to write to the tape with the command: root@sdp4a>tar cvf... (1 Reply)
Discussion started by: kerrygold
1 Replies

5. UNIX for Dummies Questions & Answers

How to send files to remote tape drive

We have 2 UNIX machines, 1.HP-UX 11i where oracle database running on it. 2.AIX 5 with Ultrium LTO3 tape drive connected. My query is, i want to send oracle database archive files from HP machine to the tape drive which connected on AIX machine, everyday. These files should be appended. I... (3 Replies)
Discussion started by: yashdbad
3 Replies

6. Solaris

tar on remote tape drive

hello guys, am trying to save a file file1 to a remote tape drive using tar and i get a permission denied error as shown below: server1%tar cvf - file1 | rsh server2 dd of=/dev/rmt/1m conv=sync a file1 1883905K permission denied since server2 requires login username and password, i see in... (3 Replies)
Discussion started by: nom
3 Replies

7. UNIX for Dummies Questions & Answers

Restoring tape files...

Hi all, I have kinda inherited this problem, but was wondering if anyone else had any ideas. Currently all our backup rentention periods are set to 2 weeks, so that we can cycle through tapes (save money etc...). Anyhow the guys next door in IT, decided one day long long ago, that it would... (0 Replies)
Discussion started by: B14speedfreak
0 Replies

8. AIX

Mounting remote tape drive

Hi, Would appreciate if anyone could tell me if it is possible to mount (and use) a remote tape drive on a AIX server, and if so, what are the precise configuration steps needed? The tape drive to be mounted as a remote tape drive is present on another AIX server in the same network. ... (5 Replies)
Discussion started by: dnicky
5 Replies

9. Shell Programming and Scripting

Mounting remote tape drive

Hi, Would appreciate if anyone could tell me if it is possible to mount (and use) a remote tape drive on a AIX server, and if so, what are the precise configuration steps needed? The tape drive to be mounted as a remote tape drive is present on another AIX server in the same network. ... (0 Replies)
Discussion started by: dnicky
0 Replies

10. UNIX for Dummies Questions & Answers

Blocksize problem restoring file from tape

I was recently given the responsibility of the unix box at our work. Without much training, I now have to go back and restore a file from tape. I'm having some trouble with it. I'm getting an error with the blocksize. The part of the script that does the tar looks like this: tar cvfX... (11 Replies)
Discussion started by: citrowske
11 Replies
Login or Register to Ask a Question