MHVTL + Ubuntu for use with Microsoft DPM 2010

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

MHVTL + Ubuntu for use with Microsoft DPM 2010

dfowler
Hi All,

Trying to get MHVTL to work with MS DPM 2010 so I can trick DPM in to using the virtual tapes on my hard drive for long term back ups (it only supports LT back up to tape).

From the looks I have mhvtl working properly.  When I do an lsscsi i can see the virtual tapes and the medium changers.

I think what I am having a hard time with is setting up the iscsi target on the linux box so I can see it in ISCSI Initiator on my Windows Server 2008 r2 box.

Does anyone have any recommendations or a tutorial on setting up the iscsi portion? I am assuming the LUN path has to point to the virtual tapes but I am not sure.

Here is the excerpt from /etc/iet/ietd.conf

Target iqn.2010-12.nhpn.mhvtl:storage.sys1
        Lun 0 Path=/dev/st0,Type=fileio,ScsiId=lun0,ScsiSN=lun0
        Lun 1 Path=/dev/st1,Type=fileio,ScsiID=lun1,ScsiSN=lun1
        Lun 2 Path=/dev/st2,Type=fileio,ScsiID=lun2,ScsiSN=lun2

Here is lsscsi output

[0:0:0:0]    disk    ATA      ST31000528AS     CC46  /dev/sda
[1:0:0:0]    cd/dvd  HL-DT-ST DVD-RW GSA-H60L  DC07  /dev/sr0
[7:0:0:0]    mediumx STK      L700             550V  /dev/sch0
[7:0:1:0]    tape    IBM      ULT3580-TD5      550V  /dev/st0
[7:0:2:0]    tape    IBM      ULT3580-TD5      550V  /dev/st1
[7:0:3:0]    tape    IBM      ULT3580-TD4      550V  /dev/st2
[7:0:4:0]    tape    IBM      ULT3580-TD4      550V  /dev/st3
[7:0:8:0]    mediumx SPECTRA  PYTHON           550V  /dev/sch1
[7:0:9:0]    tape    IBM      ULT3580-TD4      550V  /dev/st4
[7:0:10:0]   tape    IBM      ULT3580-TD4      550V  /dev/st5
[7:0:11:0]   tape    IBM      ULT3580-TD4      550V  /dev/st6
[7:0:12:0]   tape    IBM      ULT3580-TD4      550V  /dev/st7

and /etc/init.d/iscsitarget status returns that it is running

Any help would be greatly appreciated!

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + Ubuntu for use with Microsoft DPM 2010

Mark Harvey
The iSCSI Enterprise Target requires a 'passthrough' driver patch to be applied for it to work with non-disk devices. (i.e. Tape drives and medium changers).

You can find the passthru patch with little googling. Although last time I looked at this it was way, way behind the current IET code.

There are two other options:
- SCST (in-kernel SCSI Target); Search this forum for details. Many here have successfully patched the kernel and have used it with minimum problems. Note: As far as I'm aware, SCST does not allow the SECURITY PROTOCOL IN / SECURITY PROTOCOL OUT (SCSI T10 encryption op codes) though to the tape devices.

- STGT (SCSI Target Framework): This is an all in user-space solution. i.e. no custom kernels needed. It requires a few commands to be run to setup/configure after the 'tgtd' daemon is started. While the syntax is a little confusing to start with, once you have a working set of commands, to add them to a shell script is easy. See 'doc/README.passthrough' supplied with stgt source code.

Both SCST and STGT setup/configuration documentation can be found on this forum which may offer additional assistance with the package supplied documentation.

This is the first posting I've seen for use with MS DPM 2010. I'd love to see a follow up posting with your results.

Cheers
Mark
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + Ubuntu for use with Microsoft DPM 2010

dfowler
Hi Mark,

Thanks for the advice.. I will give STGT a try and see what I can come up with.  

I'm hoping this will work with DPM 2010 :) I don't understand why MS would only limit long term back up ability to tapes but hey, maybe this will trick it!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + Ubuntu for use with Microsoft DPM 2010

thermionic
I installed mhvtl and stgt and configured a HP library.

After installing the HP drivers, Windows and DPM could see the library, drives and tapes in the library, but the tape barcodes didn't show.



nia
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + Ubuntu for use with Microsoft DPM 2010

nia
Administrator
Can you post your /etc/mhvtl/device.conf & /etc/mhvtl/library_contents. , also /etc/mhvtl/mhvtl.conf

-nia
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + Ubuntu for use with Microsoft DPM 2010

Mark Harvey
In reply to this post by thermionic
A few things to try.
- a different library model (i.e. try STK/L80 or ????)
- Make sure the library daemon is running with Verbose 3, and forward syslog. Need to confirm the s/w is asking for barcode info. ( post syslog to forum )

Any diagnostic utilities with DPM ?
All (so far) s/w has little utilities to test/probe hardware.
NBU has scan/robtest
NetWorker has inquiry
nia can supply the TSM utility names.

Note to self - check if mtx is ported to windows...

Sent from my iPad

On Sep 18, 2011, at 21:56, "thermionic [via MHVTL - Linux Virtual Tape Library - Community Forums]"<[hidden email]> wrote:

I installed mhvtl and stgt and configured a HP library.

After installing the HP drivers, Windows and DPM could see the library, drives and tapes in the library, but the tape barcodes didn't show.






To start a new topic under MHVTL - Linux Virtual Tape Library - Community Forums, email [hidden email]
To unsubscribe from MHVTL - Linux Virtual Tape Library - Community Forums, click here.
nia
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + Ubuntu for use with Microsoft DPM 2010

nia
Administrator

I have used mtx for windows before .. you can download here:

