amtapetype - amtapetype: Error setting FSF_AFTER_FILEMARK
Hello amanda-users, I've been testing the the latest version 3.4.5 version and got som issues with amtapetype. I'm running on Solaris 11 Sparc # /opt/sbin/amtapetype -f /dev/rmt/2n Checking for FSF_AFTER_FILEMARK requirement amtapetype: Error setting FSF_AFTER_FILEMARK: Not allowed to set property at /opt/sbin/amtapetype line 430. In the changer we define device_property "FSF_AFTER_FILEMARK" "TRUE" do I have to specify it ? # mt -f /dev/rmt/2n status HP Ultrium LTO 4 tape drive: sense key(0x0)= No Additional Sense residual= 0 retries= 0 file no= 1 block no= 0 Thanks Gunnar Gunnarsson
Re: amanda-3.4 amtapetype: Error setting FSF_AFTER_FILEMARK
Hi, * Jean-Louis Martineau <jmartin...@carbonite.com> [20161114 12:00]: > Try the attached patch. That seemed to have done it. So far so good and still going but looking good. Smaller block size used here compared to what I used before with hw compression on so it doesn't compare directly with what I had before. ~amanda/sbin/amtapetype -f -b 256k -t tape-lto6 /dev/nst0 Checking for FSF_AFTER_FILEMARK requirement Applying heuristic check for compression. Wrote random (uncompressible) data at 28406877.0909091 bytes/sec Wrote fixed (compressible) data at 156237824 bytes/sec Compression: enabled Writing one file to fill the volume. Wrote 2518892150784 bytes at 130857 kb/sec Writing smaller files (25188892672 bytes) to determine filemark. File 17, block 54320 Thanks Jean-Louis! jf > > Jean-Louis > > On 14/11/16 10:06 AM, Jean-Francois Malouin wrote: > >Hi, > > > >Amanda-3.4 and a new LTO6 tape library: > > > >~amanda/sbin/amtapetype --version > >amtapetype-3.4 > > > >~amanda/sbin/amtapetype -b 2048k -t tape-lto6 -f /dev/nst1 > >Checking for FSF_AFTER_FILEMARK requirement > >amtapetype: Error setting FSF_AFTER_FILEMARK: Success at > >/opt/amanda/sbin/amtapetype line 372. > > > >Any ideas? > > > >The 3.3.6 version happily produced an tapetype entry: > > > >/usr/sbin/amtapetype --version > >amtapetype-3.3.6 > > > >/usr/sbin/amtapetype -b 2048k -t tape-lto6 -f /dev/nst1 > > > >define tapetype tape-lto6 { > > comment "Created by amtapetype; compression disabled" > > length 2459914240 kbytes > > filemark 3227 kbytes > > speed 156832 kps > > blocksize 2048 kbytes > >} > ># LEOM is not supported for this drive and kernel > > > > > >Thanks, > >jf > > > diff --git a/device-src/amtapetype.pl b/device-src/amtapetype.pl > index d46fbc5..60f9475 100644 > --- a/device-src/amtapetype.pl > +++ b/device-src/amtapetype.pl > @@ -368,8 +368,10 @@ sub check_property { > $device->finish(); > > #set fsf_after_filemark to false > -$device->property_set('FSF_AFTER_FILEMARK', 0) > - or die "Error setting FSF_AFTER_FILEMARK: " . > $device->error_or_status(); > +my $r = $device->property_set('FSF_AFTER_FILEMARK', 0); > +if ($r) { > + die "Error setting FSF_AFTER_FILEMARK: $r"; > +} > > my $need_fsf_after_filemark = 0; > > @@ -420,8 +422,10 @@ sub check_property { > my $fsf_after_filemark_works = 0; > if ($need_fsf_after_filemark) { > #set fsf_after_filemark to true > - $device->property_set('FSF_AFTER_FILEMARK', 1) > - or die "Error setting FSF_AFTER_FILEMARK: " . > $device->error_or_status(); > + $r = $device->property_set('FSF_AFTER_FILEMARK', 1); > + if ($r) { > + die "Error setting FSF_AFTER_FILEMARK: $r"; > + } > > if ($device->read_label() != $DEVICE_STATUS_SUCCESS) { > die ("Could not read label from: " . $device->error_or_status()); > @@ -467,12 +471,18 @@ sub check_property { > if (defined $opt_property || $fsf_after_filemark) { > print STDOUT "device-property \"FSF_AFTER_FILEMARK\" \"false\"\n"; > } > - $device->property_set('FSF_AFTER_FILEMARK', 0); > + $r = $device->property_set('FSF_AFTER_FILEMARK', 0); > + if ($r) { > + die "Error setting FSF_AFTER_FILEMARK: $r"; > + } > } elsif ($need_fsf_after_filemark == 1 && $fsf_after_filemark_works == > 1) { > if (defined $opt_property || !$fsf_after_filemark) { > print STDOUT "device-property \"FSF_AFTER_FILEMARK\" \"true\"\n"; > } > - $device->property_set('FSF_AFTER_FILEMARK', 1); > + $r = $device->property_set('FSF_AFTER_FILEMARK', 1); > + if ($r) { > + die "Error setting FSF_AFTER_FILEMARK: $r"; > + } > } else { > die ("Broken seek_file"); > }
Re: amanda-3.4 amtapetype: Error setting FSF_AFTER_FILEMARK
On 11/14/16 16:06, Jean-Francois Malouin wrote: > amtapetype: Error setting FSF_AFTER_FILEMARK: Success at > /opt/amanda/sbin/amtapetype line 372. > > Any ideas? The IRC bot recently pointed at https://git.io/vXPb4 Yours, Uwe
RE: amanda-3.4 amtapetype: Error setting FSF_AFTER_FILEMARK
I had the same problem. I tried debugging it, but couldn't figure out why it was failing, because the code returned was for success. So, I turned the die() into a warn(), which, since it wasn't actually failing, never fired off. -Sandro -Original Message- From: owner-amanda-us...@amanda.org [mailto:owner-amanda-us...@amanda.org] On Behalf Of Jean-Francois Malouin Sent: Monday, November 14, 2016 8:06 AM To: AMANDA users <amanda-users@amanda.org> Subject: amanda-3.4 amtapetype: Error setting FSF_AFTER_FILEMARK Hi, Amanda-3.4 and a new LTO6 tape library: ~amanda/sbin/amtapetype --version amtapetype-3.4 ~amanda/sbin/amtapetype -b 2048k -t tape-lto6 -f /dev/nst1 Checking for FSF_AFTER_FILEMARK requirement amtapetype: Error setting FSF_AFTER_FILEMARK: Success at /opt/amanda/sbin/amtapetype line 372. Any ideas? The 3.3.6 version happily produced an tapetype entry: /usr/sbin/amtapetype --version amtapetype-3.3.6 /usr/sbin/amtapetype -b 2048k -t tape-lto6 -f /dev/nst1 define tapetype tape-lto6 { comment "Created by amtapetype; compression disabled" length 2459914240 kbytes filemark 3227 kbytes speed 156832 kps blocksize 2048 kbytes } # LEOM is not supported for this drive and kernel Thanks, jf
amanda-3.4 amtapetype: Error setting FSF_AFTER_FILEMARK
Hi, Amanda-3.4 and a new LTO6 tape library: ~amanda/sbin/amtapetype --version amtapetype-3.4 ~amanda/sbin/amtapetype -b 2048k -t tape-lto6 -f /dev/nst1 Checking for FSF_AFTER_FILEMARK requirement amtapetype: Error setting FSF_AFTER_FILEMARK: Success at /opt/amanda/sbin/amtapetype line 372. Any ideas? The 3.3.6 version happily produced an tapetype entry: /usr/sbin/amtapetype --version amtapetype-3.3.6 /usr/sbin/amtapetype -b 2048k -t tape-lto6 -f /dev/nst1 define tapetype tape-lto6 { comment "Created by amtapetype; compression disabled" length 2459914240 kbytes filemark 3227 kbytes speed 156832 kps blocksize 2048 kbytes } # LEOM is not supported for this drive and kernel Thanks, jf
Re: amtapetype: Error setting FSF_AFTER_FILEMARK:
To answer my own question. Using the BSD behavoir device node seems to work (/dev/rmt/0): $ amtapetype -f -c -t ULT3580-TD5 weekly /dev/rmt/0bn Checking for FSF_AFTER_FILEMARK requirement device-property FSF_AFTER_FILEMARK false Applying heuristic check for compression. Wrote random (uncompressible) data at 74407533.1147541 bytes/sec Wrote fixed (compressible) data at 206311796.363636 bytes/sec Compression: enabled On 14/10/13 11:07, Tom Robinson wrote: amanda version 3.3.3 Hi, I'm running amanda on OmniOS version 151006 and have configured my IBM-TS3100 tape library (ULT3580-TD5 drive) using the 'st' and 'sgen' drivers. I can label tapes and get inventory successfully. All appears to work well except I can't successfully run amtapetype. I get the following error: $ id uid=33(amanda) gid=3(sys) groups=3(sys) $ amtapetype -f -c -t ULT3580-TD5 weekly /dev/rmt/0 Checking for FSF_AFTER_FILEMARK requirement amtapetype: Error setting FSF_AFTER_FILEMARK: Success at /opt/csw/sbin/amtapetype line 420. $ amtapetype -f -t ULT3580-TD5 weekly /dev/rmt/0 Checking for FSF_AFTER_FILEMARK requirement amtapetype: Error setting FSF_AFTER_FILEMARK: Success at /opt/csw/sbin/amtapetype line 420. Can anyone please shed some light on what the above errors mean? Kind regards, Tom signature.asc Description: OpenPGP digital signature