tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: lombardi emanuele <lele () mantegna ! casaccia ! enea ! it>
To: tru64-unix-managers
Subject: multi-tape vdump & vrestore (tz885)
Date: Fri, 09 Oct 1998 12:36:52 +0000	[thread overview]
Message-ID: <96078724211743.tru64-unix-managers.marc@archive.invalid> (raw)



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@mantegna.casaccia.enea.it
 tel	+39 6 30483366 fax	+39 6 30483591

     This transmission was made possible by 100% recycled electrons.

                 reply	other threads:[~1998-10-09 12:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox