Sorry, I didn't mentioned that the IBM tape device accepts LTO 5 media.

$ mt config
"IBM     ULT3580-TD5", "IBM     ULT3580-TD5     ", "CFGIBMULT3580TD5";
CFGIBMULT3580TD5 = 
2,0x3B,0,0x1018619,4,0x46,0x46,0x58,0x58,3,60,1500,600,16920,780,780,16380;

$ mt status
IBM     ULT3580-TD5      tape drive:
   sense key(0x0)= No Additional Sense   residual= 0   retries= 0
   file no= 0   block no= 0

On 17/12/13 12:01, Tom Robinson wrote:
> Amanda 3.3.3
> OmniOS (OpenSolaris derivative)
>
> Hi,
>
> I've got an IBM TS3200 robot working with mtx. The raw mtx command sees the 
> robot and tapes OK but
> when I use amtape I get a 'block size too small' error.
>
> The amlabel command also fails with:
>
> $ amlabel weekly weekly00 slot 1
> Reading label...
> Error reading volume label: Error reading Amanda header: block size too small
> Not writing label.
>
> In amanda.conf I adjusted the blocksize and readblocksize but amanda is still 
> not satisfied.
>
> Which blocksize is amanda unhappy about and where can I successfully adjust 
> the settings?
>
> Kind regards,
> Tom
>
> in amanda.conf:
>
> define changer robot {
>         tpchanger "chg-robot:/dev/scsi/changer/c1t5000E11156304003d1"
>         property "tape-device" "0=tape:/dev/rmt/0bn"
>         #property "eject-before-unload" "yes"
>         property "use-slots" "1-23"
>         device-property "BLOCK_SIZE" "2048k"
> }
> tapedev "robot"
>
> tapetype ULT3580-TD5
>
> define tapetype global {
>     part_size 3G
>     part_cache_type none
> }
>
> define tapetype ULT3580-TD5 {
>     global
>     comment "Created by amtapetype; compression enabled"
>     length 1483907072 kbytes
>     filemark 1820 kbytes
>     speed 86133 kps
>     blocksize 2048 kbytes
>     readblocksize 2048 kbytes
> }
>
> $ mtx status
>   Storage Changer /dev/scsi/changer/c1t5000E11156304003d1:1 Drives, 24 Slots 
> ( 1 Import/Export )
> Data Transfer Element 0:Full (Storage Element 3 Loaded):VolumeTag = 050CHOL5  
>                     
>       Storage Element 1:Full :VolumeTag=WEEK00L5                      
>       Storage Element 2:Full :VolumeTag=WEEK01L5                      
>       Storage Element 3:Empty
>       Storage Element 4:Full :VolumeTag=051CHOL5                      
>       Storage Element 5:Full :VolumeTag=052CHOL5                      
>       Storage Element 6:Full :VolumeTag=053CHOL5                      
>       Storage Element 7:Full :VolumeTag=054CHOL5                      
>       Storage Element 8:Empty
>       Storage Element 9:Empty
>       Storage Element 10:Empty
>       Storage Element 11:Empty
>       Storage Element 12:Empty
>       Storage Element 13:Empty
>       Storage Element 14:Empty
>       Storage Element 15:Empty
>       Storage Element 16:Empty
>       Storage Element 17:Empty
>       Storage Element 18:Empty
>       Storage Element 19:Empty
>       Storage Element 20:Empty
>       Storage Element 21:Empty
>       Storage Element 22:Empty
>       Storage Element 23:Empty
>       Storage Element 24 IMPORT/EXPORT:Empty
>
> $ amtape weekly inventory
> slot 1: Error reading Amanda header: block size too small barcode WEEK00L5
> slot 2: Error reading Amanda header: block size too small barcode WEEK01L5
> slot 3: label amtapetype-1255848847 barcode 050CHOL5 (in drive 0)
> slot 4: Error reading Amanda header: block size too small barcode 051CHOL5
> slot 5: Error reading Amanda header: block size too small barcode 052CHOL5
> slot 6: Error reading Amanda header: block size too small barcode 053CHOL5
> slot 7: Error reading Amanda header: block size too small barcode 054CHOL5 
> (current)
> slot 8: unknown state
> slot 9: unknown state
> slot 10: unknown state
> slot 11: unknown state
> slot 12: unknown state
> slot 13: unknown state
> slot 14: unknown state
> slot 15: unknown state
> slot 16: unknown state
> slot 17: unknown state
> slot 18: unknown state
> slot 19: unknown state
> slot 20: unknown state
> slot 21: unknown state
> slot 22: unknown state
> slot 23: unknown state
>
> amtape.20131217113945.debug:
> Tue Dec 17 11:49:45 2013: thd-85d2400: amtape: pid 3379 ruid 33 euid 33 
> version 3.3.3: start at Tue
> Dec 17 11:49:45 2013
> Tue Dec 17 11:49:45 2013: thd-85d2400: amtape: Arguments: weekly inventory
> Tue Dec 17 11:49:45 2013: thd-85d2400: amtape: pid 3379 ruid 33 euid 33 
> version 3.3.3: rename at Tue
> Dec 17 11:49:45 2013
> Tue Dec 17 11:49:45 2013: thd-85d2400: amtape: chg-robot: using statefile
> '/var/opt/csw/amanda/chg-robot-dev-scsi-changer-c1t5000E11156304003d1'
> Tue Dec 17 11:49:45 2013: thd-85d2400: amtape: invoking /opt/csw/sbin/mtx -f
> /dev/scsi/changer/c1t5000E11156304003d1 status
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:   Storage Changer
> /dev/scsi/changer/c1t5000E11156304003d1:1 Drives, 24 Slots ( 1 Import/Export )
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx: Data Transfer Element 
> 0:Full (Storage Element 3
> Loaded):VolumeTag = 050CHOL5                      
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 1:Full
> :VolumeTag=WEEK00L5                      
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 2:Full
> :VolumeTag=WEEK01L5                      
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 3:Empty
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 4:Full
> :VolumeTag=051CHOL5                      
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 5:Full
> :VolumeTag=052CHOL5                      
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 6:Full
> :VolumeTag=053CHOL5                      
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 7:Full
> :VolumeTag=054CHOL5                      
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 8:Empty
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 9:Empty
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 10:Empty
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 11:Empty
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 12:Empty
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 13:Empty
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 14:Empty
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 15:Empty
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 16:Empty
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 17:Empty
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 18:Empty
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 19:Empty
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 20:Empty
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 21:Empty
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 22:Empty
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 
> 23:Empty
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: mtx:       Storage Element 24 
> IMPORT/EXPORT:Empty
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: robot: updating state
> Tue Dec 17 11:49:46 2013: thd-85d2400: amtape: pid 3379 finish time Tue Dec 
> 17 11:49:46 2013
>
>
> amlabel.20131217115540.debug:
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: pid 3398 ruid 33 euid 33 
> version 3.3.3: start at Tue
> Dec 17 11:55:40 2013
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: Arguments: weekly weekly00 
> slot 1
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: pid 3398 ruid 33 euid 33 
> version 3.3.3: rename at
> Tue Dec 17 11:55:40 2013
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: chg-robot: using statefile
> '/var/opt/csw/amanda/chg-robot-dev-scsi-changer-c1t5000E11156304003d1'
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: invoking /opt/csw/sbin/mtx -f
> /dev/scsi/changer/c1t5000E11156304003d1 status
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:   Storage Changer
> /dev/scsi/changer/c1t5000E11156304003d1:1 Drives, 24 Slots ( 1 Import/Export )
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx: Data Transfer Element 
> 0:Full (Storage Element 3
> Loaded):VolumeTag = 050CHOL5                      
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 1:Full
> :VolumeTag=WEEK00L5                      
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 2:Full
> :VolumeTag=WEEK01L5                      
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 3:Empty
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 4:Full
> :VolumeTag=051CHOL5                      
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 5:Full
> :VolumeTag=052CHOL5                      
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 6:Full
> :VolumeTag=053CHOL5                      
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 7:Full
> :VolumeTag=054CHOL5                      
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 8:Empty
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 9:Empty
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 10:Empty
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 11:Empty
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 12:Empty
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 13:Empty
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 14:Empty
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 15:Empty
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 16:Empty
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 17:Empty
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 18:Empty
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 19:Empty
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 20:Empty
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 21:Empty
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 22:Empty
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 23:Empty
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: mtx:       Storage Element 24 
> IMPORT/EXPORT:Empty
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: robot: updating state
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: robot: loading slot '1'
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: robot: using drive 0
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: robot: unloading drive 0
> Tue Dec 17 11:55:40 2013: thd-8108200: amlabel: invoking /opt/csw/sbin/mtx -f
> /dev/scsi/changer/c1t5000E11156304003d1 unload 3 0
> Tue Dec 17 11:56:06 2013: thd-8108200: amlabel: robot: unload complete
> Tue Dec 17 11:56:06 2013: thd-8108200: amlabel: invoking /opt/csw/sbin/mtx -f
> /dev/scsi/changer/c1t5000E11156304003d1 load 1 0
> Tue Dec 17 11:56:45 2013: thd-8108200: amlabel: robot: polling 
> 'tape:/dev/rmt/0bn' to see if it's ready
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: warning: Buffer is too small 
> (2097152 bytes) from
> /dev/rmt/0bn: Invalid argument
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: Device tape:/dev/rmt/0bn 
> error = 'Error reading
> Amanda header: block size too small'
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: Device tape:/dev/rmt/0bn 
> setting status flag(s):
> DEVICE_STATUS_DEVICE_ERROR, and DEVICE_STATUS_VOLUME_ERROR
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: invoking /opt/csw/sbin/mtx -f
> /dev/scsi/changer/c1t5000E11156304003d1 status
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:   Storage Changer
> /dev/scsi/changer/c1t5000E11156304003d1:1 Drives, 24 Slots ( 1 Import/Export )
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx: Data Transfer Element 
> 0:Full (Storage Element 1
> Loaded):VolumeTag = WEEK00L5                      
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 1:Empty
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 2:Full
> :VolumeTag=WEEK01L5                      
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 3:Full
> :VolumeTag=050CHOL5                      
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 4:Full
> :VolumeTag=051CHOL5                      
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 5:Full
> :VolumeTag=052CHOL5                      
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 6:Full
> :VolumeTag=053CHOL5                      
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 7:Full
> :VolumeTag=054CHOL5                      
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 8:Empty
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 9:Empty
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 10:Empty
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 11:Empty
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 12:Empty
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 13:Empty
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 14:Empty
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 15:Empty
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 16:Empty
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 17:Empty
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 18:Empty
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 19:Empty
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 20:Empty
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 21:Empty
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 22:Empty
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 
> 23:Empty
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: mtx:       Storage Element 24 
> IMPORT/EXPORT:Empty
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: robot: updating state
> Tue Dec 17 11:56:49 2013: thd-8108200: amlabel: pid 3398 finish time Tue Dec 
> 17 11:56:49 2013
>
>
>


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to