Re: upgrade issue, 2.5.1 to 2.5.1p2
Steve, Could you try the attached patch for 2.5.1p2? It remove the check for tapedev if tpchanger is defined. All changer check tapedev if it require it. Jean-Louis Steve Newcomb wrote: I'm using chg-multi. It works under 2.5.1. When I upgraded to 2.5.1p2, it stopped working, even with no changes to any configuration file. With 2.5.1p2, the backups are made to the holding disk, but nothing gets written to tape. There's a warning: WARNING: No tapedev specified It's true that the tapedev parameter is not set in amanda.conf, but that's because, according to the documentation, it's not supposed to be set when using chg-multi. As a temporary measure, I have re-installed 2.5.1 on my server and it's working again, but I'd prefer to be running the same version everywhere. I'm attaching my amanda.conf and my chg-multi.conf, in case that helps. -- Steve Steven R. Newcomb, Consultant Coolheads Consulting Co-editor, Topic Maps International Standard (ISO/IEC 13250) Co-editor, draft Topic Maps -- Reference Model (ISO/IEC 13250-5) [EMAIL PROTECTED] http://www.coolheads.com direct: +1 540 951 9773 main: +1 540 951 9774 fax:+1 540 951 9775 208 Highview Drive Blacksburg, Virginia 24060 USA (Confidential to all US government personnel to whom this private letter is not addressed and who are reading it in the absence of a specific search warrant: You, along with the corrupt and pusillanimous 109th Congress, are co-conspiring to subvert the Constitution that you are sworn to defend. You can either refuse to commit this crime, or you can expect to suffer criminal sanctions in the future, when the current administration of the United States of America has been replaced by one that respects the rule of law. I do not envy you for having to make this difficult choice, but I urge you to make it wisely.) diff -u -r --show-c-function --new-file --exclude-from=amanda.diff amanda-2.5.1p2.new/changer-src/chg-chio.pl.in amanda-2.5.1p2.new.no_tapedev/changer-src/chg-chio.pl.in --- amanda-2.5.1p2.new/changer-src/chg-chio.pl.in 2006-07-25 14:59:44.0 -0400 +++ amanda-2.5.1p2.new.no_tapedev/changer-src/chg-chio.pl.in 2006-11-27 10:14:10.0 -0500 @@ -68,11 +68,13 @@ if ( "@USE_VERSION_SUFFIXES@" eq "yes" ) chomp ($tapeDevice = `$sbindir/amgetconf$SUF tapedev 2>&1`); die "tapedev not found in amanda.conf" - if !$tapeDevice or $tapeDevice =~ m/no such parameter/; + if !$tapeDevice or $tapeDevice eq "" or + $tapeDevice =~ m/no such parameter/; chomp ($changerDevice = `$sbindir/amgetconf$SUF changerdev 2>&1`); chomp $changerDevice; die "changerdev not found in amanda.conf" - if !$changerDevice or $changerDevice =~ m/no such parameter/; + if !$changerDevice or $changerDevice eq "" or + $changerDevice =~ m/no such parameter/; # # Initialise a few global variables diff -u -r --show-c-function --new-file --exclude-from=amanda.diff amanda-2.5.1p2.new/changer-src/chg-disk.sh.in amanda-2.5.1p2.new.no_tapedev/changer-src/chg-disk.sh.in --- amanda-2.5.1p2.new/changer-src/chg-disk.sh.in 2006-07-04 07:28:29.0 -0400 +++ amanda-2.5.1p2.new.no_tapedev/changer-src/chg-disk.sh.in 2006-11-27 10:15:23.0 -0500 @@ -75,6 +75,10 @@ fi MYNAME=$0 TAPE=`amgetconf$SUF tapedev` +if test X"$TAPE" == X""; then +echo " tapedev not specified in amanda.conf." 1>&2 +exit 2 +fi SLOTDIR=`echo $TAPE | sed 's/^file://'` isinteger() { diff -u -r --show-c-function --new-file --exclude-from=amanda.diff amanda-2.5.1p2.new/changer-src/chg-iomega.pl.in amanda-2.5.1p2.new.no_tapedev/changer-src/chg-iomega.pl.in --- amanda-2.5.1p2.new/changer-src/chg-iomega.pl.in 2006-07-25 14:59:44.0 -0400 +++ amanda-2.5.1p2.new.no_tapedev/changer-src/chg-iomega.pl.in 2006-11-27 10:14:36.0 -0500 @@ -81,11 +81,13 @@ if ( "@USE_VERSION_SUFFIXES@" eq "yes" ) chomp ($tapeDevice = `$sbindir/amgetconf$SUF tapedev 2>&1`); die "tapedev not found in amanda.conf" - if !$tapeDevice or $tapeDevice =~ m/no such parameter/; + if !$tapeDevice or $tapeDevice eq "" or + $tapeDevice =~ m/no such parameter/; chomp ($changerDevice = `$sbindir/amgetconf$SUF changerdev 2>&1`); chomp $changerDevice; die "changerdev not found in amanda.conf" - if !$changerDevice or $changerDevice =~ m/no such parameter/; + if !$changerDevice or $changerDevice eq "" or + $changerDevice =~ m/no such parameter/; # # Initialise a few global variables diff -u -r --show-c-function --new-file --exclude-from=amanda.diff amanda-2.5.1p2.new/changer-src/chg-manual.sh.in amanda-2.5.1p2.new.no_tapedev/changer-src/chg-manual.sh.in --- amanda-2.5.1p2.new/changer-src/chg-manual.sh.in 2006-07-04 07:28:29.0 -0400 +++ amanda-2.5.1p2.new.no_tapedev/changer-src/chg-manual.sh.in 2006-11-27 10:08:56.0 -0500 @@ -64,6 +64,12 @@ [EMAIL PROTECTED]@ ONLINEREGEX="ONLINE|READY|sense[_ ]key[(]0x0[)]|sense key error = 0|^er=0$|, mt_erreg: 0x0|^Current Driver State: at rest$" REPORTTO=`amgetconf$SUF mailto` tape=`amgetconf$
Re: upgrade issue, 2.5.1 to 2.5.1p2: things are worse than I thought
Steve, Could you send me the amdump.1 log file? What is at the beginning of the holdingdisk files? Could you send me one of the header? Jean-Louis Steve Newcomb wrote: As a temporary measure, I have re-installed 2.5.1 on my server and it's working again, but I'd prefer to be running the same version everywhere. Well, I lied. amcheck worked OK, but amflush 2.5.1 refuses to flush the dumps made with 2.5.1p2 on the holding disk, saying: [EMAIL PROTECTED]:~$ amflush coolheads Scanning /nobackup/AMANDASPOOL... 20061125001502: found Amanda directory. Could not find any valid dump image, check directory. The directory has many dump files in it, and it looks OK. Is there a trick I should know? -- Steve Steven R. Newcomb, Consultant Coolheads Consulting Co-editor, Topic Maps International Standard (ISO/IEC 13250) Co-editor, draft Topic Maps -- Reference Model (ISO/IEC 13250-5) [EMAIL PROTECTED] http://www.coolheads.com direct: +1 540 951 9773 main: +1 540 951 9774 fax:+1 540 951 9775 208 Highview Drive Blacksburg, Virginia 24060 USA (Confidential to all US government personnel to whom this private letter is not addressed and who are reading it in the absence of a specific search warrant: You, along with the corrupt and pusillanimous 109th Congress, are co-conspiring to subvert the Constitution that you are sworn to defend. You can either refuse to commit this crime, or you can expect to suffer criminal sanctions in the future, when the current administration of the United States of America has been replaced by one that respects the rule of law. I do not envy you for having to make this difficult choice, but I urge you to make it wisely.)
upgrade issue, 2.5.1 to 2.5.1p2
I'm using chg-multi. It works under 2.5.1. When I upgraded to 2.5.1p2, it stopped working, even with no changes to any configuration file. With 2.5.1p2, the backups are made to the holding disk, but nothing gets written to tape. There's a warning: WARNING: No tapedev specified It's true that the tapedev parameter is not set in amanda.conf, but that's because, according to the documentation, it's not supposed to be set when using chg-multi. As a temporary measure, I have re-installed 2.5.1 on my server and it's working again, but I'd prefer to be running the same version everywhere. I'm attaching my amanda.conf and my chg-multi.conf, in case that helps. -- Steve Steven R. Newcomb, Consultant Coolheads Consulting Co-editor, Topic Maps International Standard (ISO/IEC 13250) Co-editor, draft Topic Maps -- Reference Model (ISO/IEC 13250-5) [EMAIL PROTECTED] http://www.coolheads.com direct: +1 540 951 9773 main: +1 540 951 9774 fax:+1 540 951 9775 208 Highview Drive Blacksburg, Virginia 24060 USA (Confidential to all US government personnel to whom this private letter is not addressed and who are reading it in the absence of a specific search warrant: You, along with the corrupt and pusillanimous 109th Congress, are co-conspiring to subvert the Constitution that you are sworn to defend. You can either refuse to commit this crime, or you can expect to suffer criminal sanctions in the future, when the current administration of the United States of America has been replaced by one that respects the rule of law. I do not envy you for having to make this difficult choice, but I urge you to make it wisely.) chg-multi.conf Description: Binary data amanda.conf Description: Binary data
upgrade issue, 2.5.1 to 2.5.1p2: things are worse than I thought
> As a temporary measure, I have re-installed 2.5.1 on my server > and it's working again, but I'd prefer to be running the same > version everywhere. Well, I lied. amcheck worked OK, but amflush 2.5.1 refuses to flush the dumps made with 2.5.1p2 on the holding disk, saying: [EMAIL PROTECTED]:~$ amflush coolheads Scanning /nobackup/AMANDASPOOL... 20061125001502: found Amanda directory. Could not find any valid dump image, check directory. The directory has many dump files in it, and it looks OK. Is there a trick I should know? -- Steve Steven R. Newcomb, Consultant Coolheads Consulting Co-editor, Topic Maps International Standard (ISO/IEC 13250) Co-editor, draft Topic Maps -- Reference Model (ISO/IEC 13250-5) [EMAIL PROTECTED] http://www.coolheads.com direct: +1 540 951 9773 main: +1 540 951 9774 fax:+1 540 951 9775 208 Highview Drive Blacksburg, Virginia 24060 USA (Confidential to all US government personnel to whom this private letter is not addressed and who are reading it in the absence of a specific search warrant: You, along with the corrupt and pusillanimous 109th Congress, are co-conspiring to subvert the Constitution that you are sworn to defend. You can either refuse to commit this crime, or you can expect to suffer criminal sanctions in the future, when the current administration of the United States of America has been replaced by one that respects the rule of law. I do not envy you for having to make this difficult choice, but I urge you to make it wisely.) chg-multi.conf Description: Binary data amanda.conf Description: Binary data