Need Help -- Backup FreeBSD to Solaris/SunOS

Need Help -- Backup FreeBSD to Solaris/SunOS

Post by Kevin Mahe » Wed, 22 Jan 1997 04:00:00



I have a 486 running FreeBSD 2.1.5 which has no tape device.  I
would like to back up this machine via the network to my Sparcstation
running Solaris 2.5.  I've got scripts that backup my other sparcs
using the RDUMP utility (called ufsdump under Solaris).  HOwever,
the rdump under FreeBSD starts out just fine, but fails with this
output:

---------------------------------------------------------------------

  DUMP: Date of this level 0 dump: Tue Jan 21 14:32:26 1997
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/rsd0a (/) to /dev/rmt/1h on host

  DUMP: mapping (Pass I) [regular files]
^C  DUMP: Interrupt received.
  DUMP: Do you want to abort dump?: ("yes" or "no") no
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 15149 tape blocks on 0.00 tape(s).
  DUMP: Protocol to remote tape server botched (code "rmt: Command not
found").
rdump: Lost connection to remote host.
  DUMP: Bad return code from dump: 1
--------------------------------------------------------------------

Any help in getting this setup would be appreciated.

 
 
 

Need Help -- Backup FreeBSD to Solaris/SunOS

Post by J Wuns » Sun, 26 Jan 1997 04:00:00



> I have a 486 running FreeBSD 2.1.5 which has no tape device.  I
> would like to back up this machine via the network to my Sparcstation
> running Solaris 2.5.
>   DUMP: Protocol to remote tape server botched (code "rmt: Command not
> found").

4.4BSD made one big mistake wrt. to all this remote dump stuff.
According to the new filesystem layout, they moved out the old rmt(8)
utility from its traditional place under /etc to the new location
under /usr/sbin.  That's ok.

However, they now noticed the dilemma: /sbin/rdump needs to reference
rmt(8) on the _remote_ machine.  The path used to be hardcoded as
/etc/rmt there, but this was now no longer appropriate for a 4.4BSD
machine.  Moving this path to /usr/sbin/rmt would have broken remote
dumping to other systems though.  Hence they made the `wise'
decisision to no longer encode any path there, in the hope the remote
side would successfully lookup the name along $PATH.  As you can see,
it often doesn't.

FreeBSD has now finally reverted everything as it ought to be, in the
understanding that the (undocumented but historic) rmt protocol can
only work by using /etc/rmt.  Any system must be expected to symlink
its real rmt(8) into /etc.

However, this change on the side of dump(8) has only been made in
2.2-current, not in the 2.1.x branch.  The patch is fairly simple
though.  The second diff below allows to override the remote side's
rmt(8) location from the env variable RMT.

Index: /usr/src/sbin/dump/pathnames.h
===================================================================
--- pathnames.h 1994/05/26 06:34:03     1.1

 #define        _PATH_LOCK      "/tmp/dumplockXXXXXX"
-#define        _PATH_RMT       "rmt"
+#define        _PATH_RMT       "/etc/rmt"

Index: /usr/src/sbin/dump/dumprmt.c
===================================================================
RCS file: /home/cvs/src/sbin/dump/dumprmt.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -u -r1.1 -r1.2
--- dumprmt.c   1994/05/26 06:34:04     1.1

 rmtgetconn()
 {
        register char *cp;
+       register const char *rmt;
        static struct servent *sp = NULL;
        static struct passwd *pwd = NULL;

                rmtpeer = ++cp;
        } else
                tuser = pwd->pw_name;
+       if ((rmt = getenv("RMT")) == NULL)
+               rmt = _PATH_RMT;
        rmtape = rcmd(&rmtpeer, (u_short)sp->s_port, pwd->pw_name, tuser,
-           _PATH_RMT, (int *)0);
+           rmt, (int *)0);
        size = ntrec * TP_BSIZE;
        if (size > 60 * 1024)                /* XXX */

--
cheers, J"org


Never trust an operating system you don't have sources for. ;-)

 
 
 

1. need help setting up DNS backup s erver and FTP on SunOS

Hi

a friend of mine who has a small company and uses only WinNT asked me if I
can help him setting up a backup DNS server on his little sun box, which
runs SunOS and is unused ( nobody ever uses Unix there)
Well, I know some Unix but I never installed a DNS server on a Unix machine
and I don't even know where to start and how the fact that all the other
machines are NT might effect what I do.
They also want to set up FTP on the sun box. I need suggestions and advice
how and where to start.

Thanks so much, please e-mail me

claus

2. What do I need for recompiling the kernel?

3. need help setting up backup DNS server and FTP on SunOS

4. Linux Mandrake PPC problem with G3 Blue and White

5. need help setting up DNS backup server on SunOS

6. CD Performance under X Windows

7. Help: SunOS 4.1.3 (Solaris 1.0) VS SunOS 4.1.1

8. Linux Newbie needs help in Backing up Linux system to floppies !

9. Need Help on Timing Measure in SunOS or Solaris

10. help needed on runing SunOS 4.1.3 and Solaris 2.3 on one machine

11. Need help on detecting floppy drive in Solaris/SunOS system!

12. Timing measure in SunOS or Solaris (Need HELP)

13. Help needed with perl 4.036 on SunOS 5.3 (solaris 2.3)