How to configure iscsi targets in RHEL 7.5 for vtl tape deivces?

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

How to configure iscsi targets in RHEL 7.5 for vtl tape deivces?

vemurirajesh10
How to configure iscsi targets in RHEL 7.5 for vtl tape deivces?

I am trying to configure mhVTL 1.5.4 in RHEL 7.5.  Whether mhVTL 1.5.4 supports in RHEL 7.5?  And I am stuck at configuring iscsi tartgets for tape devices?

Thanks in advance.
Reply | Threaded
Open this post in threaded view
|

Re: How to configure iscsi targets in RHEL 7.5 for vtl tape deivces?

Mark Harvey
Administrator
This is really a question for the iSCSI target driver you are using...

mhVTL by itself has no idea about iSCSI

Two common target drivers are stgt & scst

Sent from my iPad

On Aug 16, 2018, at 20:38, vemurirajesh10 [via mhVTL - A Linux Virtual Tape Library] <[hidden email]> wrote:

How to configure iscsi targets in RHEL 7.5 for vtl tape deivces?

I am trying to configure mhVTL 1.5.4 in RHEL 7.5.  Whether mhVTL 1.5.4 supports in RHEL 7.5?  And I am stuck at configuring iscsi tartgets for tape devices?

Thanks in advance.


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: How to configure iscsi targets in RHEL 7.5 for vtl tape deivces?

vemurirajesh10
Hi Mark,

Thank you for the update.

whether mhvtl 1.5.4 supports RedHat Linux 7.5?

In Linux 6.5 I have added LUN ids for all the tape devices and confiugred /etc/tgt/targets.conf

<target iqn.2018-06.com.example:mhvtl.target1>
        backing-store /dev/sg7
        backing-store /dev/sg3
        backing-store /dev/sg4
        backing-store /dev/sg5
        backing-store /dev/sg6
        bs-type sg
        device-type pt
</target>

But this is not the case in Linux 7.5. Do you have document for configuring mhvtl in Linux 7.5?

Rajesh
Reply | Threaded
Open this post in threaded view
|

Re: How to configure iscsi targets in RHEL 7.5 for vtl tape deivces?

Mark Harvey
Administrator
Have you checked / confirmed the iSCSI target you are using is installed on the RHEL 7.5 box ?

i.e. Check the RHEL 7.5 isn't using LIO SCSI target rather than the 'STGT' target you have provided the config for.

I have to state again, this has nothing to do with the mhVTL itself. The questions are best asked to the RedHat 7.5.

What is the output of :
# lsscsi -g (once you start the mhVTL daemons ?)
Regards from Australia
Mark Harvey
Reply | Threaded
Open this post in threaded view
|

Re: How to configure iscsi targets in RHEL 7.5 for vtl tape deivces?

vemurirajesh10
Hi Mark,

Below are the outputs for lsscsi and targetcli commands:

[root@linuxmhvtl ~]# lsscsi -g
[0:0:0:0]    disk    VMware   Virtual disk     1.0   /dev/sda   /dev/sg0
[2:0:0:0]    cd/dvd  NECVMWar VMware SATA CD00 1.00  /dev/sr0   /dev/sg1
[33:0:0:0]   mediumx STK      L700             0105  /dev/sch0  /dev/sg6
[33:0:1:0]   tape    IBM      ULT3580-TD5      0105  /dev/st0   /dev/sg2
[33:0:2:0]   tape    IBM      ULT3580-TD5      0105  /dev/st1   /dev/sg3
[33:0:3:0]   tape    IBM      ULT3580-TD5      0105  /dev/st2   /dev/sg4
[33:0:4:0]   tape    IBM      ULT3580-TD5      0105  /dev/st3   /dev/sg5
[34:0:0:0]   disk    LIO-ORG  shareddata       4.0   /dev/sdb   /dev/sg7
[root@linuxmhvtl ~]#


[root@linuxmhvtl ~]# targetcli
targetcli shell version 2.1.fb46
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.

/iscsi/iqn.20...l1:mhvtl/tpg1>
/iscsi/iqn.20...l1:mhvtl/tpg1> ls
o- tpg1 ................................................. [no-gen-acls, no-auth]
  o- acls ............................................................ [ACLs: 1]
  | o- iqn.2018-08.com.linuxmhvtl:mhvtl ................... [Mapped LUNs: 1]
  |   o- mapped_lun0 ............................. [lun0 fileio/shareddata (rw)]
  o- luns ............................................................ [LUNs: 1]
  | o- lun0 ....... [fileio/shareddata (/opt/shareddata.img) (default_tg_pt_gp)]
  o- portals ...................................................... [Portals: 1]
    o- 0.0.0.0:3260 ....................................................... [OK]
/iscsi/iqn.20...l1:mhvtl/tpg1>

Reply | Threaded
Open this post in threaded view
|

Re: How to configure iscsi targets in RHEL 7.5 for vtl tape deivces?

vemurirajesh10
Hi Mark,

Finally I was able to configure mhVTL in Linux 7.5 also.

Thank you for your support.

Rajesh