Greetings, amanda-users.
I apologize if this topic has been discussed recently
(beaten to death, I am sure....) but I did too good a job
of delegating, and my colleague who set up our backups is away.
(and I didn't start reading this list when amanda was working
well for us :-)
We use a script to run amanda to back up 4 systems.
We have recently made a few changes/moves in our environment
which changed some IP addresses, so I suspect that may
have caused our recent backup failures. I am trying to verify
that I have set things up so the backups will work correctly again,
and so I can confirm that they worked.
I changed IP addresses so that amcheck seems to work sporadically
(output included, then question continues below)
==== _root@s20_[/var/backup]:> /var/download/amanda/server-src/amcheck csd
==== Amanda Tape Server Host Check
==== /var/dumps/amanda: 574264 KB disk space available, that's plenty.
==== WARNING: skipping tape test because amdump or amflush seem to be running;
==== WARNING: if they are not, you must run amcleanup.
==== Server check took 0.009 seconds.
==== Amanda Backup Client Hosts Check
==== --------------------------------
==== WARNING: eprod: selfcheck request timed out. Host down?
==== Client check: 6 hosts checked in 30.266 seconds, 1 problem found.
====
==== (brought to you by Amanda 2.4.1p1)
==== _root@s20_[/var/backup]:> ping eprod
==== eprod is alive
==== _root@s20_[/var/backup]:>
I think I also have a problem with the script we run through crontab
(The script appears below)....I think that the script does not correctly
erase the tape label and relabel it...because I got an error "cannot overwrite active
tape edgd128".
What I would like help with for now is simple "relabel" logic so that this script will
work
until my colleague comes back and we can review the config together.
I am including the script and the contents of /usr/local/etc/amanda/csd/tapelist and
disklist
Thanks all
Seth
_root@s20_[/var/backup]:> cat backup_systems
#!/usr/bin/perl -w
open(STDERR,">&STDOUT") || die "Could not open stderr\n";
$| = 1;
$Date = `date`;
$Day = (localtime)[3];
$Mon = ((localtime)[4] + 1);
print "\n\n script $0\n starting...$Date\n";
$ext="edgd".$Mon.$Day;
`/var/download/amanda/server-src/amcheck csd >/var/backup/amcheck`;
$count = `grep edgd /var/backup/amcheck|wc -l`;
$string = `grep edgd /var/backup/amcheck`;
$label = substr($string, 5,8);
chop $label;
if ( $count = 1)
{
`/var/download/amanda/server-src/amrmtape csd $label`;
`/var/download/amanda/server-src/amlabel csd $ext`;
}
else
{
`/var/download/amanda/server-src/amlabel csd $ext`;
}
system('/var/download/amanda/server-src/amdump csd');
`/var/download/amanda/server-src/amverify csd 2> /var/backup/amverify.$Day`;
`rm /var/backup/amcheck`;
_root@s20_[/var/backup]:>
_root@s20_[/usr/local/etc/amanda/csd]:> cat disklist
# A SPARCstation 1+
##### VCS DISKS ######
prod /dg/dghome nocomp-root
qa1 /dg1/qa1 nocomp-user
qa2 /dg1/qa2 nocomp-user
##########################
##### ETEST ##########
etest /dev/vx/rdsk/rootvol nocomp-root
etest /var nocomp-root
etest /opt nocomp-root
etest /dg nocomp-root
etest /dg1 nocomp-root
##########################
####### EPROD ##########
eprod /dev/vx/rdsk/rootvol nocomp-root
eprod /var nocomp-root
eprod /opt nocomp-root
eprod /dg nocomp-root
eprod /dg1 nocomp-root
########################
#### S20 ###############
s20 /dev/rdsk/c0t3d0s0 nocomp-root -1
s20 /var nocomp-root -1
s20 /export/home nocomp-root -1
#########################
_root@s20_[/usr/local/etc/amanda/csd]:> cat tapelist
20010328 edgd129 reuse
20010327 edgd128 reuse
20010227 edgd227 reuse
20010226 edgd226 reuse
20010225 edgd225 reuse
20010224 edgd224 reuse
20010223 edgd223 reuse
20010222 edgd222 reuse
20010221 edgd221 reuse
20010220 edgd219 reuse
20010219 edgd218 reuse
20010218 edgd217 reuse
20010214 edgd214 reuse
20010213 edgd213 reuse
20010212 edgd212 reuse
20010211 edgd211 reuse
20010210 edgd210 reuse
20010209 edgd29 reuse
20010208 edgd28 reuse
20010207 edgd27 reuse
20010206 edgd26 reuse
20010205 edgd25 reuse
20010204 edgd24 reuse
20010203 edgd23 reuse
20010202 edgd22 reuse
20010201 edgd21 reuse
20010131 edgd131 reuse
20010130 edgd130 reuse
20010117 pdd116 reuse
20010116 pdd115 reuse
20001229 DailySet105 reuse
20001220 DailySet111 reuse
_root@s20_[/usr/local/etc/amanda/csd]:>
- Re: re-label any tape? Seth Rothenberg
- Re: re-label any tape? John R. Jackson
- Re: re-label any tape? Seth Rothenberg
- Re: re-label any tape? John R. Jackson
