Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to access a tape drive on Solaris 2.5

Status
Not open for further replies.

gn00kie

MIS
Jun 7, 2006
9
PH
Hi, our client have 2 Solaris boxes having Solaris 2.5 OS. A tape drive is attached to machine 1. What the customer wants is to access that tape drive using machine 2. When we try to do it, using this syntax, tar tvf remote_machine:/dev/rmt/0, we encounter a device not exist error. When accessing the tape drive locally, it has no problem. Any solution for this problem? TIA
 
I don't think tar supports that remote host syntax. You may be thinking of ufsdump, which does?

Annihilannic.
 
are there no other way where in i can pipe it with rlogin?how to do it using ufsdump?
 
Hmm, what is the customer trying to do, back up or restore?

ufsdump is the command to back up, ufsrestore is the command to restore.

To do the equivalent of what you were doing:

[tt]ufsrestore tf remotehostname:/dev/rmt/0[/tt]

However obviously it would have to be a ufsdump backup on the tape to read it.

Yes, you could use rsh, e.g.

[tt]rsh remotehost dd if=/dev/rmt/0 | tar tvf -[/tt]

Annihilannic.
 
Beware that the ufsrestore might (I can't recall, but seem to have a nasty feeling) restore the files on the remote machine, not the one the ufsrestore is issued from. This might not be what you want!

Alan Bennett said:
I don't mind people who aren't what they seem. I just wish they'd make their mind up.
 
Not with the command I quoted...? If you did an rsh remotehost ufsrestore ... then of course it might?

Annihilannic.
 
Sorry, Anni, I can't remember the exact circumstances, but it is entirely possible that I mangled the command anyway!!

Alan Bennett said:
I don't mind people who aren't what they seem. I just wish they'd make their mind up.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top