mhvtl 1.5.3 with NetBackup v7.7.1

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

mhvtl 1.5.3 with NetBackup v7.7.1

sdo
Hi Forum,
CentOS 6.7 minimal with mhvtl 1.5.3
Windows 2008 R2 SP1 with NetBackup v7.7.1.
I've got as far as sharing the devices across via iSCSI - and NetBackup "scan" looks ok, apart from the missing tape drive serial numbers for scan -changer.

Does anyone have a working device.conf and library_contents.N that they might be willing to share with me?
Or point me at the location for example files?
I was trying to use an HP MSL6000 config that I found on the web, but the device serialization of 3 doesn't work with NetBackup, and I'm finding it difficult to locate something that works with NetBackup.

Did I miss something obvious, as I can't find a range of examples in the download kits?
Thank you.
Dave.
Reply | Threaded
Open this post in threaded view
|

Re: mhvtl 1.5.3 with NetBackup v7.7.1

Mark Harvey
Administrator
Can you please provide me with your device.conf - I'd like to check this end to identify why NetBackup does not like this.

I tend to use a STK L700 library type. NetBackup is quite forgiving in the number of drives / slots you configure in the L700.

The following does work with NetBackup.

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

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


Please let me know if you have any further issues with this.
Regards from Australia
Mark Harvey
sdo
Reply | Threaded
Open this post in threaded view
|

Re: mhvtl 1.5.3 with NetBackup v7.7.1

sdo
Hi Mark,

Thanks for getting back to me:

The details of my test CentOS 6.7 minimal + mhvtl env are:

11/02/2016 10:27:37  Step 27 - Final summary...
11/02/2016 10:27:37  
11/02/2016 10:27:37  List of SCSI devices...
[1:0:0:0]    cd/dvd  NECVMWar VMware IDE CDR10 1.00  /dev/sr0   /dev/sg0
[2:0:0:0]    disk    VMware,  VMware Virtual S 1.0   /dev/sda   /dev/sg1
[2:0:1:0]    disk    VMware,  VMware Virtual S 1.0   /dev/sdb   /dev/sg2
[3:3:0:0]    mediumx HP       MSL6000 Series   2.00  /dev/sch0  /dev/sg8
[3:3:0:1]    tape    HP       Ultrium 3-SCSI   N11G  /dev/st0   /dev/sg6
[3:3:0:2]    tape    HP       Ultrium 3-SCSI   N11G  /dev/st1   /dev/sg7
11/02/2016 10:27:38  
11/02/2016 10:27:38  Versions installed...
11/02/2016 10:27:38  ...OS     version:  2.6.32-573.18.1.el6.x86_64
11/02/2016 10:27:38  ...mhvtl  version:  0.18.17
11/02/2016 10:27:38  ...vtlcmd version:  1.5.3-git-9722bc3
11/02/2016 10:27:38  ...tgt    version:  1.0.24
11/02/2016 10:27:38  ...iscsi  version:  6.2.0-873.13.el6
11/02/2016 10:27:38  ...iscsi  target:   iqn.2016-02.uk.sdo:tgt:vtl01.localdomain
11/02/2016 10:27:38  ...done...


-bash-4.1$ cat mhvtl.conf 
MHVTL_CONFIG_PATH=/etc/mhvtl
CAPACITY=50
VERBOSE=1
VTL_DEBUG=0


-bash-4.1$ cat device.conf 
Library: 90 CHANNEL: 3 TARGET: 00 LUN: 00
 Vendor identification: HP
 Product identification: MSL6000 Series
 Product revision level: 2.00
 Unit serial number: 80000090
 NAA: 90:11:22:33:ab:03:00:00
 Home directory: /opt/mhvtl/90
 fifo: /var/tmp/mhvtl

Drive: 91 CHANNEL: 3 TARGET: 00 LUN: 01
 Library ID: 90 Slot: 01
 Vendor identification: HP
 Product identification: Ultrium 3-SCSI
 Product revision level: N11G
 Unit serial number: 80000091
 NAA: 90:11:22:33:ab:03:00:01
 Compression: factor 1 enabled 1
 fifo: /var/tmp/mhvtl

Drive: 92 CHANNEL: 3 TARGET: 00 LUN: 02
 Library ID: 90 Slot: 02
 Vendor identification: HP
 Product identification: Ultrium 3-SCSI
 Product revision level: N11G
 Unit serial number: 80000092
 NAA: 90:11:22:33:ab:03:00:02
 Compression: factor 1 enabled 1
 fifo: /var/tmp/mhvtl


-bash-4.1$ cat library_contents.90 
Drive1:
Drive2:

MAP 1:
MAP 2:
MAP 3:
MAP 4:

Picker 1:

Slot 1: HPS001L3
Slot 2: HPS002L3
Slot 3: HPS003L3
Slot 4: HPS004L3
Slot 5: HPS005L3
Slot 6: HPS006L3
Slot 7: HPS007L3
Slot 8: HPS008L3
Slot 9: HPS009L3
Slot 10: HPS010L3
Slot 11: HPS011L3
Slot 12: HPS012L3
Slot 13: HPS013L3
Slot 14: HPS014L3
Slot 15: HPS015L3
Slot 16: HPS016L3
Slot 17: HPS017L3
Slot 18: HPS018L3
Slot 19: HPS019L3
Slot 20: HPS020L3
Slot 21: HPS021L3
Slot 22: HPS022L3
Slot 23: HPS023L3
Slot 24: HPS024L3
Slot 25: HPS025L3
Slot 26: HPS026L3
Slot 27: HPS027L3
Slot 28: HPS028L3
Slot 29: HPS029L3
Slot 30: HPS030L3
Slot 31: HPS031L3
Slot 32: HPS032L3
Slot 33: HPS033L3
Slot 34: HPS034L3
Slot 35: HPS035L3
Slot 36: HPS036L3
Slot 37: HPS037L3
Slot 38: HPS038L3
Slot 39: HPS039L3
Slot 40: HPS040L3
Slot 41: HPS041L3
Slot 42: HPS042L3
Slot 43: HPS043L3
Slot 44: HPS044L3
Slot 45: HPS045L3
Slot 46: HPS046L3
Slot 47: HPS047L3
Slot 48: CLN048L3



Thanks for looking at this.

BTW, I've knocked together a simple bash script to configure an mhvtl env, which I hope to post up on the Veritas NetBackup Forum once I've I've got it clean-up - so that anyone else can get an "mhvtl" setup quickly for testing with NetBackup.  Would you like to see the script as it stands today?  It's a bit ghetto, as it's my first Linux/Unix shell script over a few lines long, and a buddy of mine is helping my to correct the style and use of some of the constructs.  I'm still working on it, with I hope just a few more final tweaks before I can publish it on the forum.

Regards,
Dave.




On 14 Feb 2016, at 23:34, Mark Harvey [via mhVTL - A Linux Virtual Tape Library] <[hidden email]> wrote:

Can you please provide me with your device.conf - I'd like to check this end to identify why NetBackup does not like this.

I tend to use a STK L700 library type. NetBackup is quite forgiving in the number of drives / slots you configure in the L700.

The following does work with NetBackup.

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

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


Please let me know if you have any further issues with this.
Regards from Australia
Mark Harvey



If you reply to this email, your message will be added to the discussion below:
http://mhvtl-a-linux-virtual-tape-library.966029.n3.nabble.com/mhvtl-1-5-3-with-NetBackup-v7-7-1-tp4025965p4025966.html
To unsubscribe from mhvtl 1.5.3 with NetBackup v7.7.1, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: mhvtl 1.5.3 with NetBackup v7.7.1

Mark Harvey
Administrator
Thanks for the info.. I'll check it out tomorrow.

For what it's worth:
The default vtl values are similar to that of a real library (8 char barcode etc)..
They could be much more NetBackup friendly, but I purposely didn't as a "training" exercise.. I do have a series of NetBackup commands I'm happy to share which will configure NetBackup media generation rules, barcode rules, setting up scratch pool etc - all following best practices of a good tape setup with NetBackup.

Sent from my iPad

On Feb 15, 2016, at 19:51, sdo [via mhVTL - A Linux Virtual Tape Library] <[hidden email]> wrote:

Hi Mark,

Thanks for getting back to me:

The details of my test CentOS 6.7 minimal + mhvtl env are:

11/02/2016 10:27:37  Step 27 - Final summary...
11/02/2016 10:27:37  
11/02/2016 10:27:37  List of SCSI devices...
[1:0:0:0]    cd/dvd  NECVMWar VMware IDE CDR10 1.00  /dev/sr0   /dev/sg0
[2:0:0:0]    disk    VMware,  VMware Virtual S 1.0   /dev/sda   /dev/sg1
[2:0:1:0]    disk    VMware,  VMware Virtual S 1.0   /dev/sdb   /dev/sg2
[3:3:0:0]    mediumx HP       MSL6000 Series   2.00  /dev/sch0  /dev/sg8
[3:3:0:1]    tape    HP       Ultrium 3-SCSI   N11G  /dev/st0   /dev/sg6
[3:3:0:2]    tape    HP       Ultrium 3-SCSI   N11G  /dev/st1   /dev/sg7
11/02/2016 10:27:38  
11/02/2016 10:27:38  Versions installed...
11/02/2016 10:27:38  ...OS     version:  2.6.32-573.18.1.el6.x86_64
11/02/2016 10:27:38  ...mhvtl  version:  0.18.17
11/02/2016 10:27:38  ...vtlcmd version:  1.5.3-git-9722bc3
11/02/2016 10:27:38  ...tgt    version:  1.0.24
11/02/2016 10:27:38  ...iscsi  version:  6.2.0-873.13.el6
11/02/2016 10:27:38  ...iscsi  target:   iqn.2016-02.uk.sdo:tgt:vtl01.localdomain
11/02/2016 10:27:38  ...done...


