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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Savevg

Status
Not open for further replies.

redwings

MIS
Aug 6, 2001
93
0
0
US
Is there a command for the savevg that will only keep the filesystem information without backing up all the files. I do a regular backup but I would just like to run a savevg to save the filesystem information and then restore that and then restore the data.

Thanks.
 
man mkvgdata

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
When restoring this, would you just do a restvg and point to vg.data file or is there something else that needs to be done?
 
Hi

I think that you are wanted for a map to restore unknows files if a day you lost your server... BUT, i think that you must to have a recent mksysb. (Regenerated after all filesystems modifications ! expand FS => mksysb ... always !). the last mksysb provides normally informations which you need.

Regards
Denis
 
This is what we do for disaster recovery

To save the information about your vg use this command:
savevg -f /tmp/xxxx -v -i -e xxxx

The xxxx is the name off your vg. This saves only the information about the vg and not the data

Then make an mksysb

In case of an recovery you need to restore the mksysb and then do the restvg command to restore the vg. Then restore the data.

Marcel
 
Marcel,

When running the command that you stated, it tries to copy all the files into that file that is created.

Thanks,
Bill
 
Bill,

When i run the command this is the result:

# savevg -f /tmp/oravg1 -v -i -e oravg1

Creating information file for volume group oravg1.

Creating list of files to back up.?*+ not preceded by valid expression.


Backing up 6 filesBacking up to /tmp/oravg1.
Cluster 51200 bytes (100 blocks).
Volume 1 on /tmp/oravg1
a 98 ./tmp/vgdata/vgdata.files118914
a 98 ./tmp/vgdata/vgdata.files
a 3647 ./tmp/vgdata/oravg1/filesystems
a 0 .
a 2260 ./tmp/vgdata/oravg1/oravg1.data
a 331 ./tmp/vgdata/oravg1/backup.data
The total size is 6434 bytes.
Backup finished on Fri Aug 4 07:16:37 2006; there are 100 blocks on 1 volumes.

0512-038 savevg: Backup Completed Successfully.
#

It writes an file /tmp/oravg1 and if you look in /tmp/vgdata/oravg1 you will see there the information what you need to recreate your vg.

In case of an total disaster you need to restore the rootvg, then recreate the vg whith this command
restvg -q -f'/tmp/oravg1'
and restore your data.
In other cases you only need the restvg command

Marcel
 
This is the script we daily run. The tape goes to another location.

#!/usr/bin/ksh

##########################################
# #
# By Marcel Bogaard #
# #
# Make first an savevg of all your vg’s #
# (not rootvg) and then an mksysb #
# #
##########################################



HOSTNAME=`hostname`
LOGFILE=/tmp/bcksys.$HOSTNAME

mailadres="root"
user1="xxxx@yyy.com"
user2="aaaaa@yyy.com"
"


echo " " > $LOGFILE
echo "BACKUP rapportage : $(date +%d%m%y)" >> $LOGFILE
echo "Results $(hostname -s) (machine id $(uname -m))\n" >> $LOGFILE


echo make the savevg’s of all you vg’s (not rootvg)


savevg -f /tmp/aaavg1 -v -i -e aaavg1 >> $LOGFILE
savevg -f /tmp/bbbvg2 -v -i -e bbbvg2 >> $LOGFILE
savevg -f /tmp/cccvg3 -v -i -e cccvg3 >> $LOGFILE

echo Now we do the mksysb

sleep 5
mksysb -i -e -p /dev/rmt0 >> $LOGFILE

echo we are done. Please remove the tape.

sleep 5

echo mail the results

mail -s "MKSYSB $HOSTNAME" -c "$user1 $user2" $mailadres < $LOGFILE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top