Cluster configuration scst

239 views
Skip to first unread message

Roman Drovalev

unread,
Aug 2, 2019, 12:40:15 PM8/2/19
to esos-users
Hello.
I want to configure cluster scst. I do the configuration according to the instructions - https://github.com/quantum/esos/wiki/42_Cluster_Configuration
When entering the command: 
crm configure primitive p_scst ocf:esos:scst params alua="true" device_group=”esos” local_tgt_grp=”local” remote_tgt_grp=”remote” op monitor interval=”10” role="Master" op monitor interval=”20” role="Slave" op start interval="0" timeout="120" op stop interval="0" timeout="90"

this error comes out:
ERROR: Relax-NG validity error : Element op failed to validate attributes
Relax-NG validity error : Extra element operations in interleave
       operations (6): Element primitive failed to validate content
       primitive (9): Element resources has extra content: primitive
Errors found during check: config not valid
WARNING: p_scst: interval in monitor_Slave must be unique
Do you still want to commit (y/n)? n

Why does the error appear? How to configure this cluster scst for FC target?
Thank.

ESOS ver. 2.0

Marc Smith

unread,
Aug 5, 2019, 10:11:46 AM8/5/19
to esos-...@googlegroups.com
Hi,

Do you get that message when attempting to commit a shadow CIB? Or are
you editing the cluster config manually (eg, crm configure edit)?
Cluster configuration is really dependent on your desired setup and
back-end storage topology.

--Marc
> --
> You received this message because you are subscribed to the Google Groups "esos-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to esos-users+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/esos-users/7b4e0e6a-8386-47fb-ae7e-dbec7308d30a%40googlegroups.com.

Roman Drovalev

unread,
Aug 7, 2019, 9:55:33 AM8/7/19
to esos-users
Hello. 
I do these actions as described in the instructions (I substitute my wwn)

On the first host, using the shell (Interface -> Exit to Shell):

/etc/rc.d/rc.scst start
scstadmin -add_dgrp esos
scstadmin -add_tgrp local -dev_group esos
scstadmin -set_tgrp_attr local -dev_group esos -attributes group_id=1
scstadmin -add_tgrp_tgt 21:00:00:e0:8b:9d:74:49 -dev_group esos -tgt_group local
scstadmin -set_ttgt_attr 21:00:00:e0:8b:9d:74:49 -dev_group esos -tgt_group local -attributes rel_tgt_id=1
scstadmin -add_tgrp remote -dev_group esos
scstadmin -set_tgrp_attr remote -dev_group esos -attributes group_id=2
scstadmin -add_tgrp_tgt 21:00:00:1b:32:01:6b:11 -dev_group esos -tgt_group remote
scstadmin -set_ttgt_attr 21:00:00:1b:32:01:6b:11 -dev_group esos -tgt_group remote -attributes rel_tgt_id=2
/etc/rc.d/rc.scst stop

On the second host, using the shell (Interface -> Exit to Shell):

/etc/rc.d/rc.scst start
scstadmin -add_dgrp esos
scstadmin -add_tgrp local -dev_group esos
scstadmin -set_tgrp_attr local -dev_group esos -attributes group_id=2
scstadmin -add_tgrp_tgt 21:00:00:1b:32:01:6b:11 -dev_group esos -tgt_group local
scstadmin -set_ttgt_attr 21:00:00:1b:32:01:6b:11 -dev_group esos -tgt_group local -attributes rel_tgt_id=2
scstadmin -add_tgrp remote -dev_group esos
scstadmin -set_tgrp_attr remote -dev_group esos -attributes group_id=1
scstadmin -add_tgrp_tgt 21:00:00:e0:8b:9d:74:49 -dev_group esos -tgt_group remote
scstadmin -set_ttgt_attr 21:00:00:e0:8b:9d:74:49 -dev_group esos -tgt_group remote -attributes rel_tgt_id=1
/etc/rc.d/rc.scst stop
>Do you get that message when attempting to commit a shadow CIB? Or are 
>you editing the cluster config manually (eg, crm configure edit)? 
>Cluster configuration is really dependent on your desired setup and 
>back-end storage topology. 

пятница, 2 августа 2019 г., 19:40:15 UTC+3 пользователь Roman Drovalev написал:

Roman Drovalev

unread,
Aug 9, 2019, 3:39:22 AM8/9/19
to esos-users
Hello.
I also don’t understand! To configure ALUA correctly, should the local and remote groups with the same name or not? 
According to the documentation - with the same name. 
But in my opinion it does not work!

Tanks. 

понедельник, 5 августа 2019 г., 17:11:46 UTC+3 пользователь Marc Smith написал:
Hi,

Do you get that message when attempting to commit a shadow CIB? Or are
you editing the cluster config manually (eg, crm configure edit)?
Cluster configuration is really dependent on your desired setup and
back-end storage topology.

--Marc

On Fri, Aug 2, 2019 at 12:40 PM Roman Drovalev <drov...@gmail.com> wrote:
>
> Hello.
> I want to configure cluster scst. I do the configuration according to the instructions - https://github.com/quantum/esos/wiki/42_Cluster_Configuration
> When entering the command:
> crm configure primitive p_scst ocf:esos:scst params alua="true" device_group=”esos” local_tgt_grp=”local” remote_tgt_grp=”remote” op monitor interval=”10” role="Master" op monitor interval=”20” role="Slave" op start interval="0" timeout="120" op stop interval="0" timeout="90"
>
> this error comes out:
> ERROR: Relax-NG validity error : Element op failed to validate attributes
> Relax-NG validity error : Extra element operations in interleave
>        operations (6): Element primitive failed to validate content
>        primitive (9): Element resources has extra content: primitive
> Errors found during check: config not valid
> WARNING: p_scst: interval in monitor_Slave must be unique
> Do you still want to commit (y/n)? n
>
> Why does the error appear? How to configure this cluster scst for FC target?
> Thank.
>
> ESOS ver. 2.0
>
> --
> You received this message because you are subscribed to the Google Groups "esos-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to esos-...@googlegroups.com.

Marc Smith

unread,
Aug 10, 2019, 12:33:56 PM8/10/19
to esos-...@googlegroups.com
Hi Roman,

Read through this document for more detailed information than what's
available on the ESOS wiki page:
https://sourceforge.net/p/scst/svn/HEAD/tree/branches/3.3.x/scst/README

In particular, start reading at the section beginning with "ALUA Support".

--Marc
> To unsubscribe from this group and stop receiving emails from it, send an email to esos-users+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/esos-users/8b13975c-079c-456f-8820-bcdde2c73f67%40googlegroups.com.

Roman Drovalev

unread,
Aug 13, 2019, 2:05:06 AM8/13/19
to esos-users
Hello.

Thanks, read it. I configured everything through TUI works. BUT not a single example from the documentation for a cluster does not work!

1.) I liked the idea from Zachlod.
What kind of cluster commands does he mean by the following?
crm_attributes ?

node 1: alpha
attributes nodetype=fctarget targetports="21:00:00:24:ff:60:d0:10,21:00:00:24:ff:60:d0:11" 
node 2: beta 
attributes nodetype=fctarget targetports="21:00:00:1b:32:0b:52:75,21:01:00:1b:32:2b:52:75"

2.) An example of my configuration in the picture.

Is it possible to implement this and how?
There are no specific examples in the documentation for clusters.
Please, help.


суббота, 10 августа 2019 г., 19:33:56 UTC+3 пользователь Marc Smith написал:
My cluster conf.jpg
Reply all
Reply to author
Forward
0 new messages