1847203 Members
2934 Online
110263 Solutions
New Discussion

Problem with TAR

 
DK Raviraja
Occasional Advisor

Problem with TAR

Hello

I have a DLT 40/80 Tape. I wanted to restore thae content through remote machine. ( I dnt have DLT drive in the system where I wnat t restore). I used followng command
rsh i3sn03 dd if=/dev/rmt/2b | tar -xvf -

read: Not enough space
0+0 records in
0+0 records out

where i3sn03 is tha m/c where DAT drive is attched.

I always get not enough memory Why.

I added 1G swap but it gave same error
DLT has about 25G data. My Mount point has 35G fre space.

Can anybody help me


DKR
Mera Bharath Mahan
6 REPLIES 6
Dan Hetzel
Honored Contributor

Re: Problem with TAR

Hi,

The command should work if you use 'remsh' as in:
remsh i3sn03 -n "dd if=/dev/rmt/2b" | tar -xvf -

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
DK Raviraja
Occasional Advisor

Re: Problem with TAR

No Luck Friend !

DKR
Mera Bharath Mahan
Mike Williams_3
Advisor

Re: Problem with TAR

Have you confirmed you can run a trivial command on the remote system? eg remsh hostname ls

If that doesn't work try looking at ~/.rhosts

If that works you might try GNU tar which has remote tarring via rmt. You would need to install on both systems and make sure you have it in the PATH first.

In my experience remote tarring is always a bit suspect. Have you thought of remote mounting the target via NFS?
Dan Hetzel
Honored Contributor

Re: Problem with TAR

Hi,

Providing remote commands work (.rhosts files OK), try the following:

remsh i3sn03 -n "dd if=/dev/rmt/2b bs=10K" | tar -xvf -

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Shannon Petry
Honored Contributor

Re: Problem with TAR

I have a interactive script I wrote for users to use any tape device on the network. It simply uses
> /usr/bin/remsh $HOST '/usr/bin/dd -if=/dev/rmt/c?t?d? bs=512b | /usr/bin/tar xvf -'

The problem in HP-UX is "rsh" is restricted shell, and will not work.

Depending on the topology of the network, you could try to add a "-n" to the remsh command.

> /path/remsh -n $HOST 'dd ...'

man remsh should give more.

As long as you can make the TCP/IP connection to the host, there should be no problem with this.


Regards,
Shannon
Microsoft. When do you want a virus today?
Carlos Fernandez Riera
Honored Contributor

Re: Problem with TAR

I agre DAN.

remsh i3sn03 -n "dd if=/dev/rmt/2b ibs=10K" | tar -xvf -

may run
_____

No points for me , thank you.

unsupported