My previous inquiry concerned sharing a tape drive between machines in a
SunOS 4.X environment. The question was originally asked because I had been
lead to believe that the tape drive had been previously shared. This was
NOT the case. Backups were handled by having a subdirectory from the second
machine mounted on the server, therefore all backups were actually run on
the server. This is, of course, not the correct way to do things because
the server and the second machine have cross mounted directories (i.e. each
machine is mounting something from the other machine.) I know, but it is not
an install that I created, I only get stuck with the consequences.
Regardless, if you wish to share a tape under SunOS 4.X, well, you
can't, not directly. However, several commands DO allow you a method
to send things to a remote tape drive. Below I have include may examples
which members of the list were very kind to send to me.
Thank you again for the quick and accurate assistance.
Thomas \:)
#
#---reads writes from: local 1/4" tape to 1/4" remote tape.
#
% dd if=/dev/rst0 bs=126b | rsh <remotesystemname> dd of=/dev/rst0 bs=126b
#
#---reads and writes from: remote tape to local tape.
#
% rsh <remotesystemname> dd if=/dev/rst0 bs=126b | dd of=/dev/rst0 bs=126b
#
#---reads and writes from: local disk to remote tape.
#
% tar cvfb - 20 <filenames> | rsh <remotesystemname> dd of=/dev/rst0 obs=20b
#
#---reads ands writes from: remote tape to local disk.
#
% rsh <remotesystemname> dd if=/dev/rst0 bs=126b | tar -xvpBfb - 126 <filenames>
#
#---reads ands writes from: remote tape to local disk. (different diredctory)
#
rsh <remotesystemname> dd if=/dev/rst0 bs=126b | (cd <newdir> ; tar -xvpBfb - 126)
#
#---reads ands writes from: remote disk to local tape.
#
% rsh <remotesystemname> tar cvfb - 126 <filenames> | dd of=/dev/rst0 obs=126b
#
#---reads and writes from: local tape to remote disk.
#
% dd if=/dev/rst0 bs=126b | rsh <remotesystemname> | tar -xvpBfb - 126 <filenames>
#
#---reads and writes from: remote disk to local disk (same directory).
#
% rsh <remotesystemname> tar -cvfbB - 1000 <filenames> | tar -xvfbBp - 1000
#
#---reads and writes from: remote disk to local disk (different directory).
#
% rsh <remotesystemname> cd <directory> ; tar -cvfbB - 1000 <filenames> | (cd <newdir> ; tar -xvfbBp - 1000)
#
#---reads and writes from: local disk to local disk (different directory).
#
cd <directory>
tar -cvfbB - 1000 <filenames> | (cd <newdir> ; tar -xvfbBp - 1000)
#
#---reads and writes from: local disk to remote disk (different directory).
#
cd <directory>
tar -cvfbB - 1000 <filenames> | rsh <remote-system> "(cd <newdir> ;tar -xvpBfb - 1000)"
See tar(1) and dd(1). Also see bar(1).
==============================================================================
ufsdump 0ubsdfn 126 6000 840000 server:/dev/nrst8 /path
The key point being the syntax "server:/dev/drive".
I have the client in /etc/hosts.equiv on the server
to facilitate permission. If the client is also
sunos 4.1.x, use rdump instead.
==============================================================================
The rdump command will allow any machine to dump to another machine
==============================================================================
You can't, at least not with NFS. You can:
use dump/restore options to access a remote tape dreive.
use a pipe -- tar -cBf - |rsh otherhost dd of=tape bs=20k
tar(1) man page gives better examples.
if you really want to ... try RFS (rfs(4) - remote file sharing),
it is supported on Sun OS, but not Solaris.