-bash-4.1$ cat mhvtl.conf 
MHVTL_CONFIG_PATH=/etc/mhvtl
CAPACITY=50
VERBOSE=1
VTL_DEBUG=0


-bash-4.1$ cat device.conf 
Library: 90 CHANNEL: 3 TARGET: 00 LUN: 00
 Vendor identification: HP
 Product identification: MSL6000 Series
 Product revision level: 2.00
 Unit serial number: 80000090
 NAA: 90:11:22:33:ab:03:00:00
 Home directory: /opt/mhvtl/90
 fifo: /var/tmp/mhvtl

Drive: 91 CHANNEL: 3 TARGET: 00 LUN: 01
 Library ID: 90 Slot: 01
 Vendor identification: HP
 Product identification: Ultrium 3-SCSI
 Product revision level: N11G
 Unit serial number: 80000091
 NAA: 90:11:22:33:ab:03:00:01
 Compression: factor 1 enabled 1
 fifo: /var/tmp/mhvtl

Drive: 92 CHANNEL: 3 TARGET: 00 LUN: 02
 Library ID: 90 Slot: 02
 Vendor identification: HP
 Product identification: Ultrium 3-SCSI
 Product revision level: N11G
 Unit serial number: 80000092
 NAA: 90:11:22:33:ab:03:00:02
 Compression: factor 1 enabled 1
 fifo: /var/tmp/mhvtl


-bash-4.1$ cat library_contents.90 
Drive1:
Drive2:

MAP 1:
MAP 2:
MAP 3:
MAP 4:

Picker 1:

Slot 1: HPS001L3
Slot 2: HPS002L3
Slot 3: HPS003L3
Slot 4: HPS004L3
Slot 5: HPS005L3
Slot 6: HPS006L3
Slot 7: HPS007L3
Slot 8: HPS008L3
Slot 9: HPS009L3
Slot 10: HPS010L3
Slot 11: HPS011L3
Slot 12: HPS012L3
Slot 13: HPS013L3
Slot 14: HPS014L3
Slot 15: HPS015L3
Slot 16: HPS016L3
Slot 17: HPS017L3
Slot 18: HPS018L3
Slot 19: HPS019L3
Slot 20: HPS020L3
Slot 21: HPS021L3
Slot 22: HPS022L3
Slot 23: HPS023L3
Slot 24: HPS024L3
Slot 25: HPS025L3
Slot 26: HPS026L3
Slot 27: HPS027L3
Slot 28: HPS028L3
Slot 29: HPS029L3
Slot 30: HPS030L3
Slot 31: HPS031L3
Slot 32: HPS032L3
Slot 33: HPS033L3
Slot 34: HPS034L3
Slot 35: HPS035L3
Slot 36: HPS036L3
Slot 37: HPS037L3
Slot 38: HPS038L3
Slot 39: HPS039L3
Slot 40: HPS040L3
Slot 41: HPS041L3
Slot 42: HPS042L3
Slot 43: HPS043L3
Slot 44: HPS044L3
Slot 45: HPS045L3
Slot 46: HPS046L3
Slot 47: HPS047L3
Slot 48: CLN048L3



Thanks for looking at this.

BTW, I've knocked together a simple bash script to configure an mhvtl env, which I hope to post up on the Veritas NetBackup Forum once I've I've got it clean-up - so that anyone else can get an "mhvtl" setup quickly for testing with NetBackup.  Would you like to see the script as it stands today?  It's a bit ghetto, as it's my first Linux/Unix shell script over a few lines long, and a buddy of mine is helping my to correct the style and use of some of the constructs.  I'm still working on it, with I hope just a few more final tweaks before I can publish it on the forum.

Regards,
Dave.




On 14 Feb 2016, at 23:34, Mark Harvey [via mhVTL - A Linux Virtual Tape Library] <[hidden email]> wrote:

Can you please provide me with your device.conf - I'd like to check this end to identify why NetBackup does not like this.

I tend to use a STK L700 library type. NetBackup is quite forgiving in the number of drives / slots you configure in the L700.

The following does work with NetBackup.

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

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


Please let me know if you have any further issues with this.
Regards from Australia
Mark Harvey



If you reply to this email, your message will be added to the discussion below:
http://mhvtl-a-linux-virtual-tape-library.966029.n3.nabble.com/mhvtl-1-5-3-with-NetBackup-v7-7-1-tp4025965p4025966.html
To unsubscribe from mhvtl 1.5.3 with NetBackup v7.7.1, click here.
NAML




If you reply to this email, your message will be added to the discussion below:
http://mhvtl-a-linux-virtual-tape-library.966029.n3.nabble.com/mhvtl-1-5-3-with-NetBackup-v7-7-1-tp4025965p4025967.html
To start a new topic under mhVTL - A Linux Virtual Tape Library, email [hidden email]
To unsubscribe from mhVTL - A Linux Virtual Tape Library, click here.
NAML
Regards from Australia
Mark Harvey
Reply | Threaded
Open this post in threaded view
|

Re: mhvtl 1.5.3 with NetBackup v7.7.1

Mark Harvey
Administrator
In reply to this post by sdo
p.s.

If you are willing to share your script(s), I'm happy to add it to the scripts/ directory of mhVTL. Others may find it useful..

Sent from my iPad

On Feb 15, 2016, at 19:51, sdo [via mhVTL - A Linux Virtual Tape Library] <[hidden email]> wrote:

Hi Mark,

Thanks for getting back to me:

The details of my test CentOS 6.7 minimal + mhvtl env are:

11/02/2016 10:27:37  Step 27 - Final summary...
11/02/2016 10:27:37  
11/02/2016 10:27:37  List of SCSI devices...
[1:0:0:0]    cd/dvd  NECVMWar VMware IDE CDR10 1.00  /dev/sr0   /dev/sg0
[2:0:0:0]    disk    VMware,  VMware Virtual S 1.0   /dev/sda   /dev/sg1
[2:0:1:0]    disk    VMware,  VMware Virtual S 1.0   /dev/sdb   /dev/sg2
[3:3:0:0]    mediumx HP       MSL6000 Series   2.00  /dev/sch0  /dev/sg8
[3:3:0:1]    tape    HP       Ultrium 3-SCSI   N11G  /dev/st0   /dev/sg6
[3:3:0:2]    tape    HP       Ultrium 3-SCSI   N11G  /dev/st1   /dev/sg7
11/02/2016 10:27:38  
11/02/2016 10:27:38  Versions installed...
11/02/2016 10:27:38  ...OS     version:  2.6.32-573.18.1.el6.x86_64
11/02/2016 10:27:38  ...mhvtl  version:  0.18.17
11/02/2016 10:27:38  ...vtlcmd version:  1.5.3-git-9722bc3
11/02/2016 10:27:38  ...tgt    version:  1.0.24
11/02/2016 10:27:38  ...iscsi  version:  6.2.0-873.13.el6
11/02/2016 10:27:38  ...iscsi  target:   iqn.2016-02.uk.sdo:tgt:vtl01.localdomain
11/02/2016 10:27:38  ...done...


-bash-4.1$ cat mhvtl.conf 
MHVTL_CONFIG_PATH=/etc/mhvtl
CAPACITY=50
VERBOSE=1
VTL_DEBUG=0


-bash-4.1$ cat device.conf 
Library: 90 CHANNEL: 3 TARGET: 00 LUN: 00
 Vendor identification: HP
 Product identification: MSL6000 Series
 Product revision level: 2.00
 Unit serial number: 80000090
 NAA: 90:11:22:33:ab:03:00:00
 Home directory: /opt/mhvtl/90
 fifo: /var/tmp/mhvtl

Drive: 91 CHANNEL: 3 TARGET: 00 LUN: 01
 Library ID: 90 Slot: 01
 Vendor identification: HP
 Product identification: Ultrium 3-SCSI
 Product revision level: N11G
 Unit serial number: 80000091
 NAA: 90:11:22:33:ab:03:00:01
 Compression: factor 1 enabled 1
 fifo: /var/tmp/mhvtl

Drive: 92 CHANNEL: 3 TARGET: 00 LUN: 02
 Library ID: 90 Slot: 02
 Vendor identification: HP
 Product identification: Ultrium 3-SCSI
 Product revision level: N11G
 Unit serial number: 80000092
 NAA: 90:11:22:33:ab:03:00:02
 Compression: factor 1 enabled 1
 fifo: /var/tmp/mhvtl


-bash-4.1$ cat library_contents.90 
Drive1:
Drive2:

MAP 1:
MAP 2:
MAP 3:
MAP 4:

Picker 1:

Slot 1: HPS001L3
Slot 2: HPS002L3
Slot 3: HPS003L3
Slot 4: HPS004L3
Slot 5: HPS005L3
Slot 6: HPS006L3
Slot 7: HPS007L3
Slot 8: HPS008L3
Slot 9: HPS009L3
Slot 10: HPS010L3
Slot 11: HPS011L3
Slot 12: HPS012L3
Slot 13: HPS013L3
Slot 14: HPS014L3
Slot 15: HPS015L3
Slot 16: HPS016L3
Slot 17: HPS017L3
Slot 18: HPS018L3
Slot 19: HPS019L3
Slot 20: HPS020L3
Slot 21: HPS021L3
Slot 22: HPS022L3
Slot 23: HPS023L3
Slot 24: HPS024L3
Slot 25: HPS025L3
Slot 26: HPS026L3
Slot 27: HPS027L3
Slot 28: HPS028L3
Slot 29: HPS029L3
Slot 30: HPS030L3
Slot 31: HPS031L3
Slot 32: HPS032L3
Slot 33: HPS033L3
Slot 34: HPS034L3
Slot 35: HPS035L3
Slot 36: HPS036L3
Slot 37: HPS037L3
Slot 38: HPS038L3
Slot 39: HPS039L3
Slot 40: HPS040L3
Slot 41: HPS041L3
Slot 42: HPS042L3
Slot 43: HPS043L3
Slot 44: HPS044L3
Slot 45: HPS045L3
Slot 46: HPS046L3
Slot 47: HPS047L3
Slot 48: CLN048L3



