So, I have this new NEOs T48 with two LTO7 drives. I thought it would go pretty smoothly getting it
set up, as I have three NEOs T24 LTO6 libraries running with Amanda, each on a separate server. But,
I'm finding it virtually impossible to get amtapetype happy with the compression / no compression
status of the drive / tape. At this point I'm using Amanda 3.3.6. I've built 3.4.5, but have not
installed it yet.
Here is my latest attempt, working with a new, never been loaded, LTO7 tape. I should note that I
have a page in my server notebook from July 2014 showing almost this exact sequence of commands when
setting up my LTO6 library.
Bottom line is that tapeinfo tells me compression is off, it's a new tape, then amtapetype tells me
compression is on.
$ sudo lsscsi [cut to show just the tape related devices]
[8:0:0:0] tape IBM ULTRIUM-HH6 G351 /dev/st0
[8:0:0:1] mediumx IBM 3573-TL C.70 /dev/sch0
[8:0:1:0] tape IBM ULTRIUM-HH7 G9Q1 /dev/st1
[8:0:2:0] tape IBM ULTRIUM-HH7 G9Q1 /dev/st2
[8:0:2:1] mediumx BDT FlexStor II 5.10 /dev/sch1
$ ls -l /dev/sg* | grep tape
crw-rw---- 1 root tape 21, 13 Jul 21 12:56 /dev/sg13
crw-rw---- 1 root tape 21, 14 Jul 21 12:56 /dev/sg14
crw-rw---- 1 root tape 21, 15 Jul 21 12:56 /dev/sg15
crw-rw---- 1 root tape 21, 16 Jul 21 12:56 /dev/sg16
crw-rw---- 1 root tape 21, 17 Jul 21 12:56 /dev/sg17
$ sudo amchanger test-lto7 status | head -20 [amchanger is a script of mine that reads the
amanda.conf & issues mtx commands]
/usr/sbin/mtx -f
/dev/tape/by-id/scsi-1BDT_FlexStor_II_00MX64200626_LL0 status
Storage Changer /dev/tape/by-id/scsi-1BDT_FlexStor_II_00MX64200626_LL0:2
Drives, 48 Slots ( 0
Import/Export )
Data Transfer Element 0:Empty
Data Transfer Element 1:Empty
Storage Element 1:Full :VolumeTag=000001L7
Storage Element 2:Full :VolumeTag=000002L7
Storage Element 3:Full :VolumeTag=000003L7
Storage Element 4:Full :VolumeTag=000004L7
Storage Element 5:Full :VolumeTag=000005L7
Storage Element 6:Full :VolumeTag=000006L7
Storage Element 7:Full :VolumeTag=000007L7
Storage Element 8:Full :VolumeTag=000008L7
Storage Element 9:Full :VolumeTag=000009L7
Storage Element 10:Full :VolumeTag=000010L7
Storage Element 11:Full :VolumeTag=000011L7
Storage Element 12:Empty
Storage Element 13:Empty
Storage Element 14:Empty
$ sudo amchanger test-lto7 load 3 0
/usr/sbin/mtx -f
/dev/tape/by-id/scsi-1BDT_FlexStor_II_00MX64200626_LL0 load 3 0
Loading media from Storage Element 3 into drive 0...done
$ sudo tapeinfo -f /dev/sg16 [same command on other 4 sg tape devices showed them to be LTO6
drive, changer, empty LTO7 drive, changer]
Product Type: Tape Drive
Vendor ID: 'IBM '
Product ID: 'ULTRIUM-HH7 '
Revision: 'G9Q1'
Attached Changer API: No
SerialNumber: '10WT031310'
SCSI ID: 2
SCSI LUN: 0
Ready: yes
BufferedMode: yes
Medium Type: 0x78
Density Code: 0x5c
BlockSize: 0
DataCompEnabled: no
DataCompCapable: yes
DataDeCompEnabled: yes
CompType: 0xff
DeCompType: 0xff
BOP: yes
Block Position: 0
Partition 0 Remaining Kbytes: -1
Partition 0 Size in Kbytes: -1
ActivePartition: 0
EarlyWarningSize: 0
NumPartitions: 0
MaxPartitions: 3
[Note: Got it this way by previously issuing a `sudo mt -f /dev/nst2
defcompression 0`, before
this whole sequence.]
$ sudo amtapetype -b 2m /dev/nst2 [any advice or recommendation regarding that
"2m"?]
Checking for FSF_AFTER_FILEMARK requirement
Applying heuristic check for compression.
Wrote random (uncompressible) data at 195508686.451613 bytes/sec
Wrote fixed (compressible) data at 281896245.581395 bytes/sec
Compression: enabled
Turn off compression or run amtapetype with the -f option
$ sudo mt -f /dev/nst2 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x5c (no translation).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN
$ sudo more /tmp/amanda/server/amtapetype.20170731142828.debug
Mon Jul 31 14:28:28 2017: thd-0x1912800: amtapetype: pid 24348 ruid 0 euid 0
version 3.3.6:
start at Mon Jul 31 14:28:28 2017
Mon Jul 31 14:28:28 2017: thd-0x1912800: amtapetype: Arguments: -b 2m
/dev/nst2
Mon Jul 31 14:28:28 2017: thd-0x1912800: amtapetype: warning: "/dev/nst2"
uses deprecated device
naming convention;
using "tape:/dev/nst2" instead.
Mon Jul 31 14:28:28 2017: thd-0x1912800: amtapetype: Device is in variable
block size
Mon Jul 31 14:28:28 2017: thd-0x1912800: amtapetype: Device /dev/nst2 error
= 'Error reading
Amanda header: Error reading 2097152 bytes from /dev/nst2: Input/output
error'
Mon Jul 31 14:28:28 2017: thd-0x1912800: amtapetype: Device /dev/nst2
setting status flag(s):
DEVICE_STATUS_DEVICE_ERROR, DEVICE_STATUS_VOLUME_UNLABELED, and
DEVICE_STATUS_VOLUME_ERROR
Mon Jul 31 14:28:28 2017: thd-0x1912800: amtapetype: Building type TAPESTART
header of
2097152-2097152 bytes with name='amtapetype-1509545943' disk='' dumplevel=0
and blocksize=2097152
Mon Jul 31 14:28:34 2017: thd-0x1912800: amtapetype: Building type TAPESTART
header of
2097152-2097152 bytes with name='TEST-001' disk='' dumplevel=0 and
blocksize=2097152
Mon Jul 31 14:28:37 2017: thd-0x1912800: amtapetype: Building type FILE
header of
2097152-2097152 bytes with name='localhost' disk='/test1' dumplevel=0 and
blocksize=2097152
Mon Jul 31 14:28:39 2017: thd-0x1912800: amtapetype: Building type FILE
header of
2097152-2097152 bytes with name='localhost' disk='/test2' dumplevel=0 and
blocksize=2097152
Mon Jul 31 14:28:41 2017: thd-0x1912800: amtapetype: Building type FILE
header of
2097152-2097152 bytes with name='localhost' disk='/test3' dumplevel=0 and
blocksize=2097152
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: Device is in variable
block size
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: warning: Argument
"TEST-001" isn't numeric
in numeric ne (!=) at /usr/local/sbin/amtapetype line 376.
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: warning: Argument
"TEST-001" isn't numeric
in numeric ne (!=) at /usr/local/sbin/amtapetype line 376.
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: Starting <Xfer@0x228f5a0
(<XferSourceDevice@0x228f830> -> <XferDestNull@0x228f8d0>)>
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: Final linkage:
<XferSourceDevice@0x228f830>
-(PULL_BUFFER)-> <XferElementGlue@0x228e110> -(PUSH_BUFFER)->
<XferDestNull@0x228f8d0>
Mon Jul 31 14:28:46 2017: thd-0x24a0000: amtapetype: Device /dev/nst2 error
= 'EOF'
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: Starting <Xfer@0x228f580
(<XferSourceDevice@0x228f970> -> <XferDestNull@0x228fa10>)>
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: Final linkage:
<XferSourceDevice@0x228f970>
-(PULL_BUFFER)-> <XferElementGlue@0x228e200> -(PUSH_BUFFER)->
<XferDestNull@0x228fa10>
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: Starting <Xfer@0x228f6f0
(<XferSourceDevice@0x228fab0> -> <XferDestNull@0x228fb50>)>
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: Final linkage:
<XferSourceDevice@0x228fab0>
-(PULL_BUFFER)-> <XferElementGlue@0x228e2f0> -(PUSH_BUFFER)->
<XferDestNull@0x228fb50>
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: Device is in variable
block size
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: warning: Argument
"TEST-001" isn't numeric
in numeric ne (!=) at /usr/local/sbin/amtapetype line 481.
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: warning: Argument
"TEST-001" isn't numeric
in numeric ne (!=) at /usr/local/sbin/amtapetype line 481.
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: Device is in variable
block size
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: warning: Argument
"TEST-001" isn't numeric
in numeric ne (!=) at /usr/local/sbin/amtapetype line 500.
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: warning: Argument
"TEST-001" isn't numeric
in numeric ne (!=) at /usr/local/sbin/amtapetype line 500.
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: Device is in variable
block size
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: warning: Argument
"TEST-001" isn't numeric
in numeric ne (!=) at /usr/local/sbin/amtapetype line 519.
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: warning: Argument
"TEST-001" isn't numeric
in numeric ne (!=) at /usr/local/sbin/amtapetype line 519.
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: Device is in variable
block size
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: warning: Argument
"TEST-001" isn't numeric
in numeric ne (!=) at /usr/local/sbin/amtapetype line 538.
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: warning: Argument
"TEST-001" isn't numeric
in numeric ne (!=) at /usr/local/sbin/amtapetype line 538.
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: Starting <Xfer@0x249fbf0
(<XferSourceDevice@0x228fbf0> -> <XferDestNull@0x228fc90>)>
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: Final linkage:
<XferSourceDevice@0x228fbf0>
-(PULL_BUFFER)-> <XferElementGlue@0x228e3e0> -(PUSH_BUFFER)->
<XferDestNull@0x228fc90>
Mon Jul 31 14:28:46 2017: thd-0x24a00f0: amtapetype: Device /dev/nst2 error
= 'EOF'
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: warning: "/dev/nst2"
uses deprecated device
naming convention;
using "tape:/dev/nst2" instead.
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: Device is in variable
block size
Mon Jul 31 14:28:46 2017: thd-0x1912800: amtapetype: Building type TAPESTART
header of
2097152-2097152 bytes with name='amtapetype-1509545943' disk='' dumplevel=0
and blocksize=2097152
Mon Jul 31 14:28:48 2017: thd-0x1912800: amtapetype: Building type FILE
header of
2097152-2097152 bytes with name='amtapetype' disk='/test' dumplevel=0 and
blocksize=2097152
Mon Jul 31 14:28:49 2017: thd-0x1912800: amtapetype: Starting <Xfer@0x2284960
(<XferSourceRandom@0x228fd30> -> <XferDestDevice@0x24ac800>)>
Mon Jul 31 14:28:49 2017: thd-0x1912800: amtapetype: Final linkage:
<XferSourceRandom@0x228fd30>
-(PULL_BUFFER)-> <XferElementGlue@0x228e020> -(PUSH_BUFFER)->
<XferDestDevice@0x24ac800>
Mon Jul 31 14:29:49 2017: thd-0x1912800: amtapetype: Cancelling
<Xfer@0x2284960
(<XferSourceRandom@0x228fd30> -> <XferDestDevice@0x24ac800>)>
Mon Jul 31 14:29:51 2017: thd-0x1912800: amtapetype: warning: Argument
"TIMEOUT" isn't numeric
in numeric ne (!=) at /usr/local/sbin/amtapetype line 273.
Mon Jul 31 14:29:51 2017: thd-0x1912800: amtapetype: warning: Argument
"TIMEOUT" isn't numeric
in numeric ne (!=) at /usr/local/sbin/amtapetype line 273.
Mon Jul 31 14:30:23 2017: thd-0x1912800: amtapetype: warning: "/dev/nst2"
uses deprecated device
naming convention;
using "tape:/dev/nst2" instead.
Mon Jul 31 14:30:23 2017: thd-0x1912800: amtapetype: Device is in variable
block size
Mon Jul 31 14:30:23 2017: thd-0x1912800: amtapetype: Building type TAPESTART
header of
2097152-2097152 bytes with name='amtapetype-1509545943' disk='' dumplevel=0
and blocksize=2097152
Mon Jul 31 14:30:27 2017: thd-0x1912800: amtapetype: Building type FILE
header of
2097152-2097152 bytes with name='amtapetype' disk='/test' dumplevel=0 and
blocksize=2097152
Mon Jul 31 14:30:27 2017: thd-0x1912800: amtapetype: Starting <Xfer@0x229d500
(<XferSourcePattern@0x24ac8b0> -> <XferDestDevice@0x24ac960>)>
Mon Jul 31 14:30:27 2017: thd-0x1912800: amtapetype: Final linkage:
<XferSourcePattern@0x24ac8b0> -(PULL_BUFFER)-> <XferElementGlue@0x228e2f0>
-(PUSH_BUFFER)->
<XferDestDevice@0x24ac960>
--
---------------
Chris Hoogendyk
-
O__ ---- Systems Administrator
c/ /'_ --- Biology & Geosciences Departments
(*) \(*) -- 315 Morrill Science Center
~~~~~~~~~~ - University of Massachusetts, Amherst
<hoogen...@bio.umass.edu>
---------------
Erdös 4