Re: ibm ultrium lto library/tape loader using chg-zd-mtx(freebsd)(amanda2.4.4)

2004-08-25 Thread Frazier Scott
Yup.  I was trying to set up amanda using chg-zd-mtx.  mtx -f /dev/sg5
yielded info on the changer, and mtx -f /dev/sg4 yielded info on the
drive so I figured tapedev should be /dev/sg4.  When I couldn't get the
tests to work, I looked at the script and discovered that in the places
it accesses tapedev, it uses the mt command.  So, I changed my tapedev
to /dev/nst0 (the "no-rewind" device I usually use with mt), and it
worked like a charm.  Now I'm just trying to figure out how to enable
host control of compression on my Dell PowerVault 120T DDS4.

Frazier.

>>> Armand Sulter <[EMAIL PROTECTED]> 8/25/2004 11:25:26 AM >>>

It comes back with :

bash-2.04# mt -f /dev/pass2 status
mt: /dev/pass2: Operation not permitted

Are you saying i should be able to access
/dev/pass2 as a regular tape drive ?

i read somewhere sometimes you have to use
the changer as tapedev, tried that tho, same
results.

With best regards,

Armand Sulter - Systems Administration

  ENTER.NET - "The Road to the Internet Starts Here!" (tm)
  (610) 437-2221 * http://www.enter.net/ * email:[EMAIL PROTECTED] 
********


On Wed, 25 Aug 2004, Frazier Scott wrote:

> Question:
>
> What does
> /usr/local/sbin/mt -f /dev/pass2 status
> give you?
>
>
> >>> Armand Sulter <[EMAIL PROTECTED]> 8/25/2004 9:31:28 AM >>>
>
> I'm trying to get this puppy to work with
> 3 tapes for now, i can control the robot
> fine with the mtx program but amanda keeps
> giving me :
>
> bash-2.04$ /usr/local/sbin/amlabel bef Test01 slot 2
> amlabel: could not load slot "2": could not determine current slot,
are
> you sure your drive slot is 2
>
> I put the tape from slot 1 in the drive, it knows theres one
> in slot 2 and 3 but it keeps complaining about the 'current' slot.
>
> From what i can tell the output of the mtx command is in a format
> the regex's from the glue script should match.
>
> changer.conf
> 
> firstslot=1 # First slot
> lastslot=3  # Last slot
> cleanslot=-1# Don't use a cleaning tape slot
> driveslot=0 # This is the slot of the drive
> havereader=0# Do not use the barcode reader
> autoclean=0 # Do not autoclean
> offline_before_unload=0 # Does not require offline before
> unload
> havebarcode=0
>
> amanda.conf (snippet)
> -
> runtapes 1
> tapedev "/dev/pass2"
> changerdev  "/dev/pass3"
> tapetype IBM-LTO3580
>
> mtx results
> -
> bash-2.04$ /usr/local/sbin/mtx -f /dev/pass3 status
>   Storage Changer /dev/pass3:1 Drives, 20 Slots ( 1 Import/Export )
> Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag =
>   Storage Element 1:Empty:VolumeTag=
>   Storage Element 2:Full :VolumeTag=
>   Storage Element 3:Full :VolumeTag=
>   Storage Element 4:Empty:VolumeTag=
>   Storage Element 5:Empty:VolumeTag=
>   Storage Element 6:Empty:VolumeTag=
>   Storage Element 7:Empty:VolumeTag=
>   Storage Element 8:Empty:VolumeTag=
>   Storage Element 9:Empty:VolumeTag=
>   Storage Element 10:Empty:VolumeTag=
>   Storage Element 11:Empty:VolumeTag=
>   Storage Element 12:Empty:VolumeTag=
>   Storage Element 13:Empty:VolumeTag=
>   Storage Element 14:Empty:VolumeTag=
>   Storage Element 15:Empty:VolumeTag=
>   Storage Element 16:Empty:VolumeTag=
>   Storage Element 17:Empty:VolumeTag=
>   Storage Element 18:Empty:VolumeTag=
>   Storage Element 19:Empty:VolumeTag=
>   Storage Element 20 IMPORT/EXPORT:Empty:VolumeTag=
>
>
> bash-2.04$ /usr/local/sbin/mtx -f /dev/pass2 inquiry
> Product Type: Tape Drive
> Vendor ID: 'IBM '
> Product ID: 'ULTRIUM-TD1 '
> Revision: '12U2'
> Attached Changer: No
>
> bash-2.04$ /usr/local/sbin/mtx -f /dev/pass3 inquiry
> Product Type: Medium Changer
> Vendor ID: 'HP  '
> Product ID: 'C7200   '
> Revision: '126I'
> Attached Changer: No
>
> does anyone have any experience with these ?
>
> With best regards,
>
> Armand Sulter - Systems Administration
> 
>   ENTER.NET - "The Road to the Internet Starts Here!" (tm)
>   (610) 437-2221 * http://www.enter.net/ * email:[EMAIL PROTECTED] 
> 
>
>


Re: Input/output error attempting to run amlabel - Resolved

2004-08-25 Thread Frazier Scott
Turns out I'm an idiot.  Just needed to clean the drive.  Sorry for the
hassle!

>>> KEVIN ZEMBOWER <[EMAIL PROTECTED]> 8/25/2004 8:47:19 AM >>>
I think that the first error, when reading, is caused by trying to read
the label from a pristine tape, with nothing written on it. I get this
error all the time when I label new tapes. I just ignore it.

There has recently been some discussion of this on this list, and I may
actually have this wrong. This is just my guess.

However, the second input/output error, when 'writing endmark,' I've
never seen before (I started writing this response before I noticed
this). Maybe someone else can help with that.