Thanks for looking at this.

BTW, I've knocked together a simple bash script to configure an mhvtl env, which I hope to post up on the Veritas NetBackup Forum once I've I've got it clean-up - so that anyone else can get an "mhvtl" setup quickly for testing with NetBackup.  Would you like to see the script as it stands today?  It's a bit ghetto, as it's my first Linux/Unix shell script over a few lines long, and a buddy of mine is helping my to correct the style and use of some of the constructs.  I'm still working on it, with I hope just a few more final tweaks before I can publish it on the forum.

Regards,
Dave.




On 14 Feb 2016, at 23:34, Mark Harvey [via mhVTL - A Linux Virtual Tape Library] <[hidden email]> wrote:

Can you please provide me with your device.conf - I'd like to check this end to identify why NetBackup does not like this.

I tend to use a STK L700 library type. NetBackup is quite forgiving in the number of drives / slots you configure in the L700.

The following does work with NetBackup.

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

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


Please let me know if you have any further issues with this.
Regards from Australia
Mark Harvey



If you reply to this email, your message will be added to the discussion below:
http://mhvtl-a-linux-virtual-tape-library.966029.n3.nabble.com/mhvtl-1-5-3-with-NetBackup-v7-7-1-tp4025965p4025966.html
To unsubscribe from mhvtl 1.5.3 with NetBackup v7.7.1, click here.
NAML




If you reply to this email, your message will be added to the discussion below:
http://mhvtl-a-linux-virtual-tape-library.966029.n3.nabble.com/mhvtl-1-5-3-with-NetBackup-v7-7-1-tp4025965p4025967.html
To start a new topic under mhVTL - A Linux Virtual Tape Library, email [hidden email]
To unsubscribe from mhVTL - A Linux Virtual Tape Library, click here.
NAML
Regards from Australia
Mark Harvey
sdo
Reply | Threaded
Open this post in threaded view
|

Re: mhvtl 1.5.3 with NetBackup v7.7.1

sdo
Hi Mark,
Yes of course, I've absolutely no problem with sharing the script in two places.  I just need a little more time to sweeten it up.
But first I also just need to prove to myself that it really is actually able to plonk a set of 'config' files in place, which NetBackup v7.7.1 will co-operate with.   I don't mind which library type it does actually result in.
Thanks again.
Dave.


On 15 Feb 2016, at 09:51, Mark Harvey [via mhVTL - A Linux Virtual Tape Library] <[hidden email]> wrote:

p.s.

If you are willing to share your script(s), I'm happy to add it to the scripts/ directory of mhVTL. Others may find it useful..

Sent from my iPad

On Feb 15, 2016, at 19:51, sdo [via mhVTL - A Linux Virtual Tape Library] <<a href="x-msg://63/user/SendEmail.jtp?type=node&amp;node=4025969&amp;i=0" target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote:

Hi Mark,

Thanks for getting back to me:

The details of my test CentOS 6.7 minimal + mhvtl env are:

11/02/2016 10:27:37  Step 27 - Final summary...
11/02/2016 10:27:37  
11/02/2016 10:27:37  List of SCSI devices...
[1:0:0:0]    cd/dvd  NECVMWar VMware IDE CDR10 1.00  /dev/sr0   /dev/sg0
[2:0:0:0]    disk    VMware,  VMware Virtual S 1.0   /dev/sda   /dev/sg1
[2:0:1:0]    disk    VMware,  VMware Virtual S 1.0   /dev/sdb   /dev/sg2
[3:3:0:0]    mediumx HP       MSL6000 Series   2.00  /dev/sch0  /dev/sg8
[3:3:0:1]    tape    HP       Ultrium 3-SCSI   N11G  /dev/st0   /dev/sg6
[3:3:0:2]    tape    HP       Ultrium 3-SCSI   N11G  /dev/st1   /dev/sg7
11/02/2016 10:27:38  
11/02/2016 10:27:38  Versions installed...
11/02/2016 10:27:38  ...OS     version:  2.6.32-573.18.1.el6.x86_64
11/02/2016 10:27:38  ...mhvtl  version:  0.18.17
11/02/2016 10:27:38  ...vtlcmd version:  1.5.3-git-9722bc3
11/02/2016 10:27:38  ...tgt    version:  1.0.24
11/02/2016 10:27:38  ...iscsi  version:  6.2.0-873.13.el6
11/02/2016 10:27:38  ...iscsi  target:   iqn.2016-02.uk.sdo:tgt:vtl01.localdomain
11/02/2016 10:27:38  ...done...


-bash-4.1$ cat mhvtl.conf 
MHVTL_CONFIG_PATH=/etc/mhvtl
CAPACITY=50
VERBOSE=1
VTL_DEBUG=0


-bash-4.1$ cat device.conf 
Library: 90 CHANNEL: 3 TARGET: 00 LUN: 00
 Vendor identification: HP
 Product identification: MSL6000 Series
 Product revision level: 2.00
 Unit serial number: 80000090
 NAA: 90:11:22:33:ab:03:00:00
 Home directory: /opt/mhvtl/90
 fifo: /var/tmp/mhvtl

Drive: 91 CHANNEL: 3 TARGET: 00 LUN: 01
 Library ID: 90 Slot: 01
 Vendor identification: HP
 Product identification: Ultrium 3-SCSI
 Product revision level: N11G
 Unit serial number: 80000091
 NAA: 90:11:22:33:ab:03:00:01
 Compression: factor 1 enabled 1
 fifo: /var/tmp/mhvtl

Drive: 92 CHANNEL: 3 TARGET: 00 LUN: 02
 Library ID: 90 Slot: 02
 Vendor identification: HP
 Product identification: Ultrium 3-SCSI
 Product revision level: N11G
 Unit serial number: 80000092
 NAA: 90:11:22:33:ab:03:00:02
 Compression: factor 1 enabled 1
 fifo: /var/tmp/mhvtl


-bash-4.1$ cat library_contents.90 
Drive1:
Drive2:

MAP 1:
MAP 2:
MAP 3:
MAP 4:

Picker 1:

Slot 1: HPS001L3
Slot 2: HPS002L3
Slot 3: HPS003L3
Slot 4: HPS004L3
Slot 5: HPS005L3
Slot 6: HPS006L3
Slot 7: HPS007L3
Slot 8: HPS008L3
Slot 9: HPS009L3
Slot 10: HPS010L3
Slot 11: HPS011L3
Slot 12: HPS012L3
Slot 13: HPS013L3
Slot 14: HPS014L3
Slot 15: HPS015L3
Slot 16: HPS016L3
Slot 17: HPS017L3
Slot 18: HPS018L3
Slot 19: HPS019L3
Slot 20: HPS020L3
Slot 21: HPS021L3
Slot 22: HPS022L3
Slot 23: HPS023L3
Slot 24: HPS024L3
Slot 25: HPS025L3
Slot 26: HPS026L3
Slot 27: HPS027L3
Slot 28: HPS028L3
Slot 29: HPS029L3
Slot 30: HPS030L3
Slot 31: HPS031L3
Slot 32: HPS032L3
Slot 33: HPS033L3
Slot 34: HPS034L3
Slot 35: HPS035L3
Slot 36: HPS036L3
Slot 37: HPS037L3
Slot 38: HPS038L3
Slot 39: HPS039L3
Slot 40: HPS040L3
Slot 41: HPS041L3
Slot 42: HPS042L3
Slot 43: HPS043L3
Slot 44: HPS044L3
Slot 45: HPS045L3
Slot 46: HPS046L3
Slot 47: HPS047L3
Slot 48: CLN048L3



Thanks for looking at this.

BTW, I've knocked together a simple bash script to configure an mhvtl env, which I hope to post up on the Veritas NetBackup Forum once I've I've got it clean-up - so that anyone else can get an "mhvtl" setup quickly for testing with NetBackup.  Would you like to see the script as it stands today?  It's a bit ghetto, as it's my first Linux/Unix shell script over a few lines long, and a buddy of mine is helping my to correct the style and use of some of the constructs.  I'm still working on it, with I hope just a few more final tweaks before I can publish it on the forum.

Regards,
Dave.




On 14 Feb 2016, at 23:34, Mark Harvey [via mhVTL - A Linux Virtual Tape Library] <<a href="x-msg://63/user/SendEmail.jtp?type=node&amp;node=4025967&amp;i=0" target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote:

Can you please provide me with your device.conf - I'd like to check this end to identify why NetBackup does not like this.

I tend to use a STK L700 library type. NetBackup is quite forgiving in the number of drives / slots you configure in the L700.

The following does work with NetBackup.

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

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


Please let me know if you have any further issues with this.
Regards from Australia
Mark Harvey



If you reply to this email, your message will be added to the discussion below:
http://mhvtl-a-linux-virtual-tape-library.966029.n3.nabble.com/mhvtl-1-5-3-with-NetBackup-v7-7-1-tp4025965p4025966.html
To unsubscribe from mhvtl 1.5.3 with NetBackup v7.7.1, click here.
NAML




If you reply to this email, your message will be added to the discussion below:
http://mhvtl-a-linux-virtual-tape-library.966029.n3.nabble.com/mhvtl-1-5-3-with-NetBackup-v7-7-1-tp4025965p4025967.html
To start a new topic under mhVTL - A Linux Virtual Tape Library, email <a href="x-msg://63/user/SendEmail.jtp?type=node&amp;node=4025969&amp;i=1" target="_top" rel="nofollow" link="external" class="">[hidden email]
To unsubscribe from mhVTL - A Linux Virtual Tape Library, click here.
NAML
Regards from Australia
Mark Harvey