http://sourceforge.net/projects/mtx/files/Windows/1.3.12/mtx-1.3.12.zip


An example below also:
C:\mtx-1.3.12>mtx -f Changer0 status
  Storage Changer Changer0:5 Drives, 25 Slots ( 5 Import/Export )
Data Transfer Element 0:Empty
Data Transfer Element 1:Empty
Data Transfer Element 2:Empty
Data Transfer Element 3:Empty
Data Transfer Element 4:Empty
      Storage Element 1:Full :VolumeTag=STH001L4
      Storage Element 2:Full :VolumeTag=STH002L4
      Storage Element 3:Full :VolumeTag=STH003L4
      Storage Element 4:Full :VolumeTag=STH004L4
      Storage Element 5:Full :VolumeTag=STH005L4
      Storage Element 6:Full :VolumeTag=STH006L4
      Storage Element 7:Full :VolumeTag=STH007L4
      Storage Element 8:Full :VolumeTag=STH008L4
      Storage Element 9:Full :VolumeTag=STH009L4
      Storage Element 10:Full :VolumeTag=STH010L4
      Storage Element 11:Full :VolumeTag=STH011L4
      Storage Element 12:Full :VolumeTag=STH012L4
      Storage Element 13:Full :VolumeTag=STH013L4
      Storage Element 14:Full :VolumeTag=STH014L4
      Storage Element 15:Full :VolumeTag=STH015L4
      Storage Element 16:Full :VolumeTag=STH016L4
      Storage Element 17:Full :VolumeTag=STH017L4
      Storage Element 18:Full :VolumeTag=STH018L4
      Storage Element 19:Full :VolumeTag=STH019L4
      Storage Element 20:Full :VolumeTag=CLN020L4
      Storage Element 21 IMPORT/EXPORT:Empty
      Storage Element 22 IMPORT/EXPORT:Empty
      Storage Element 23 IMPORT/EXPORT:Empty
      Storage Element 24 IMPORT/EXPORT:Empty
      Storage Element 25 IMPORT/EXPORT:Empty

C:\mtx-1.3.12>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + Ubuntu for use with Microsoft DPM 2010

thermionic
In reply to this post by nia
cat /etc/mhvtl/device.conf

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

Library: 50 CHANNEL: 1 TARGET: 00 LUN: 00
 Vendor identification: HP
 Product identification: MSL G3 Series
 Product revision level: 2.00
 Unit serial number: 80000050
 NAA: 50:11:22:33:ab:1:00:00

Drive: 51 CHANNEL: 1 TARGET: 00 LUN: 01
 Library ID: 50 Slot: 01
 Vendor identification: HP
 Product identification: Ultrium 1-SCSI
 Product revision level: N11G
 Unit serial number: 80000051
 NAA: 50:11:22:33:ab:1:00:01
 Compression: factor 1 enabled 1

cat /etc/mhvtl/library_contents.50

Drive1:

MAP 1:

Picker 1:

Slot 1: HPS001L1
Slot 2: HPS002L1
Slot 3: HPS003L1
Slot 4: HPS004L1
Slot 5: HPS005L1
Slot 6: HPS006L1
Slot 7: HPS007L1
Slot 8: HPS008L1
Slot 9: HPS009L1
Slot 10: HPS010L1
Slot 11: HPS011L1
Slot 12: HPS012L1
Slot 13: HPS013L1
Slot 14: HPS014L1
Slot 15: HPS015L1
Slot 16: HPS016L1
Slot 17: HPS017L1
Slot 18: HPS018L1
Slot 19: HPS019L1
Slot 20: CLN020L1

cat  /etc/mhvtl/mhvtl.conf

# Home directory for config file(s)
MHVTL_CONFIG_PATH=/etc/mhvtl

# Default media capacity (500 M)
CAPACITY=500

# Set default verbosity [0|1|2|3]
VERBOSE=1

# Set kernel module debuging [0|1]
VTL_DEBUG=0
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: MHVTL + Ubuntu for use with Microsoft DPM 2010

thermionic
In reply to this post by nia
mtx appears to be able to see the barcodes


C:\mtx\mtx-1.3.12>mtx -f changer1 status
  Storage Changer changer1:1 Drives, 21 Slots ( 1 Import/Export )
Data Transfer Element 0:Empty
      Storage Element 1:Full :VolumeTag=HPS001L1
      Storage Element 2:Full :VolumeTag=HPS002L1
      Storage Element 3:Full :VolumeTag=HPS003L1
      Storage Element 4:Full :VolumeTag=HPS004L1
      Storage Element 5:Full :VolumeTag=HPS005L1
      Storage Element 6:Full :VolumeTag=HPS006L1
      Storage Element 7:Full :VolumeTag=HPS007L1
      Storage Element 8:Full :VolumeTag=HPS008L1
      Storage Element 9:Full :VolumeTag=HPS009L1
      Storage Element 10:Full :VolumeTag=HPS010L1
      Storage Element 11:Full :VolumeTag=HPS011L1
      Storage Element 12:Full :VolumeTag=HPS012L1
      Storage Element 13:Full :VolumeTag=HPS013L1
      Storage Element 14:Full :VolumeTag=HPS014L1
      Storage Element 15:Full :VolumeTag=HPS015L1
      Storage Element 16:Full :VolumeTag=HPS016L1
      Storage Element 17:Full :VolumeTag=HPS017L1
      Storage Element 18:Full :VolumeTag=HPS018L1
      Storage Element 19:Full :VolumeTag=HPS019L1
      Storage Element 20:Full :VolumeTag=CLN020L1
      Storage Element 21 IMPORT/EXPORT:Empty
Loading...