-Kevin

>>> Frazier Scott <[EMAIL PROTECTED]> 08/24/04 11:14PM >>>
Can anyone give me an idea why this might be occurring (see below)? 
Mandrake Linux 9.2, su'ed to the amanda user, all config files seem to
be set up OK, using chg-zd-mtx, tapetype set to the pv120t-dds4 found
on
the faq-o-matic site, Dell PowerVault 120T AutoLoader with DDS-4 tapes.

I am attempting to populate the tapelist (already "touched" the file).

After I get this error, running mt -f /dev/nst0 status also gives me
Input/output error.  If I then unload the tape using mtx -f /dev/sg5
unload, I can reload the tape using mtx -f /dev/sg5 load 1 and mt -f
/dev/nst0 status works fine.  I attempt to run amlabel again, and the
whole thing starts over again.

-bash-2.05b$ /usr/amanda/sbin/amlabel sunday amanda001 slot 1
labeling tape in slot 1 (/dev/nst0):
rewinding, reading label, reading label: Input/output error
rewinding, writing label amanda001
amlabel: writing endmark: Input/output error

Thanks,

Frazier.




Re: ibm ultrium lto library/tape loader using chg-zd-mtx (freebsd)(amanda2.4.4)

2004-08-25 Thread Frazier Scott
Question:

What does
/usr/local/sbin/mt -f /dev/pass2 status
give you?


>>> Armand Sulter <[EMAIL PROTECTED]> 8/25/2004 9:31:28 AM >>>

I'm trying to get this puppy to work with
3 tapes for now, i can control the robot
fine with the mtx program but amanda keeps
giving me :

bash-2.04$ /usr/local/sbin/amlabel bef Test01 slot 2
amlabel: could not load slot "2": could not determine current slot, are
you sure your drive slot is 2

I put the tape from slot 1 in the drive, it knows theres one
in slot 2 and 3 but it keeps complaining about the 'current' slot.

>From what i can tell the output of the mtx command is in a format
the regex's from the glue script should match.

changer.conf

firstslot=1 # First slot
lastslot=3  # Last slot
cleanslot=-1# Don't use a cleaning tape slot
driveslot=0 # This is the slot of the drive
havereader=0# Do not use the barcode reader
autoclean=0 # Do not autoclean
offline_before_unload=0 # Does not require offline before
unload
havebarcode=0

amanda.conf (snippet)
-
runtapes 1
tapedev "/dev/pass2"
changerdev  "/dev/pass3"
tapetype IBM-LTO3580

mtx results
-
bash-2.04$ /usr/local/sbin/mtx -f /dev/pass3 status
  Storage Changer /dev/pass3:1 Drives, 20 Slots ( 1 Import/Export )
Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag =
  Storage Element 1:Empty:VolumeTag=
  Storage Element 2:Full :VolumeTag=
  Storage Element 3:Full :VolumeTag=
  Storage Element 4:Empty:VolumeTag=
  Storage Element 5:Empty:VolumeTag=
  Storage Element 6:Empty:VolumeTag=
  Storage Element 7:Empty:VolumeTag=
  Storage Element 8:Empty:VolumeTag=
  Storage Element 9:Empty:VolumeTag=
  Storage Element 10:Empty:VolumeTag=
  Storage Element 11:Empty:VolumeTag=
  Storage Element 12:Empty:VolumeTag=
  Storage Element 13:Empty:VolumeTag=
  Storage Element 14:Empty:VolumeTag=
  Storage Element 15:Empty:VolumeTag=
  Storage Element 16:Empty:VolumeTag=
  Storage Element 17:Empty:VolumeTag=
  Storage Element 18:Empty:VolumeTag=
  Storage Element 19:Empty:VolumeTag=
  Storage Element 20 IMPORT/EXPORT:Empty:VolumeTag=


bash-2.04$ /usr/local/sbin/mtx -f /dev/pass2 inquiry
Product Type: Tape Drive
Vendor ID: 'IBM '
Product ID: 'ULTRIUM-TD1 '
Revision: '12U2'
Attached Changer: No

bash-2.04$ /usr/local/sbin/mtx -f /dev/pass3 inquiry
Product Type: Medium Changer
Vendor ID: 'HP  '
Product ID: 'C7200   '
Revision: '126I'
Attached Changer: No

does anyone have any experience with these ?

With best regards,

Armand Sulter - Systems Administration

  ENTER.NET - "The Road to the Internet Starts Here!" (tm)
  (610) 437-2221 * http://www.enter.net/ * email:[EMAIL PROTECTED] 




Input/output error attempting to run amlabel

2004-08-24 Thread Frazier Scott
Can anyone give me an idea why this might be occurring (see below)? 
Mandrake Linux 9.2, su'ed to the amanda user, all config files seem to
be set up OK, using chg-zd-mtx, tapetype set to the pv120t-dds4 found on
the faq-o-matic site, Dell PowerVault 120T AutoLoader with DDS-4 tapes. 
I am attempting to populate the tapelist (already "touched" the file). 
After I get this error, running mt -f /dev/nst0 status also gives me
Input/output error.  If I then unload the tape using mtx -f /dev/sg5
unload, I can reload the tape using mtx -f /dev/sg5 load 1 and mt -f
/dev/nst0 status works fine.  I attempt to run amlabel again, and the
whole thing starts over again.

-bash-2.05b$ /usr/amanda/sbin/amlabel sunday amanda001 slot 1
labeling tape in slot 1 (/dev/nst0):
rewinding, reading label, reading label: Input/output error
rewinding, writing label amanda001
amlabel: writing endmark: Input/output error

Thanks,

Frazier.