If you reply to this email, your message will be added to the discussion below:
http://mhvtl-a-linux-virtual-tape-library.966029.n3.nabble.com/mhvtl-1-5-3-with-NetBackup-v7-7-1-tp4025965p4025969.html
To unsubscribe from mhvtl 1.5.3 with NetBackup v7.7.1, click here.
NAML

sdo
Reply | Threaded
Open this post in threaded view
|

Re: mhvtl 1.5.3 with NetBackup v7.7.1

sdo
Hey Mark - messaged you via the NetBackup community forum with a copy of the script.  It's not ready for proper publishing/sharing just yet - still polishing it - but if you want to give a bash, I just hope it works  :/
Reply | Threaded
Open this post in threaded view
|

Re: mhvtl 1.5.3 with NetBackup v7.7.1

Mark Harvey
Administrator
I've just pushed out a set of changes from my backlog into github..

I've identified the root cause behind the HP MSL library not returning the drive serial numbers.
Fundamentally, it conforms to SCSI-2 which doesn't really support the feature. (No DVCID bit specified in scsi cdb).
However, it does place the information into the alternate Volume Tag (AVolTag) fields. I wasn't setting the 'AVolTag' as valid in the returned data - hence NetBackup was ignoring the data.

Commit:
commit d234eefd4c824d549a89f1229a4b376c7094765a
Author: Mark Harvey <markh794@gmail.com>
Date:   Tue Feb 16 15:35:37 2016 +1100

    Update HP Library emulation
    
    HP has no 'dvcid' bit defined in the cdb.
    Fake it using new flag : no_dvcid_flag in personality module
Regards from Australia
Mark Harvey
Reply | Threaded
Open this post in threaded view
|

Re: mhvtl 1.5.3 with NetBackup v7.7.1

Mark Harvey
Administrator
In reply to this post by sdo
sdo wrote
Hey Mark - messaged you via the NetBackup community forum with a copy of the script.  It's not ready for proper publishing/sharing just yet - still polishing it - but if you want to give a bash, I just hope it works  :/
I'm getting notification that there is a message for me - but I'm getting a 'page not found' when I attempt to retrieve it.

Any chance of sending to either mhvtl2@gmail.com or markh794@gmail.com ?
Regards from Australia
Mark Harvey
sdo
Reply | Threaded
Open this post in threaded view
|

Re: mhvtl 1.5.3 with NetBackup v7.7.1

sdo
Hi Mark,

I plan to incorporate your advice over the next few days.


Latest script version:



I've just installed again in a CentOS 6.7 minimal test VM, and the versions are now:

18/02/2016 19:01:06  ...versions installed...
18/02/2016 19:01:06  ...OS     version:    2.6.32-573.18.1.el6.x86_64
18/02/2016 19:01:06  ...mhvtl  version:    0.18.17
18/02/2016 19:01:06  ...vtlcmd version:    1.5.3-git-1ef7609
18/02/2016 19:01:06  ...tgt    version:    1.0.24
18/02/2016 19:01:06  ...iscsi  version:    6.2.0-873.13.el6
18/02/2016 19:01:06  ...iscsi  listenner:  10.0.9.242
18/02/2016 19:01:06  ...iscsi  target:     iqn.2016-02.us.sdo:tgt:vtl01.localdomain


...and my Windows NetBackup host shows:

J:\NBU_SCRIPTS>scan -changer
************************************************************
*********************** SDT_CHANGER ************************
************************************************************
------------------------------------------------------------
Device Name  : ""
Passthru Name: ""
Volume Header: ""
Port: 4; Bus: 0; Target: 0; LUN: 1
Inquiry    : "HP      MSL6000 Series  2.00"
Vendor ID  : "HP      "
Product ID : "MSL6000 Series  "
Product Rev: "2.00"
Serial Number: "80000090"
WWN          : ""
WWN Id Type  : 0
Device Identifier: ""
Device Type    : SDT_CHANGER
NetBackup Robot Type: 8
Removable      : Yes
Device Supports: SCSI-2
Number of Drives : 2
Number of Slots  : 48
Number of Media Access Ports: 4
Drive 1 Serial Number      : "80000091"
Drive 2 Serial Number      : "80000092"
Flags : 0x0
Reason: 0x0

J:\NBU_SCRIPTS>scan -tape
************************************************************
*********************** SDT_TAPE    ************************
************************************************************
------------------------------------------------------------
Device Name  : "Tape0"
Passthru Name: "Tape0"
Volume Header: ""
Port: 4; Bus: 0; Target: 0; LUN: 2
Inquiry    : "HP      Ultrium 3-SCSI  N11G"
Vendor ID  : "HP      "
Product ID : "Ultrium 3-SCSI  "
Product Rev: "N11G"
Serial Number: "80000091"
WWN          : ""
WWN Id Type  : 0
Device Identifier: "HP      Ultrium 3-SCSI  80000091  "
Device Type    : SDT_TAPE
NetBackup Drive Type: 16
Removable      : Yes
Device Supports: SCSI-5
Flags : 0x0
Reason: 0x0
------------------------------------------------------------
Device Name  : "Tape1"
Passthru Name: "Tape1"
Volume Header: ""
Port: 4; Bus: 0; Target: 0; LUN: 3
Inquiry    : "HP      Ultrium 3-SCSI  N11G"
Vendor ID  : "HP      "
Product ID : "Ultrium 3-SCSI  "
Product Rev: "N11G"
Serial Number: "80000092"
WWN          : ""
WWN Id Type  : 0
Device Identifier: "HP      Ultrium 3-SCSI  80000092  "
Device Type    : SDT_TAPE
NetBackup Drive Type: 16
Removable      : Yes
Device Supports: SCSI-5
Flags : 0x0
Reason: 0x0

J:\NBU_SCRIPTS>ver
Microsoft Windows [Version 6.3.9600]

J:\NBU_SCRIPTS>type "D:\Program Files\Veritas\NetBackup\version.txt"
HARDWARE Windows x64
VERSION NetBackup 7.7.1
RELEASEDATE Thu Sep 10 16:19:02 CDT 2015
BUILDNUMBER 20150910

...so it looks like it should be ok - and I hope to test it properly later.

Thanks v. much.

Dave.






...previous messages via forum:



markh794 17 Feb, 2016 - 23:05 GMT Delete
Hello Dave,

I apparently ended up with two accounts post Symantec/VERITAS split. (Obviously) It's now been merged - so I've got access.

Thanks for the ghetto-mhvtl-config.bash_.txt
I'll review and provide any feedback..


New
markh794 18 Feb, 2016 - 0:33 GMT Delete
Initial impression - very nice..

Suggestions -
- force the user to pass argument of "withGUI" / "withoutGUI" (or some such switch) rather than prompting - easier to automate without expect scripts. Abort if no argument provided with usage() on which switches are valid.
- Place values a user may want to tweak at the top of the script (e.g. iSCSI target name)
- Any reason for LTO-3 ? LTO-4 allow for encryption (NetBackup KMS)
- Place medium changer as one iSCSI target and the tapes in another iSCSI target (allows for poor-mans zoning at an iSCSI layer from hosts).
- *IF* this is to be a 'VTL' image only (without NetBackup installed), setting fixed /dev/sgXX path using udev rules can make the setup more robust (adding additional SCSI devices (disks) to the VM).. Just *DON'T* (repeat - DON'T) setup udev rules if NetBackup will be installed on this host - NetBackup can not cope with udev defined tape devices.


New
markh794 18 Feb, 2016 - 0:38 GMT Delete
BTW: Example udev rules can be found in the mhvtl/scripts directory - if you are interested.


New
markh794 18 Feb, 2016 - 1:05 GMT Delete
A list of commands to configure NetBackup barcode rules, media ID generation rules, scratch pool & finally inventory the robots.
It assumes a default /etc/mhvtl/device.conf from a fresh install and will need to be changed to suit the setup from your script.

"/usr/openv/volmgr/bin/vmpool" -listscratch
"/usr/openv/volmgr/bin/vmpool" -add Scratch "Scratch media" ANYHOST -1 -2
"/usr/openv/volmgr/bin/vmpool" -set_scratch Scratch

"/usr/openv/volmgr/bin/vmrule" -listall -b

"/usr/openv/volmgr/bin/vmquery" -list_media_genrule
"/usr/openv/volmgr/bin/vmquery" -add_media_genrule 0 8 "1:2:3:4:5:6"
"/usr/openv/volmgr/bin/vmquery" -add_media_genrule 1 8 "1:2:3:4:5:6"

"/usr/openv/volmgr/bin/vmrule" -verbose -add "CLN101" hcart_clean None 25 "LTO4 Cleaning"
"/usr/openv/volmgr/bin/vmrule" -verbose -add "CLN102" hcart2_clean None 25 "LTO5 Cleaning"
"/usr/openv/volmgr/bin/vmrule" -verbose -add "CLN303" hcart_clean None 25 "T10K Cleaning"
"/usr/openv/volmgr/bin/vmrule" -verbose -add "G" hcart Scratch 0 "T10K media"
"/usr/openv/volmgr/bin/vmrule" -verbose -add "E" hcart Scratch 0 "LTO4 media"
"/usr/openv/volmgr/bin/vmrule" -verbose -add "F" hcart2 Scratch 0 "LTO5 media"

"/usr/openv/volmgr/bin/vmupdate" -rt tld -rn 0 -rh `hostname` -vh `hostname` -use_barcode_rules -use_seed
"/usr/openv/volmgr/bin/vmupdate" -rt tld -rn 1 -rh `hostname` -vh `hostname` -use_barcode_rules -use_seed


