[comp.unix.aix] rdump problems with AIX 1.2

gernot@ira.uka.de (Gernot Stenz) (12/12/90)

I have encountered considerable problems trying to dump PS/2 file 
systems to an ExaByte tape drive operated by a remote SUN workstation. 
Issuing the +rdump+ command will yield only a +permission denied+ 
message as a result, unless your machine+s root account is listed in 
the +.rhosts+file of the remote machine+s root account. I found out 
this is because AIX 1.2 uses the old version of the +rdump+ command, 
while on the newer SUN version you can define the dump device as 
+user@machine:device+. AIX +rdump+ will accept the dump device only 
as +machine:device+, invariably attempting to access the root account 
of the remote machine. Scanning the object code of the AIX +rdump+ 
command we found the textual representation of the string +root+. 
Yet, patching this to represent some other four character account 
name did not turn out to be helpful.

The remote machine+s SysAdmin will not give us root permission 
on his machine and mounting our file systems remotely on a SUN via 
NFS will not help either, since dumps can only be performed on 
physically attached file systems.

Are we condemned to back up on our 60 MB tape drive or has 
anyone  encountered the same problem and/or has found a solution? 
Any help will be gratefully appreciated.


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| Gernot Stenz               Tel. (0)721-608-4329        |
| University of Karlsruhe    email: gernot@ira.uka.de    |
| Institute for Logic, Complexity and Deduction Systems  |
| Am Fasanengarten 5         7500 Karlsruhe, FRG         |
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

ejk@uxh.cso.uiuc.edu (Ed Kubaitis) (12/12/90)

Am unfamiliar with PS/2 AIX 1.2, but if the Sun administrator will grant you 
an unprivileged Sun signon, perhaps something like the following might work:

   o Permit the unprivileged Sun signon to rsh as root to the PS/2(/.rhosts)

   o on the Sun: rsh ps2 -l root /etc/dump ... | dd obs=... of=/dev/rmt...

----------------------------------
Ed Kubaitis (ejk@uxh.cso.uiuc.edu)
Computing Services Office - University of Illinois, Urbana

giguere@csg.uwaterloo.ca (Eric Giguere) (12/12/90)

Well, one solution is to use tar and pipe it through a remote shell which
dd's it straight to the tape device.  It's not very elegant, but it does
work.  Here is what I use to dump an AIX tree to the Exabyte off our Sun:

   tar cvBNSf 56 120@517210 - . | rsh host dd of=/dev/rst9 obs=56b

where host is the name of the Sun.  I read the table of contents of the
tar back off the tape from AIX using:

   rsh host -n dd if=/dev/rst9 bs=56b | tar tvBNSf 56 120@517210 -

And of course replacing "t" with "x" will extract the tree.  Dunno what
the optimal blocking factor is, but this works for me.

--
Eric Giguere                                       giguere@csg.UWaterloo.CA
           Quoth the raven: "Eat my shorts!" --- Poe & Groening