Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Dev

[PATCH 0 of 1] iSCSITarget, iSCSILogicalUnit: RAs for managing iSCSI targets and LUs

 

 

Linux-HA dev RSS feed   Index | Next | Previous | View Threaded


florian.haas at linbit

Jun 11, 2009, 11:38 PM

Post #1 of 4 (464 views)
Permalink
[PATCH 0 of 1] iSCSITarget, iSCSILogicalUnit: RAs for managing iSCSI targets and LUs

A set of resource agents to support highly available iSCSI Targets.

This patch adds two new resource agents:
- iSCSITarget, representing an individual iSCSI target;
- iSCSILogicalUnit, representing an individual LU (which is part of a
target).

It aims to support eventually support three separate iSCSI Target
implementations:

- iSCSI Enterprise Target (iet -- see
http://iscsitarget.sourceforge.net);
- the iSCSI Target driver provided by the Linux SCSI target framework
project (tgt -- see http://stgt.berlios.de);
- the Linux-iSCSI.org target engine (lio -- see
http://linux-iscsi.org).

Currently, only iet is supported, with the next two to follow in the
order as specified above.

Other implementations may be subsequently added.

Typically, the two resource agents would be deployed together, such as

- One iSCSITarget and one or more iSCSILogicalUnit instances in one
ordered and collocated resource group, or
- an iSCSITarget as a single resource, plus one non-ordered resource
group of iSCSILogicalUnit instances, with the resource and the group
being constrained via order and colocation constraints.

Any feedback and comments are much appreciated. Thanks!

Cheers,
Florian
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev[at]lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


florian.haas at linbit

Jun 12, 2009, 2:01 AM

Post #2 of 4 (415 views)
Permalink
Re: [PATCH 0 of 1] iSCSITarget, iSCSILogicalUnit: RAs for managing iSCSI targets and LUs [In reply to]

Hello again,

for those of you who feel like testing this, here's my working
configuration example for your reference (assuming the LVM VG named
"iscsivg01" is on shared storage or DRBD):

primitive res_lvm_iscsivg01 ocf:heartbeat:LVM \
params volgrpname="iscsivg01" \
op monitor interval="30s"

primitive res_target_iscsivg01 ocf:heartbeat:iSCSITarget \
params implementation="iet" tid="1" \
name="iqn.2001-04.com.linbit:storage.alicebob.iscsivg01" \
op monitor interval="10s"

primitive res_lu_lun0 ocf:heartbeat:iSCSILogicalUnit \
params implementation="iet" tid="1" lun="0" \
path="/dev/iscsivg01/lun0" \
op monitor interval="10s"

primitive res_lu_lun1 ocf:heartbeat:iSCSILogicalUnit \
params implementation="iet" tid="1" lun="1" \
path="/dev/iscsivg01/lun1" \
op monitor interval="10s"

group rg_iscsivg01 target_iscsivg01 res_lu_lun0 res_lu_lun1

colocation c_iscsi_on_lvm_iscsivg01 inf: rg_iscsivg01 res_lvm_iscsivg01
order o_lvm_before_iscsi_iscsivg01 inf: res_lvm_iscsivg01 rg_iscsivg01

Cheers,
Florian

On 06/12/2009 08:38 AM, Florian Haas wrote:
> A set of resource agents to support highly available iSCSI Targets.
>
> This patch adds two new resource agents:
> - iSCSITarget, representing an individual iSCSI target;
> - iSCSILogicalUnit, representing an individual LU (which is part of a
> target).
Attachments: signature.asc (0.25 KB)


dejanmm at fastmail

Jun 15, 2009, 12:26 AM

Post #3 of 4 (383 views)
Permalink
Re: [PATCH 0 of 1] iSCSITarget, iSCSILogicalUnit: RAs for managing iSCSI targets and LUs [In reply to]

Hi,

On Fri, Jun 12, 2009 at 08:38:25AM +0200, Florian Haas wrote:
> A set of resource agents to support highly available iSCSI Targets.
>
> This patch adds two new resource agents:
> - iSCSITarget, representing an individual iSCSI target;
> - iSCSILogicalUnit, representing an individual LU (which is part of a
> target).
>
> It aims to support eventually support three separate iSCSI Target
> implementations:
>
> - iSCSI Enterprise Target (iet -- see
> http://iscsitarget.sourceforge.net);
> - the iSCSI Target driver provided by the Linux SCSI target framework
> project (tgt -- see http://stgt.berlios.de);
> - the Linux-iSCSI.org target engine (lio -- see
> http://linux-iscsi.org).
>
> Currently, only iet is supported, with the next two to follow in the
> order as specified above.
>
> Other implementations may be subsequently added.
>
> Typically, the two resource agents would be deployed together, such as
>
> - One iSCSITarget and one or more iSCSILogicalUnit instances in one
> ordered and collocated resource group, or
> - an iSCSITarget as a single resource, plus one non-ordered resource
> group of iSCSILogicalUnit instances, with the resource and the group
> being constrained via order and colocation constraints.
>
> Any feedback and comments are much appreciated. Thanks!

Looks very good. Applied. Many thanks.

Cheers,

Dejan

> Cheers,
> Florian
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev[at]lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev[at]lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


florian.haas at linbit

Jun 15, 2009, 12:58 AM

Post #4 of 4 (382 views)
Permalink
Re: [PATCH 0 of 1] iSCSITarget, iSCSILogicalUnit: RAs for managing iSCSI targets and LUs [In reply to]

Dejan,

that actually got applied way quicker than I expected. The iSCSITarget
RA is still lacking clean shutdown of existing connections on resource
stop -- but as you know now I have a sed wizard sitting across the room
from me, who will surely be tremendously helpful in adding that
functionality. :)

Expect a few update patches in the next couple of weeks or so.

Cheers,
Florian

On 2009-06-15 09:26, Dejan Muhamedagic wrote:
> Looks very good. Applied. Many thanks.
>
> Cheers,
>
> Dejan
>
Attachments: signature.asc (0.25 KB)

Linux-HA dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.