New
markh794 18 Feb, 2016 - 3:12 GMT Delete
Using the account 'vtl' to login is probably not the best idea..
There is little in the way of 'security' built in - hence the idea is to have the vtl daemons run as a 'vtl nobody' account which only it has write access. - or as the 'sshd' calls it - 'Privilege-separated' account

Running the script - it failed attempting to ...chmod /etc/mhvtl/*.bash
I'm sort of assuming you are running the 'ghetto.bash' install script from this directory ?
If I run it from /root/ghetto.sh (I typically add the '.sh' to any shell script - rather than .bash). it aborts attempting to chmod non-existent file(s)






On 16 Feb 2016, at 21:25, Mark Harvey [via mhVTL - A Linux Virtual Tape Library] <[hidden email]> wrote:

sdo wrote
Hey Mark - messaged you via the NetBackup community forum with a copy of the script.  It's not ready for proper publishing/sharing just yet - still polishing it - but if you want to give a bash, I just hope it works  :/
I'm getting notification that there is a message for me - but I'm getting a 'page not found' when I attempt to retrieve it.

Any chance of sending to either [hidden email] or [hidden email] ?
Regards from Australia
Mark Harvey



If you reply to this email, your message will be added to the discussion below:
http://mhvtl-a-linux-virtual-tape-library.966029.n3.nabble.com/mhvtl-1-5-3-with-NetBackup-v7-7-1-tp4025965p4025973.html
To unsubscribe from mhvtl 1.5.3 with NetBackup v7.7.1, click here.
NAML


config-mhvtl-centos67minimal-netbackup.sh.txt (52K) Download Attachment
sdo
Reply | Threaded
Open this post in threaded view
|

Re: mhvtl 1.5.3 with NetBackup v7.7.1

sdo
In reply to this post by Mark Harvey
Hi Mark,

Latest procedure and script.   I hope to incorporate the rest of your points as soon as I can.
I still haven't had a chance to test yet.  I was having a few problems with my NetBackup test VM.  I hope to test again soon.


Script:




...and procedure notes:


Dave.




On 18 Feb 2016, at 19:24, David Rawson <[hidden email]> wrote:

Hi Mark,

I plan to incorporate your advice over the next few days.


Latest script version:
<config-mhvtl-centos67minimal-netbackup.sh.txt>


I've just installed again in a CentOS 6.7 minimal test VM, and the versions are now:

18/02/2016 19:01:06  ...versions installed...
18/02/2016 19:01:06  ...OS     version:    2.6.32-573.18.1.el6.x86_64
18/02/2016 19:01:06  ...mhvtl  version:    0.18.17
18/02/2016 19:01:06  ...vtlcmd version:    1.5.3-git-1ef7609
18/02/2016 19:01:06  ...tgt    version:    1.0.24
18/02/2016 19:01:06  ...iscsi  version:    6.2.0-873.13.el6
18/02/2016 19:01:06  ...iscsi  listenner:  10.0.9.242
18/02/2016 19:01:06  ...iscsi  target:     iqn.2016-02.us.sdo:tgt:vtl01.localdomain


...and my Windows NetBackup host shows:

J:\NBU_SCRIPTS>scan -changer
************************************************************
*********************** SDT_CHANGER ************************
************************************************************
------------------------------------------------------------
Device Name  : ""
Passthru Name: ""
Volume Header: ""
Port: 4; Bus: 0; Target: 0; LUN: 1
Inquiry    : "HP      MSL6000 Series  2.00"
Vendor ID  : "HP      "
Product ID : "MSL6000 Series  "
Product Rev: "2.00"
Serial Number: "80000090"
WWN          : ""
WWN Id Type  : 0
Device Identifier: ""
Device Type    : SDT_CHANGER
NetBackup Robot Type: 8
Removable      : Yes
Device Supports: SCSI-2
Number of Drives : 2
Number of Slots  : 48
Number of Media Access Ports: 4
Drive 1 Serial Number      : "80000091"
Drive 2 Serial Number      : "80000092"
Flags : 0x0
Reason: 0x0

J:\NBU_SCRIPTS>scan -tape
************************************************************
*********************** SDT_TAPE    ************************
************************************************************
------------------------------------------------------------
Device Name  : "Tape0"
Passthru Name: "Tape0"
Volume Header: ""
Port: 4; Bus: 0; Target: 0; LUN: 2
Inquiry    : "HP      Ultrium 3-SCSI  N11G"
Vendor ID  : "HP      "
Product ID : "Ultrium 3-SCSI  "
Product Rev: "N11G"
Serial Number: "80000091"
WWN          : ""
WWN Id Type  : 0
Device Identifier: "HP      Ultrium 3-SCSI  80000091  "
Device Type    : SDT_TAPE
NetBackup Drive Type: 16
Removable      : Yes
Device Supports: SCSI-5
Flags : 0x0
Reason: 0x0
------------------------------------------------------------
Device Name  : "Tape1"
Passthru Name: "Tape1"
Volume Header: ""
Port: 4; Bus: 0; Target: 0; LUN: 3
Inquiry    : "HP      Ultrium 3-SCSI  N11G"
Vendor ID  : "HP      "
Product ID : "Ultrium 3-SCSI  "
Product Rev: "N11G"
Serial Number: "80000092"
WWN          : ""
WWN Id Type  : 0
Device Identifier: "HP      Ultrium 3-SCSI  80000092  "
Device Type    : SDT_TAPE
NetBackup Drive Type: 16
Removable      : Yes
Device Supports: SCSI-5
Flags : 0x0
Reason: 0x0

J:\NBU_SCRIPTS>ver
Microsoft Windows [Version 6.3.9600]

J:\NBU_SCRIPTS>type "D:\Program Files\Veritas\NetBackup\version.txt"
HARDWARE Windows x64
VERSION NetBackup 7.7.1
RELEASEDATE Thu Sep 10 16:19:02 CDT 2015
BUILDNUMBER 20150910

...so it looks like it should be ok - and I hope to test it properly later.

Thanks v. much.

Dave.






...previous messages via forum:



markh794 17 Feb, 2016 - 23:05 GMT Delete
Hello Dave,

I apparently ended up with two accounts post Symantec/VERITAS split. (Obviously) It's now been merged - so I've got access.

Thanks for the ghetto-mhvtl-config.bash_.txt
I'll review and provide any feedback..


New
markh794 18 Feb, 2016 - 0:33 GMT Delete
Initial impression - very nice..

Suggestions -
- force the user to pass argument of "withGUI" / "withoutGUI" (or some such switch) rather than prompting - easier to automate without expect scripts. Abort if no argument provided with usage() on which switches are valid.
- Place values a user may want to tweak at the top of the script (e.g. iSCSI target name)
- Any reason for LTO-3 ? LTO-4 allow for encryption (NetBackup KMS)
- Place medium changer as one iSCSI target and the tapes in another iSCSI target (allows for poor-mans zoning at an iSCSI layer from hosts).
- *IF* this is to be a 'VTL' image only (without NetBackup installed), setting fixed /dev/sgXX path using udev rules can make the setup more robust (adding additional SCSI devices (disks) to the VM).. Just *DON'T* (repeat - DON'T) setup udev rules if NetBackup will be installed on this host - NetBackup can not cope with udev defined tape devices.


New
markh794 18 Feb, 2016 - 0:38 GMT Delete
BTW: Example udev rules can be found in the mhvtl/scripts directory - if you are interested.


New
markh794 18 Feb, 2016 - 1:05 GMT Delete
A list of commands to configure NetBackup barcode rules, media ID generation rules, scratch pool & finally inventory the robots.
It assumes a default /etc/mhvtl/device.conf from a fresh install and will need to be changed to suit the setup from your script.

"/usr/openv/volmgr/bin/vmpool" -listscratch
"/usr/openv/volmgr/bin/vmpool" -add Scratch "Scratch media" ANYHOST -1 -2
"/usr/openv/volmgr/bin/vmpool" -set_scratch Scratch

"/usr/openv/volmgr/bin/vmrule" -listall -b

"/usr/openv/volmgr/bin/vmquery" -list_media_genrule
"/usr/openv/volmgr/bin/vmquery" -add_media_genrule 0 8 "1:2:3:4:5:6"
"/usr/openv/volmgr/bin/vmquery" -add_media_genrule 1 8 "1:2:3:4:5:6"

"/usr/openv/volmgr/bin/vmrule" -verbose -add "CLN101" hcart_clean None 25 "LTO4 Cleaning"
"/usr/openv/volmgr/bin/vmrule" -verbose -add "CLN102" hcart2_clean None 25 "LTO5 Cleaning"
"/usr/openv/volmgr/bin/vmrule" -verbose -add "CLN303" hcart_clean None 25 "T10K Cleaning"
"/usr/openv/volmgr/bin/vmrule" -verbose -add "G" hcart Scratch 0 "T10K media"
"/usr/openv/volmgr/bin/vmrule" -verbose -add "E" hcart Scratch 0 "LTO4 media"
"/usr/openv/volmgr/bin/vmrule" -verbose -add "F" hcart2 Scratch 0 "LTO5 media"

"/usr/openv/volmgr/bin/vmupdate" -rt tld -rn 0 -rh `hostname` -vh `hostname` -use_barcode_rules -use_seed
"/usr/openv/volmgr/bin/vmupdate" -rt tld -rn 1 -rh `hostname` -vh `hostname` -use_barcode_rules -use_seed


New
markh794 18 Feb, 2016 - 3:12 GMT Delete
Using the account 'vtl' to login is probably not the best idea..
There is little in the way of 'security' built in - hence the idea is to have the vtl daemons run as a 'vtl nobody' account which only it has write access. - or as the 'sshd' calls it - 'Privilege-separated' account

Running the script - it failed attempting to ...chmod /etc/mhvtl/*.bash
I'm sort of assuming you are running the 'ghetto.bash' install script from this directory ?
If I run it from /root/ghetto.sh (I typically add the '.sh' to any shell script - rather than .bash). it aborts attempting to chmod non-existent file(s)






On 16 Feb 2016, at 21:25, Mark Harvey [via mhVTL - A Linux Virtual Tape Library] <[hidden email]> wrote:

sdo wrote
Hey Mark - messaged you via the NetBackup community forum with a copy of the script.  It's not ready for proper publishing/sharing just yet - still polishing it - but if you want to give a bash, I just hope it works  :/
I'm getting notification that there is a message for me - but I'm getting a 'page not found' when I attempt to retrieve it.

Any chance of sending to either [hidden email] or [hidden email] ?
Regards from Australia
Mark Harvey



If you reply to this email, your message will be added to the discussion below:
http://mhvtl-a-linux-virtual-tape-library.966029.n3.nabble.com/mhvtl-1-5-3-with-NetBackup-v7-7-1-tp4025965p4025973.html
To unsubscribe from mhvtl 1.5.3 with NetBackup v7.7.1, click here.
NAML



config-mhvtl-centos67minimal-netbackup.sh.txt (56K) Download Attachment
hproc - VTL - current.txt (16K) Download Attachment
sdo
Reply | Threaded
Open this post in threaded view
|

Re: mhvtl 1.5.3 with NetBackup v7.7.1

sdo
Can anyone help?

My mhvtl environment is a CentOS 6.7 minimal VM:
30/03/2016 15:16:53  Step 30 - Final summary...
30/03/2016 15:16:53  ...list of SCSI devices...
[1:0:0:0]    cd/dvd  NECVMWar VMware IDE CDR10 1.00  /dev/sr0   /dev/sg0
[2:0:0:0]    disk    VMware,  VMware Virtual S 1.0   /dev/sda   /dev/sg1
[2:0:1:0]    disk    VMware,  VMware Virtual S 1.0   /dev/sdb   /dev/sg2
[3:3:0:0]    mediumx HP       MSL6000 Series   2.00  /dev/sch0  /dev/sg5
[3:3:0:1]    tape    HP       Ultrium 4-SCSI   N11G  /dev/st0   /dev/sg3
[3:3:0:2]    tape    HP       Ultrium 4-SCSI   N11G  /dev/st1   /dev/sg4
30/03/2016 15:16:53  ...versions installed...
30/03/2016 15:16:54  ...OS     version:    2.6.32-573.22.1.el6.x86_64
30/03/2016 15:16:54  ...mhvtl  version:    0.18.17
30/03/2016 15:16:54  ...vtlcmd version:    1.5.4-git-c7ccb7a
30/03/2016 15:16:54  ...tgt    version:    1.0.24
30/03/2016 15:16:54  ...iscsi  version:    6.2.0-873.13.el6
30/03/2016 15:16:54  ...iscsi  listenner:  10.0.9.242
30/03/2016 15:16:54  ...iscsi  target:     iqn.2016-02.us.mhvtl:tgt:vtl01.localdomain
30/03/2016 15:16:54  ...done...

NetBackup v7.7.1 (+EEB for nbsl) on Win 2012 R2, is a VM, with MS iSCSI, device scans ok, and device config in NetBackup appears to be ok, but when I try to run a backup to tape, I get:
03/30/2016 19:13:27 - Info nbjm (pid=3680) starting backup job (jobid=551) for client master01, policy TEST003, schedule Tape_Full
03/30/2016 19:13:27 - Info nbjm (pid=3680) requesting STANDARD_RESOURCE resources from RB for backup job (jobid=551, request id:{F6F1E949-79FE-4ACB-AC43-34BFA42E8A0A})
03/30/2016 19:13:27 - requesting resource master01-hcart3-robot-tld-0
03/30/2016 19:13:27 - requesting resource master01.NBU_CLIENT.MAXJOBS.master01
03/30/2016 19:13:27 - requesting resource master01.NBU_POLICY.MAXJOBS.TEST003
03/30/2016 19:13:27 - granted resource  master01.NBU_CLIENT.MAXJOBS.master01
03/30/2016 19:13:27 - granted resource  master01.NBU_POLICY.MAXJOBS.TEST003
03/30/2016 19:13:27 - granted resource  HPS002
03/30/2016 19:13:27 - granted resource  HP.ULTRIUM3-SCSI.001
03/30/2016 19:13:27 - granted resource  master01-hcart3-robot-tld-0
03/30/2016 19:13:32 - estimated 0 kbytes needed
03/30/2016 19:13:32 - Info nbjm (pid=3680) started backup (backupid=master01_1459361607) job for client master01, policy TEST003, schedule Tape_Full on storage unit master01-hcart3-robot-tld-0
03/30/2016 19:13:38 - started process bpbrm (pid=2592)
03/30/2016 19:13:43 - Info bpbrm (pid=2592) master01 is the host to backup data from
03/30/2016 19:13:47 - Info bpbrm (pid=2592) reading file list for client
03/30/2016 19:13:47 - connecting
03/30/2016 19:14:01 - Info bpbrm (pid=2592) starting bpbkar32 on client
03/30/2016 19:14:01 - connected; connect time: 0:00:00
03/30/2016 19:14:02 - Info bpbkar32 (pid=2016) Backup started
03/30/2016 19:14:02 - Info bpbkar32 (pid=2016) change time comparison:<disabled>
03/30/2016 19:14:02 - Info bpbkar32 (pid=2016) archive bit processing:<disabled>
03/30/2016 19:14:02 - Info bpbkar32 (pid=2016) will attempt to use change journal data for <J:\NBU_MANUALS>
03/30/2016 19:14:02 - Info bptm (pid=1272) start
03/30/2016 19:14:26 - Info bptm (pid=1272) using 65536 data buffer size
03/30/2016 19:14:26 - Info bptm (pid=1272) setting receive network buffer to 263168 bytes
03/30/2016 19:14:26 - Info bptm (pid=1272) using 30 data buffers
03/30/2016 19:14:31 - Info bptm (pid=1272) start backup
03/30/2016 19:14:31 - Info bptm (pid=1272) Waiting for mount of media id HPS002 (copy 1) on server master01.
03/30/2016 19:14:31 - mounting HPS002
03/30/2016 19:14:46 - Info bpbkar32 (pid=2016) done. status: 52: timed out waiting for media manager to mount volume
03/30/2016 19:14:46 - end writing
timed out waiting for media manager to mount volume  (52)
sdo
Reply | Threaded
Open this post in threaded view
|

Re: mhvtl 1.5.3 with NetBackup v7.7.1

sdo
robtest works ok:

D:\Program Files\Veritas\Volmgr\debug\robots>robtest
Configured robots with local control supporting test utilities:
  TLD(0)     robotic path = {4,0,1,1}

Robot Selection
---------------
  1)  TLD 0
  2)  none/quit
Enter choice: 1
1

Robot selected: TLD(0)   robotic path = {4,0,1,1}

Invoking robotic test utility:
D:\Program Files\Veritas\Volmgr\bin\tldtest.exe -rn 0 -r {4,0,1,1}

Opening {4,0,1,1}
MODE_SENSE complete
Enter tld commands (? returns help information)
s d
drive 1 (addr 480) access = 1 Contains Cartridge = no
drive 2 (addr 481) access = 1 Contains Cartridge = no
READ_ELEMENT_STATUS complete
s p
Address 448, import_enabled = 1, export_enabled = 1, access = 1
  except = 0, import_export = 1, full = 0
Address 449, import_enabled = 1, export_enabled = 1, access = 1
  except = 0, import_export = 1, full = 0
Address 450, import_enabled = 1, export_enabled = 1, access = 1
  except = 0, import_export = 1, full = 0
Address 451, import_enabled = 1, export_enabled = 1, access = 1
  except = 0, import_export = 1, full = 0
READ_ELEMENT_STATUS complete
s s
slot 1 (addr 32) contains Cartridge = yes
Source address = 480
Barcode = HPS001L4
slot 2 (addr 33) contains Cartridge = yes
Source address = 481
Barcode = HPS002L4
slot 3 (addr 34) contains Cartridge = yes
Barcode = HPS003L4
slot 4 (addr 35) contains Cartridge = yes
Barcode = HPS004L4
slot 5 (addr 36) contains Cartridge = yes
Barcode = HPS005L4
slot 6 (addr 37) contains Cartridge = yes
Barcode = HPS006L4
slot 7 (addr 38) contains Cartridge = yes
Barcode = HPS007L4
slot 8 (addr 39) contains Cartridge = yes
Barcode = HPS008L4
slot 9 (addr 40) contains Cartridge = yes
Barcode = HPS009L4
slot 10 (addr 41) contains Cartridge = yes
Barcode = HPS010L4
<< Press return to continue, or q and return to stop >>

slot 11 (addr 42) contains Cartridge = yes
Barcode = HPS011L4
slot 12 (addr 43) contains Cartridge = yes
Barcode = HPS012L4
slot 13 (addr 44) contains Cartridge = yes
Barcode = HPS013L4
slot 14 (addr 45) contains Cartridge = yes
Barcode = HPS014L4
slot 15 (addr 46) contains Cartridge = yes
Barcode = HPS015L4
slot 16 (addr 47) contains Cartridge = yes
Barcode = HPS016L4
slot 17 (addr 48) contains Cartridge = yes
Barcode = HPS017L4
slot 18 (addr 49) contains Cartridge = yes
Barcode = HPS018L4
slot 19 (addr 50) contains Cartridge = yes
Barcode = HPS019L4
slot 20 (addr 51) contains Cartridge = yes
Barcode = HPS020L4
slot 21 (addr 52) contains Cartridge = yes
Barcode = HPS021L4
<< Press return to continue, or q and return to stop >>

slot 22 (addr 53) contains Cartridge = yes
Barcode = HPS022L4
slot 23 (addr 54) contains Cartridge = yes
Barcode = HPS023L4
slot 24 (addr 55) contains Cartridge = yes
Barcode = HPS024L4
slot 25 (addr 56) contains Cartridge = yes
Barcode = HPS025L4
slot 26 (addr 57) contains Cartridge = yes
Barcode = HPS026L4
slot 27 (addr 58) contains Cartridge = yes
Barcode = HPS027L4
slot 28 (addr 59) contains Cartridge = yes
Barcode = HPS028L4
slot 29 (addr 60) contains Cartridge = yes
Barcode = HPS029L4
slot 30 (addr 61) contains Cartridge = yes
Barcode = HPS030L4
slot 31 (addr 62) contains Cartridge = yes
Barcode = HPS031L4
slot 32 (addr 63) contains Cartridge = yes
Barcode = HPS032L4
<< Press return to continue, or q and return to stop >>

slot 33 (addr 64) contains Cartridge = yes
Barcode = HPS033L4
slot 34 (addr 65) contains Cartridge = yes
Barcode = HPS034L4
slot 35 (addr 66) contains Cartridge = yes
Barcode = HPS035L4
slot 36 (addr 67) contains Cartridge = yes
Barcode = HPS036L4
slot 37 (addr 68) contains Cartridge = yes
Barcode = HPS037L4
slot 38 (addr 69) contains Cartridge = yes
Barcode = HPS038L4
slot 39 (addr 70) contains Cartridge = yes
Barcode = HPS039L4
slot 40 (addr 71) contains Cartridge = yes
Barcode = HPS040L4
slot 41 (addr 72) contains Cartridge = yes
Barcode = HPS041L4
slot 42 (addr 73) contains Cartridge = yes
Barcode = HPS042L4
slot 43 (addr 74) contains Cartridge = yes
Barcode = HPS043L4
<< Press return to continue, or q and return to stop >>

slot 44 (addr 75) contains Cartridge = yes
Barcode = HPS044L4
slot 45 (addr 76) contains Cartridge = yes
Barcode = HPS045L4
slot 46 (addr 77) contains Cartridge = yes
Barcode = HPS046L4
slot 47 (addr 78) contains Cartridge = yes
Barcode = HPS047L4
slot 48 (addr 79) contains Cartridge = yes
Barcode = CLN048L4
READ_ELEMENT_STATUS complete
m s2 d1
Initiating MOVE_MEDIUM from address 33 to 480
MOVE_MEDIUM complete
s d
drive 1 (addr 480) access = 1 Contains Cartridge = yes
Source address = 33 (slot 2)
Barcode = HPS002L4
drive 2 (addr 481) access = 1 Contains Cartridge = no
READ_ELEMENT_STATUS complete
m d1 d2
Initiating MOVE_MEDIUM from address 480 to 481
MOVE_MEDIUM complete
s d
drive 1 (addr 480) access = 1 Contains Cartridge = no
drive 2 (addr 481) access = 1 Contains Cartridge = yes
Source address = 480 (slot 449)
Barcode = HPS002L4
READ_ELEMENT_STATUS complete
m d2 s2
Initiating MOVE_MEDIUM from address 481 to 33
MOVE_MEDIUM complete
s d
drive 1 (addr 480) access = 1 Contains Cartridge = no
drive 2 (addr 481) access = 1 Contains Cartridge = no
READ_ELEMENT_STATUS complete
q

Robot Selection
---------------
  1)  TLD 0
  2)  none/quit
Enter choice: q
Reply | Threaded
Open this post in threaded view
|

Re: mhvtl 1.5.3 with NetBackup v7.7.1

Mark Harvey
Administrator
Seeing robtest work is good.. This indicates the problem is more NetBackup centered than mhVTL specific.

Can I ask for the output of
- "D:\Program Files\Veritas\volmgr\bin\scan"
- "D:\Program Files\Veritas\volmgr\bin\tpconfig -d"
- "D:\Program Files\Veritas\volmgr\bin\tpautoconf -t"
- "D:\Program Files\Veritas\volmgr\bin\tpautoconf -r"

The mount failure should be recorded somewhere in the Windows event logs - perhaps there is a hint to the error there.

Also the /var/log/messages from the mhVTL host around the time the mount failure.

And finally the D:\Program Files\Veritas\netbackup\logs\bptm\log.<date stamp>
(You may need to create the above 'logs\bptm' directory and re-create the problem).

What version of windows are you using ?
The Microsoft RSM service use to cause no ends of problems. Please confirm this service is 'disabled' - set to 'manual start' is not good enough.
Regards from Australia
Mark Harvey
sdo
Reply | Threaded
Open this post in threaded view
|

Re: mhvtl 1.5.3 with NetBackup v7.7.1

sdo
Thanks for getting back to me Mark.
My Win2012R2 VM master/media server is broken, Windows is complaining, and I no longer trust it - the VM lost power the other day when the laptop battery emptied.  (sighs).  Plus, NBU v7.7.x is so much more resource hungry, my laptop struggles to run it.  I'm going to scratch the master, and start again with a fresh Win2008R2 + NBU v7.6.1.2 master/media and see how far I get with mhvtl v1.5.4.  If I hit the same/similar problem again, then I'll use the commands you posted, and dig through the event logs.  Thanks again.
sdo
Reply | Threaded
Open this post in threaded view
|

Re: mhvtl 1.5.3 with NetBackup v7.7.1

sdo
Ok - rebuilt master/media Win2008 R2 SP1 and patched, and installed NetBackup v7.6.1.2.
I changed to use the L700 definition in mhvtl (the one you posted earlier - above)...
Scan is ok, tpautoconf -report_disc is ok.  Device wizard is ok.  robtest is ok.  Inventory is ok.
.
But, when I run a test backup, I get the same effect (as I did with the HP MSL robot definition), where something fails to write to a tape, or the bptm thinks the tape is full, and just keeps requesting the next available tape.
.
04/04/2016 20:42:14 - Info nbjm(pid=156) starting backup job (jobid=16) for client master01, policy TEST001, schedule Manual_Full  
04/04/2016 20:42:14 - Info nbjm(pid=156) requesting STANDARD_RESOURCE resources from RB for backup job (jobid=16, request id:{31C15B99-28AE-4246-97A5-284B6E98E767})  
04/04/2016 20:42:14 - requesting resource master01-hcart2-robot-tld-0
04/04/2016 20:42:14 - requesting resource master01.NBU_CLIENT.MAXJOBS.master01
04/04/2016 20:42:14 - requesting resource master01.NBU_POLICY.MAXJOBS.TEST001
04/04/2016 20:42:15 - granted resource master01.NBU_CLIENT.MAXJOBS.master01
04/04/2016 20:42:15 - granted resource master01.NBU_POLICY.MAXJOBS.TEST001
04/04/2016 20:42:15 - granted resource HPS001
04/04/2016 20:42:15 - granted resource IBM.ULT3580-TD5.000
04/04/2016 20:42:15 - granted resource master01-hcart2-robot-tld-0
04/04/2016 20:42:15 - Info bpbrm(pid=1144) master01 is the host to backup data from    
04/04/2016 20:42:15 - Info bpbrm(pid=1144) reading file list for client        
04/04/2016 20:42:15 - Info bpbrm(pid=1144) starting bpbkar32 on client        
04/04/2016 20:42:15 - Info bpbkar32(pid=5464) Backup started          
04/04/2016 20:42:15 - Info bpbkar32(pid=5464) change time comparison:<disabled>         
04/04/2016 20:42:15 - Info bpbkar32(pid=5464) archive bit processing:<enabled>         
04/04/2016 20:42:15 - Info bptm(pid=2848) start            
04/04/2016 20:42:15 - estimated 0 Kbytes needed
04/04/2016 20:42:15 - Info nbjm(pid=156) started backup (backupid=master01_1459798935) job for client master01, policy TEST001, schedule Manual_Full on storage unit master01-hcart2-robot-tld-0
04/04/2016 20:42:15 - started process bpbrm (1144)
04/04/2016 20:42:15 - connecting
04/04/2016 20:42:15 - connected; connect time: 0:00:00
04/04/2016 20:42:15 - started
04/04/2016 20:42:16 - Info bptm(pid=2848) using 65536 data buffer size        
04/04/2016 20:42:16 - Info bptm(pid=2848) setting receive network buffer to 263168 bytes      
04/04/2016 20:42:16 - Info bptm(pid=2848) using 30 data buffers        
04/04/2016 20:42:16 - Info bptm(pid=2848) start backup          
04/04/2016 20:42:16 - Info bptm(pid=2848) Waiting for mount of media id HPS001 (copy 1) on server master01.
04/04/2016 20:42:16 - mounting HPS001
04/04/2016 20:42:17 - Info bpbkar32(pid=5464) not using change journal data for <J:\NBU_MANUALS>: not enabled    
04/04/2016 20:42:23 - Info bptm(pid=2848) media id HPS001 mounted on drive index 0, drivepath {33,0,0,2}, drivename IBM.ULT3580-TD5.000, copy 1
04/04/2016 20:42:23 - mounted; mount time: 0:00:07
04/04/2016 20:42:23 - positioning HPS001 to file 1
04/04/2016 20:42:23 - positioned HPS001; position time: 0:00:00
04/04/2016 20:42:23 - begin writing
04/04/2016 20:42:32 - current media HPS001 complete, requesting next resource Any
04/04/2016 20:42:32 - current media -- complete, awaiting next media Any Reason: Drives are in use, Media Server: master01,
         Robot Number: 0, Robot Type: TLD, Media ID: N/A, Drive Name: N/A,
         Volume Pool: NetBackup, Storage Unit: master01-hcart2-robot-tld-0, Drive Scan Host: N/A
       
04/04/2016 20:42:34 - Info bptm(pid=2848) Waiting for mount of media id HPS002 (copy 1) on server master01.
04/04/2016 20:42:34 - granted resource HPS002
04/04/2016 20:42:34 - granted resource IBM.ULT3580-TD5.000
04/04/2016 20:42:34 - granted resource master01-hcart2-robot-tld-0
04/04/2016 20:42:34 - end writing; write time: 0:00:11
04/04/2016 20:42:34 - mounting HPS002
04/04/2016 20:42:41 - Info bptm(pid=2848) media id HPS002 mounted on drive index 0, drivepath {33,0,0,2}, drivename IBM.ULT3580-TD5.000, copy 1
04/04/2016 20:42:41 - mounted; mount time: 0:00:07
04/04/2016 20:42:41 - positioning HPS002 to file 1
04/04/2016 20:42:41 - positioned HPS002; position time: 0:00:00
04/04/2016 20:42:41 - begin writing
04/04/2016 20:42:44 - current media HPS002 complete, requesting next resource Any
04/04/2016 20:42:44 - current media -- complete, awaiting next media Any Reason: Drives are in use, Media Server: master01,
         Robot Number: 0, Robot Type: TLD, Media ID: N/A, Drive Name: N/A,
         Volume Pool: NetBackup, Storage Unit: master01-hcart2-robot-tld-0, Drive Scan Host: N/A
       
04/04/2016 20:42:46 - Info bptm(pid=2848) Waiting for mount of media id HPS003 (copy 1) on server master01.
04/04/2016 20:42:46 - granted resource HPS003
04/04/2016 20:42:46 - granted resource IBM.ULT3580-TD5.000
04/04/2016 20:42:46 - granted resource master01-hcart2-robot-tld-0
04/04/2016 20:42:46 - end writing; write time: 0:00:05
04/04/2016 20:42:46 - mounting HPS003
04/04/2016 20:42:57 - Info bpbkar32(pid=5464) done. status: 150: termination requested by administrator      
04/04/2016 20:42:57 - Info bpbrm(pid=4336) Starting delete snapshot processing        
04/04/2016 20:42:57 - end writing
04/04/2016 20:42:58 - Info bpfis(pid=3356) Backup started          
04/04/2016 20:42:58 - Critical bpbrm(pid=4336) from client master01: cannot open D:\Program Files\Veritas\NetBackup\online_util\fi_cntl\bpfis.fim.master01_1459798935.1.0      
04/04/2016 20:42:58 - Info bpfis(pid=3356) done. status: 4207          
04/04/2016 20:42:58 - end operation
04/04/2016 20:42:58 - Info bpfis(pid=3356) done. status: 4207: Could not fetch snapshot metadata or state files  
termination requested by administrator (150)
sdo
Reply | Threaded
Open this post in threaded view
|

Re: mhvtl 1.5.3 with NetBackup v7.7.1

sdo
My script to configure mhvtl reports:

04/04/2016 20:22:22  Step 30 - Final summary...
04/04/2016 20:22:22  ...list of SCSI devices...
[1:0:0:0]    cd/dvd  NECVMWar VMware IDE CDR10 1.00  /dev/sr0   /dev/sg0
[2:0:0:0]    disk    VMware,  VMware Virtual S 1.0   /dev/sda   /dev/sg1
[2:0:1:0]    disk    VMware,  VMware Virtual S 1.0   /dev/sdb   /dev/sg2
[3:0:0:0]    mediumx STK      L700             0105  /dev/sch0  /dev/sg4
[3:0:1:0]    tape    IBM      ULT3580-TD5      0105  /dev/st0   /dev/sg3
04/04/2016 20:22:22  ...versions used and installed...
04/04/2016 20:22:22  ...script version:    v0.23
04/04/2016 20:22:22  ...OS     version:    2.6.32-573.22.1.el6.x86_64
04/04/2016 20:22:22  ...mhvtl  version:    0.18.17
04/04/2016 20:22:22  ...vtlcmd version:    1.5.4-git-c7ccb7a
04/04/2016 20:22:22  ...tgt    version:    1.0.24
04/04/2016 20:22:23  ...iscsi  version:    6.2.0-873.13.el6
04/04/2016 20:22:23  ...iscsi  listenner:  10.0.9.242
04/04/2016 20:22:23  ...iscsi  target:     iqn.2016-02.us.mhvtl:tgt:vtl01.localdomain
04/04/2016 20:22:23  ...done...

...and the output from the commands that you wanted:
C:\Users\Administrator>scan
************************************************************
*********************** SDT_TAPE    ************************
*********************** SDT_CHANGER ************************
************************************************************
------------------------------------------------------------
Device Name  : ""
Passthru Name: ""
Volume Header: ""
Port: 33; Bus: 0; Target: 0; LUN: 1
Inquiry    : "STK     L700            0105"
Vendor ID  : "STK     "
Product ID : "L700            "
Product Rev: "0105"
Serial Number: "XYZZY_A"
WWN          : ""
WWN Id Type  : 0
Device Identifier: ""
Device Type    : SDT_CHANGER
NetBackup Robot Type: 8
Removable      : Yes
Device Supports: SCSI-5
Number of Drives : 2
Number of Slots  : 48
Number of Media Access Ports: 4
Drive 1 Serial Number      : "XYZZY_A1"
Drive 2 Serial Number      : ""
Flags : 0x0
Reason: 0x0
------------------------------------------------------------
Device Name  : "Tape0"
Passthru Name: "Tape0"
Volume Header: ""
Port: 33; Bus: 0; Target: 0; LUN: 2
Inquiry    : "IBM     ULT3580-TD5     0105"
Vendor ID  : "IBM     "
Product ID : "ULT3580-TD5     "
Product Rev: "0105"
Serial Number: "XYZZY_A1"
WWN          : ""
WWN Id Type  : 0
Device Identifier: "IBM     ULT3580-TD5     XYZZY_A1  "
Device Type    : SDT_TAPE
NetBackup Drive Type: 10
Removable      : Yes
Device Supports: SCSI-5
Flags : 0x0
Reason: 0x0

C:\Users\Administrator>
C:\Users\Administrator>tpconfig -d
Id  DriveName           Type   Residence
      SCSI coordinates/Path                                            Status
****************************************************************************
0   IBM.ULT3580-TD5.000  hcart2 TLD(0)  DRIVE=1
      {33,0,0,2}                                                       UP

Currently defined robotics are:
  TLD(0)     SCSI coordinates = {33,0,0,1}

EMM Server = master01


C:\Users\Administrator>
C:\Users\Administrator>tpautoconf -t
TPAC60 IBM     ULT3580-TD5     0105 XYZZY_A1 33 0 0 2 Tape0 - -

C:\Users\Administrator>tpautoconf -r
TPAC60 STK     L700            0105 XYZZY_A 33 0 0 1 - - -

C:\Users\Administrator>
C:\Users\Administrator>tpconfig -emm_dev_list
==============================================================================
Robot:                          ROBOT0
Robot Number:                   0
Robot Type:                     TLD(8)
Media Server:                   master01
Port:                           33
Bus:                            0
Target:                         0
Lun:                            1
PartiallyConfigured:            0
Pird:                           0
Host:                           -
Apath:                          -
NDMP Attach Host:               -
VMhost:                         master01
DAhost:                         master01
SN:                             XYZZY_A
Inquiry:                        STK     L700            0105
WorldWideId:                    -
Old DAhost:                     master01
RSM GUID:                       00000000-0000-0000-0000-000000000000
==============================================================================
==============================================================================
Drive:                          IBM.ULT3580-TD5.000
Index:                          0
Drive Type:                     hcart2(10)
Media Server:                   master01
Occupy Index:                   0
Opr Count:                      0
Status:                         2
Saved Mode Bits:                0
Access Mode:                    82
Robot Type:                     TLD(8)
Robot Number:                   0
Loc1:                           1
Loc2:                           -1
Loc3:                           -1
Loc4:                           -1
Loc5:                           0
Port:                           33
Bus:                            0
Target:                         0
Lun:                            2
VH Saved Mode Bits:             0
Flags:                          0
PathFlags:                      0
DeviceFlags:                    0
Time Mounted:                   0
Total Time Mounted:             0
Cleaning Frequency:             0
Last Time Cleaned:              0
Vendor Device Num:              0
Tape Alert 1:                   0
Tape Alert 2:                   0
Last DA Call Time:              0
Application Type:               0
Drive Path:                     -
Volume Header Drive Path:       -
Vendor Drive Name:              -
Current RVSN:                   -
Current EVSN:                   -
Current User:                   -
Operator Comment:               -
SN:                             XYZZY_A1
Inquiry Info:                   IBM     ULT3580-TD5     0105
World Wide Id:                  -
NDMP Host:                      -
Scan Host:                      -
Assign Host:                    -
RSM GUID:                       00000000-0000-0000-0000-000000000000
APPL_GUID:                      00000000-0000-0000-0000-000000000000
==============================================================================
==============================================================================
Master Server:                  master01
NetBackup Version:              7.6.1.2(761200)
Host OperatingSystem:           11
MachineState:                   ACTIVE
==============================================================================
EMM Server:                     master01

C:\Users\Administrator>
sdo
Reply | Threaded
Open this post in threaded view
|

Re: mhvtl 1.5.3 with NetBackup v7.7.1

sdo
Deleted the NetBackup device configuration, cleared iSCSI, reran the script, re-initialized iSCSI initiator, reran NBU device wizard, re-inventoried... and test backup to mhvtl based tape worked.  :)