multi-tape vdump & vrestore (tz885)

From: lombardi emanuele <lele_at_mantegna.casaccia.enea.it>
Date: Fri, 09 Oct 1998 14:36:52 +0200 (MET DST)

Hi, alpha people!

I'm sorry to bother you with the same matter again, but after succeding
in writing multi-tape backups, I'm not able to restore them !!

As you may recall I asked your help for automatically vdumping across
tapes in a tz885 library. Thanks to your help I did succeded using
expect:

        #!/usr/local/bin/expect
         set timeout -1
         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";exp_continue}
             eof {send_user "\n EOF found ! \n"}
         }
         send_user "\n process $processo ENDED !\n"
 
In this way I do automatically create vbackup savesets which span tapes.
 
Now I have to restore them. Easy, is'nt it?
No, it is not easy at all !!
While vbackup stops and waits for next tape to be mounted,
vrestore does'nt !!

I go to the last file of the first tape and then start the vresore of
the saveset which actually spans 2 tapes:
        vrestore -xf /dev/nrmt2h
        vrestore: Date of the vdump save-set: Fri Oct 2 12:40:47 1998
                Exit the interactive shell without restoring any files.
        unknown command
vrestore actually restores file reached before the EOT, but when EOT
is found the tz885 automatically unloads the tape and loads the
next-one, BUT vrestore does'nt start again restoring files and stays
doing nothing in waiting state (0% CPU)

Another wrong behavevour when using vrestore interactively:
        vrestore -if /dev/nrmt2h
        vrestore: Date of the vdump save-set: Thu Oct 8 14:58:52 1998
        (/) exit

        vrestore: nothing will be restored
        vrestore: unable to forward tape to next file; [5] I/O error
In this case vrestore exits (status=0) and tz885 not even loads next
tape.

Since dd does waits for next tape, I tried to use it, but with no
success:
        dd if=/dev/nrmt2h | vrestore -xf -
        vrestore: Date of the vdump save-set: Thu Oct 8 14:58:52 1998
        vrestore: empty save-set
        vrestore: nothing will be restored
        Segmentation fault


So, dear axp-ists,

Since tz885 has 5 tapes of 40Gb each and my filesystem is 150 Gb, will
I be able to back it up as a whole without having to concern how
to split fsets on each tape ?


Thanks to all the family of dunix manager,

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.
Received on Fri Oct 09 1998 - 12:40:08 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT