Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List vg backup 1

Status
Not open for further replies.

Diogo

Technical User
Mar 22, 2001
143
PT
Hi.

I'm doing a backup of two volume group's to two tapes.
The first backup take, the first tape and a little of the second, and the second takes a little of the second tape.

The command i use to make the backup is:
/usr/bin/savevg -Xif'/dev/rmt0.3' ssavg
/usr/bin/savevg -Xif'/dev/rmt0.1' fastvg

How can i make the listvgbackup to see the contents of the second backup?

I'd tried "/usr/bin/listvgbackup -s 2 -f'/dev/rmt0.3'", but it doesn't work.

Can some one help me?

Thanks any way...

DR
 
maybe I am wrong, but maybe 'restore' command is you are looking for?

restore -T...
 
Hello.

I don't think so.
To list or to restore files from a savevg, i have to use the listvgbackup or restorevgfiles commands.

To the first command (/usr/bin/savevg -Xif'/dev/rmt0.3' ssavg) i can read them, but to the second (/usr/bin/savevg -Xif'/dev/rmt0.1' fastvg) i don't know to do that.

I need to see if i have one file in the fastvg volume group, and them restore him, but i don't know how.

Thanks any way.

DR
 
try the following:

mount second tape in drive

tctl -f /dev/rmt0.1 rewind # rewind the tape

tctl -f /dev/rmt0.1 fsf 1 # skip last part of your first (ssavg) savevg image

Your second tape is then positioned at beginning of its 2nd tapefile, which should be the beginning of your fastvg savevg image.

then do

listvgbackup -s -f /dev/rmt0.1

to get the list of files in the fastvg savevg image.

You may have to experiment a bit with the number of tapefiles to skip with "tctl fsf". I don't know off-hand if savevg writes a final tapefile after it backs up the files, but I did a quick scan of savevg script and my guess is "tctl fsf 1" would do the trick.


HTH,

p5wizard
 
Thanks.

It's just that.

DR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top