medium changer not serialized

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

medium changer not serialized

ally_2020
Hello,

    Under NetBackup Device configure wizard, all tape drive show serialized but medium changer is NOT serialized.

    #smartctl -i /dev/sgx  show a non readable serial number (/dev/sgx is medium changer default STK L700).

    Does it matter? (or some backup software compatibiliy with mhvtl is caused by this?)

    tested with version mhvtl-2014-03-14

thanks!

ally


   
   
Reply | Threaded
Open this post in threaded view
|

Re: medium changer not serialized

ally_2020


Sorry, This is same issue with:
http://mhvtl-a-linux-virtual-tape-library.966029.n3.nabble.com/Serial-number-issue-with-mhVTL-td4025702.html

-------------------------------------------------------------------------------
VERSION: 5

# VPD page format:
# <page #> <Length> <x> <x+1>... <x+n>
# NAA format is an 8 hex byte value seperated by ':'
# Note: NAA is part of inquiry VPD 0x83
#
# Each 'record' is separated by one (or more) blank lines.
# Each 'record' starts at column 1
# Serial num max len is 10.
# Compression: factor X enabled 0|1
#     Where X is zlib compression factor        1 = Fastest compression
#                                               9 = Best compression
#     enabled 0 == off, 1 == on
#
# fifo: /var/tmp/thevtl
# If enabled, data must be read from fifo, otherwise daemon will block
# trying to write.
# e.g. cat /var/tmp/thevtl (in another terminal)

Library: 10 CHANNEL: 00 TARGET: 00 LUN: 00
 Vendor identification: STK
 Product identification: L700
 Unit serial number: VL101C3300
 NAA: 10:22:33:44:ab:00:00:00
 Home directory: /opt/thevtl/1C3368CAC8
 PERSIST: False
 Backoff: 400
# fifo: /var/tmp/thevtl

Drive: 11 CHANNEL: 00 TARGET: 00 LUN: 01
 Library ID: 10 Slot: 01
 Vendor identification: IBM
 Product identification: ULT3580-TD5
 Unit serial number: VL101C3301
 NAA: 10:22:33:44:ab:00:00:01
 Compression: factor 1 enabled 1
 Compression type: lzo
 Backoff: 400
# fifo: /var/tmp/thevtl

Drive: 12 CHANNEL: 00 TARGET: 00 LUN: 02
 Library ID: 10 Slot: 02
 Vendor identification: IBM
 Product identification: ULT3580-TD5
 Unit serial number: VL101C3302
 NAA: 10:22:33:44:ab:00:00:02
 Compression: factor 1 enabled 1
 Compression type: lzo
 Backoff: 400
# fifo: /var/tmp/thevtl

Drive: 13 CHANNEL: 00 TARGET: 00 LUN: 03
 Library ID: 10 Slot: 03
 Vendor identification: IBM
 Product identification: ULT3580-TD5
 Unit serial number: VL101C3303
 NAA: 10:22:33:44:ab:00:00:03
 Compression: factor 1 enabled 1
 Compression type: lzo
 Backoff: 400
# fifo: /var/tmp/thevtl

Drive: 14 CHANNEL: 00 TARGET: 00 LUN: 04
 Library ID: 10 Slot: 04
 Vendor identification: IBM
 Product identification: ULT3580-TD5
 Unit serial number: VL101C3304
 NAA: 10:22:33:44:ab:00:00:04
 Compression: factor 1 enabled 1
 Compression type: lzo
 Backoff: 400
# fifo: /var/tmp/thevtl

----------------------------------------------------------------------------------------

[root@thevtl 8:0]# smartctl -i /dev/sg9
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-431.el6.the.x86_64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

Vendor:               STK
Product:              L700
Revision:             0105
Serial number:       ▒   (non-readable)
Device type:          medium changer
Local Time is:        Mon Apr 28 17:08:33 2014 CST
Temperature Warning Disabled or Not Supported

-------------------------------------------------------------------------------------
[root@thevtl 8:0]# sg_inq -H -p 0x80 /dev/sg9
VPD INQUIRY, page code=0x80:
 00     08 80 00 12 08 80 00 0b  56 4c 31 30 31 43 33 33    ........VL101C33
 10     30 00 00 00 00 00                                   0.....
[root@thevtl 8:0]# sg_raw -r 1k /dev/sg9 12 01 80 00 FF 00
SCSI Status: Good

Sense Information:
sense buffer empty

Received 22 bytes of data:
 00     08 80 00 12 08 80 00 0b  56 4c 31 30 31 43 33 33    ........VL101C33
 10     30 00 00 00 00 00                                   0.....
[root@thevtl 8:0]#

-----------------------------------------------------------------------------------------------

after change serial number to 111:


[root@thevtl 8:0]# sg_inq -H -p 0x80 /dev/sg9
VPD INQUIRY, page code=0x80:
 00     08 80 00 12 08 80 00 0b  31 31 31 20 20 20 20 20    ........111
 10     20 00 00 00 00 00                                    .....
[root@thevtl 8:0]# sg_r
sg_raw                sg_read_block_limits  sg_reassign           sg_rtpg
sg_rbuf               sg_read_buffer        sg_requests
sg_rdac               sg_readcap            sg_reset
sg_read               sg_read_long          sg_rmsn
[root@thevtl 8:0]# sg_raw -r 1k /dev/sg9 12 01 80 00 FF 00
SCSI Status: Good

Sense Information:
sense buffer empty

Received 22 bytes of data:
 00     08 80 00 12 08 80 00 0b  31 31 31 20 20 20 20 20    ........111
 10     20 00 00 00 00 00                                    .....



ally

Reply | Threaded
Open this post in threaded view
|

Re: medium changer not serialized

Mark Harvey
Administrator
In reply to this post by ally_2020
Sorry for taking so long to fix this.

Is anybody able to test this patch (against 1.5-0 / mhvtl-2014-03-14).

0001-Correct-VPD-updates-for-library-personality-modules.patch
Regards from Australia
Mark Harvey