Hi,
The answer to my question (see at the end of this mail) is that tk885
can be used to write multitape vdump savesets because when the End Of
Media is reached on a tape the tz885 itself change the tape
automatically placing into the drive the tape from the next slot (if
not empty).
The problem is that vdump is NOT aware of the change and it asks the
user as follows:
...
...
vdump: Status at Thu Oct 1 11:56:35 1998
vdump: Dumped 2222213016 of 7473356523 bytes; 29.7% completed
vdump: Dumped 20 of 32 directories; 62.5% completed
vdump: Dumped 1714 of 2342 files; 73.2% completed
vdump: Change Tapes: Mount tape# 0002
vdump: Press RETURN when tape is mounted...
At this time the next tape is already mounted in the drive, so its
enough to press RETURN !
To do the vdump automatically (with no human interventation) we need to
use expect (
http://expect.nist.gov) which needs Tcl 8.0 and Tk 8.0
(beware that Tcl & Tk releases 8.1 don't work!)
Once you have succesfully installed Tcl, Tk and expect you can
let expect to execute something like that:
#!/usr/local/bin/expect
log_file -noappend -a mylog.log
spawn /sbin/vdump -0f /dev/nrmt2h /clone
set processo $spawn_id
send_user "\n started process $processo\n"
expect {
"vdump: Press RETURN when tape is mounted..." \
{send_user "\n it asked for next tape\n";sleep 60;send "\r"}
eof {send_user "\n EOF found ! \n"}
}
send_user "\n process $processo ENDED !\n"
I did run all that from cron.
Please NOTE that vdump waits for next tape to be placed on the drive,
BUT dd does'nt. So the above procedure CANNOT be used to backup
remote fset via rsh as follows:
/sbin/vdump 0ubf 64 - /clone | rsh myhost "dd of=/dev/nrmt2h bs=65536"
BTW any suggestion about that ??
Thanks & greetings to:
"Dr. Tom Blinn, 603-884-0646" <tpb_at_doctor.zk3.dec.com>
alan_at_nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Jim Belonis <belonis_at_dirac.phys.washington.edu>
Greetings to all the axp family,
Emanuele
--
Emanuele Lombardi
mail: AMB-GEM-CLIM ENEA Casaccia
I-00060 S.M. di Galeria (RM) ITALY
mailto:lele_at_mantegna.casaccia.enea.it
tel +39 6 30483366 fax +39 6 30483591
This transmission was made possible by 100% recycled electrons.
> Dear axp-ists,
>
> I just buyed a tz885 DLT tape drive with 5 slots.
> I installed it on my Dunix 4.0d alpha server ,
> BUT
> I'm not able to make a vdump which automatically changes the tapes when
> the end of one is reached.
>
> I've succesfully installed Media Robot Utility V1.2 and the
> SCSI CAM Medium Changer Driver V3.1C (CLCMC313 subset).
> The robot and xrobot commands works perfectely and I can move tapes
> from each slot to the drive and viceversa.
>
> I made 2 devices:
> /dev/mc20b which is the changer
> /dev/rmt2h which is the tape drive
>
> I make dumps as follows:
> vdump 0f /dev/nrmt2h /fileset
>
> but end of media is reached at th end of the tape which is actually
> loaded in the drive. There is not AUTOMATIC moving of tapes from the
> next slot to the drive!
>
> here what I get from scu
>
> scu show edt bus 2
>
> CAM Equipment Device Table (EDT) Information:
>
> Device: TZ885 Bus: 2, Target: 4, Lun: 0, Type: Sequential Access
> Device: TZ Media Changer Bus: 2, Target: 4, Lun: 1, Type: Medium Changer
>
> If I try to vdump to /dev/mc20b device I get errors
> write error: No such device
>
> vdump: unable to write to save-set; [19] No such device
>
> Any suggestion ?
>
> Thanks to all from Italy,
>
> Emanuele
>
Received on Fri Oct 02 1998 - 13:50:27 NZST