Re: [Linux-HA] question on Creating an Active/Passive iSCSI configuration

2011-03-22 Thread Randy Katz
This was posted quite a while ago, anyone care to look into it and
answer?

Thank you in advance,
Randy

On 3/14/2011 6:18 AM, Dejan Muhamedagic wrote:
 On Fri, Mar 11, 2011 at 10:23:37AM -0800, Randy Katz wrote:
 On 3/11/2011 3:29 AM, Dejan Muhamedagic wrote:
 Hi,

 On Fri, Mar 11, 2011 at 01:36:25AM -0800, Randy Katz wrote:
 On 3/11/2011 12:50 AM, RaSca wrote:
 Il giorno Ven 11 Mar 2011 07:32:32 CET, Randy Katz ha scritto:
 ps - in /var/log/messages I find this:

 Mar 10 22:31:45 drbd1 lrmd: [3274]: ERROR: get_resource_meta: pclose
 failed: Interrupted system call
 Mar 10 22:31:45 drbd1 lrmd: [3274]: WARN: on_msg_get_metadata: empty
 metadata for ocf::linbit::drbd.
 Mar 10 22:31:45 drbd1 lrmadmin: [3481]: ERROR:
 lrm_get_rsc_type_metadata(578): got a return code HA_FAIL from a reply
 message of rmetadata with function get_ret_from_msg.
 [...]

 Hi,
 I think that the message no such resource agent is explaining what's
 the matter.
 Does the file /usr/lib/ocf/resource.d/linbit/drbd exists? Is the drbd
 file executable? Have you correctly installed the drbd packages?

 Check those things, you can try to reinstall drbd.

 Hi

 # ls -l /usr/lib/ocf/resource.d/linbit/drbd
 -rwxr-xr-x 1 root root 24523 Jun  4  2010
 /usr/lib/ocf/resource.d/linbit/drbd
 Which cluster-glue version do you run?
 Try also:

 # lrmadmin -C
 # lrmadmin -P ocf drbd
 # export OCF_ROOT=/usr/lib/ocf
 # /usr/lib/ocf/resource.d/linbit/drbd meta-data
 I am running from a source build/install as per clusterlabs.org as the
 rpm's had broken dependencies and
 would not install. I have now blown away that CentOS (one of them)
 machine and installed openSUSE as they
 said everything was included but it seems on 11.3 not on 11.4, on 11.4
 the install is broken and so now
 I guess that openSUSE would like to hear about it too, just in
 which way it is broken.

I did an openSUSE 11.4 install from DVD. I then used zypper to install 
pacemaker heartbeat corosync libpacemaker3. I ended up
with a clusterlabs.repo and older versions and had to break dependency 
for pacemaker or it would not install. I found out later there
are later versions, precompiled in the openSUSE repository, you just 
need to call the specific versions and they will install, I had to
remove the previous as some new dependencies were created. The versions 
I ended up with are:

Name: pacemaker
Version: 1.1.5-3.2
Arch: x86_64
Vendor: openSUSE

Name: libpacemaker3
Version: 1.1.5-3.2
Arch: x86_64
Vendor: openSUSE

Name: heartbeat
Version: 3.0.4-25.28.1
Arch: x86_64
Vendor: openSUSE

Name: corosync
Version: 1.3.0-3.1
Arch: x86_64
Vendor: openSUSE

At this point I was not sure whether to install iet or tgt, I saw some 
examples with tgt so I installed that. So far it looks like I have CRM 
and have mocked up the example from ha-iscsi.pdf (trying to mitigate 
some of the errors, there are errors!). I noticed the floating ip 
addresses do not ping so I added a new set and they ping though the 
original ones do not, perhaps something else in the config is 
prohibiting that. Here are my current crm config commands:

property stonith-enabled=false
property no-quorum-policy=ignore
property default-resource-stickiness=200
primitive res_drbd_iscsivg01 ocf:linbit:drbd params 
drbd_resource=iscsivg01 op monitor interval=10s
ms ms_drbd_iscsivg01 res_drbd_iscsivg01 meta master-max=1 
master-node-max=1 clone-max=2 clone-node-max=1 notify=true
primitive res_drbd_iscsivg02 ocf:linbit:drbd params 
drbd_resource=iscsivg02 op monitor interval=10s
ms ms_drbd_iscsivg02 res_drbd_iscsivg02 meta clone-max=2 notify=true
primitive res_ip_alicebob01 ocf:heartbeat:IPaddr2 params 
ip=192.168.1.218 cidr_netmask=24 op monitor interval=10s
primitive res_ip_alicebob02 ocf:heartbeat:IPaddr2 params 
ip=192.168.1.219 cidr_netmask=24 op monitor interval=10s
primitive res_ip_c1c201 ocf:heartbeat:IPaddr2 params ip=192.168.1.220 
cidr_netmask=24 op monitor interval=10s
primitive res_ip_c1c202 ocf:heartbeat:IPaddr2 params ip=192.168.1.221 
cidr_netmask=24 op monitor interval=10s
primitive res_lvm_iscsivg01 ocf:heartbeat:LVM params 
volgrpname=iscsivg01 op monitor interval=30s
primitive res_lvm_iscsivg02 ocf:heartbeat:LVM params 
volgrpname=iscsivg02 op monitor interval=30s
primitive res_target_iscsivg01 ocf:heartbeat:iSCSITarget params 
iqn=iqn.2011-03.com.example:storage.example.iscsivg01 tid=1 op 
monitor interval=10s
primitive res_target_iscsivg02 ocf:heartbeat:iSCSITarget params 
iqn=iqn.2011-03.com.example:storage.example.iscsivg02 tid=2 op 
monitor interval=10s
primitive res_lu_iscsivg01_lun1 ocf:heartbeat:iSCSILogicalUnit params 
target_iqn=iqn.2011-03.com.example:storage.example.iscsivg01 lun=1 
path=/dev/iscsivg01/lun1 op monitor interval=10s
primitive res_lu_iscsivg01_lun2 ocf:heartbeat:iSCSILogicalUnit params 
target_iqn=iqn.2011-03.com.example:storage.example.iscsivg01 lun=2 
path=/dev/iscsivg01/lun2 op monitor interval=10s
primitive res_lu_iscsivg02_lun1 ocf:heartbeat:iSCSILogicalUnit params 

Re: [Linux-HA] question on Creating an Active/Passive iSCSI configuration

2011-03-15 Thread Randy Katz
On 3/14/2011 6:18 AM, Dejan Muhamedagic wrote:
 On Fri, Mar 11, 2011 at 10:23:37AM -0800, Randy Katz wrote:
 On 3/11/2011 3:29 AM, Dejan Muhamedagic wrote:
 Hi,

 On Fri, Mar 11, 2011 at 01:36:25AM -0800, Randy Katz wrote:
 On 3/11/2011 12:50 AM, RaSca wrote:
 Il giorno Ven 11 Mar 2011 07:32:32 CET, Randy Katz ha scritto:
 ps - in /var/log/messages I find this:

 Mar 10 22:31:45 drbd1 lrmd: [3274]: ERROR: get_resource_meta: pclose
 failed: Interrupted system call
 Mar 10 22:31:45 drbd1 lrmd: [3274]: WARN: on_msg_get_metadata: empty
 metadata for ocf::linbit::drbd.
 Mar 10 22:31:45 drbd1 lrmadmin: [3481]: ERROR:
 lrm_get_rsc_type_metadata(578): got a return code HA_FAIL from a reply
 message of rmetadata with function get_ret_from_msg.
 [...]

 Hi,
 I think that the message no such resource agent is explaining what's
 the matter.
 Does the file /usr/lib/ocf/resource.d/linbit/drbd exists? Is the drbd
 file executable? Have you correctly installed the drbd packages?

 Check those things, you can try to reinstall drbd.

 Hi

 # ls -l /usr/lib/ocf/resource.d/linbit/drbd
 -rwxr-xr-x 1 root root 24523 Jun  4  2010
 /usr/lib/ocf/resource.d/linbit/drbd
 Which cluster-glue version do you run?
 Try also:

 # lrmadmin -C
 # lrmadmin -P ocf drbd
 # export OCF_ROOT=/usr/lib/ocf
 # /usr/lib/ocf/resource.d/linbit/drbd meta-data
 I am running from a source build/install as per clusterlabs.org as the
 rpm's had broken dependencies and
 would not install. I have now blown away that CentOS (one of them)
 machine and installed openSUSE as they
 said everything was included but it seems on 11.3 not on 11.4, on 11.4
 the install is broken and so now
 I guess that openSUSE would like to hear about it too, just in
 which way it is broken.

I did an openSUSE 11.4 install from DVD. I then used zypper to install 
pacemaker heartbeat corosync libpacemaker3. I ended up
with a clusterlabs.repo and older versions and had to break dependency 
for pacemaker or it would not install. I found out later there
are later versions, precompiled in the openSUSE repository, you just 
need to call the specific versions and they will install, I had to
remove the previous as some new dependencies were created. The versions 
I ended up with are:

Name: pacemaker
Version: 1.1.5-3.2
Arch: x86_64
Vendor: openSUSE

Name: libpacemaker3
Version: 1.1.5-3.2
Arch: x86_64
Vendor: openSUSE

Name: heartbeat
Version: 3.0.4-25.28.1
Arch: x86_64
Vendor: openSUSE

Name: corosync
Version: 1.3.0-3.1
Arch: x86_64
Vendor: openSUSE

At this point I was not sure whether to install iet or tgt, I saw some 
examples with tgt so I installed that. So far it looks like I have CRM 
and have mocked up the example from ha-iscsi.pdf (trying to mitigate 
some of the errors, there are errors!). I noticed the floating ip 
addresses do not ping so I added a new set and they ping though the 
original ones do not, perhaps something else in the config is 
prohibiting that. Here are my current crm config commands:

property stonith-enabled=false
property no-quorum-policy=ignore
property default-resource-stickiness=200
primitive res_drbd_iscsivg01 ocf:linbit:drbd params 
drbd_resource=iscsivg01 op monitor interval=10s
ms ms_drbd_iscsivg01 res_drbd_iscsivg01 meta master-max=1 
master-node-max=1 clone-max=2 clone-node-max=1 notify=true
primitive res_drbd_iscsivg02 ocf:linbit:drbd params 
drbd_resource=iscsivg02 op monitor interval=10s
ms ms_drbd_iscsivg02 res_drbd_iscsivg02 meta clone-max=2 notify=true
primitive res_ip_alicebob01 ocf:heartbeat:IPaddr2 params 
ip=192.168.1.218 cidr_netmask=24 op monitor interval=10s
primitive res_ip_alicebob02 ocf:heartbeat:IPaddr2 params 
ip=192.168.1.219 cidr_netmask=24 op monitor interval=10s
primitive res_ip_c1c201 ocf:heartbeat:IPaddr2 params ip=192.168.1.220 
cidr_netmask=24 op monitor interval=10s
primitive res_ip_c1c202 ocf:heartbeat:IPaddr2 params ip=192.168.1.221 
cidr_netmask=24 op monitor interval=10s
primitive res_lvm_iscsivg01 ocf:heartbeat:LVM params 
volgrpname=iscsivg01 op monitor interval=30s
primitive res_lvm_iscsivg02 ocf:heartbeat:LVM params 
volgrpname=iscsivg02 op monitor interval=30s
primitive res_target_iscsivg01 ocf:heartbeat:iSCSITarget params 
iqn=iqn.2011-03.com.example:storage.example.iscsivg01 tid=1 op 
monitor interval=10s
primitive res_target_iscsivg02 ocf:heartbeat:iSCSITarget params 
iqn=iqn.2011-03.com.example:storage.example.iscsivg02 tid=2 op 
monitor interval=10s
primitive res_lu_iscsivg01_lun1 ocf:heartbeat:iSCSILogicalUnit params 
target_iqn=iqn.2011-03.com.example:storage.example.iscsivg01 lun=1 
path=/dev/iscsivg01/lun1 op monitor interval=10s
primitive res_lu_iscsivg01_lun2 ocf:heartbeat:iSCSILogicalUnit params 
target_iqn=iqn.2011-03.com.example:storage.example.iscsivg01 lun=2 
path=/dev/iscsivg01/lun2 op monitor interval=10s
primitive res_lu_iscsivg02_lun1 ocf:heartbeat:iSCSILogicalUnit params 
target_iqn=iqn.2011-03.com.example:storage.example.iscsivg02 lun=1 
path=/dev/iscsivg02/lun1 op monitor interval=10s

Re: [Linux-HA] question on Creating an Active/Passive iSCSI configuration

2011-03-14 Thread Andrew Beekhof
On Fri, Mar 11, 2011 at 7:23 PM, Randy Katz rk...@simplicityhosting.com wrote:
 On 3/11/2011 3:29 AM, Dejan Muhamedagic wrote:
 Hi,

 On Fri, Mar 11, 2011 at 01:36:25AM -0800, Randy Katz wrote:
 On 3/11/2011 12:50 AM, RaSca wrote:
 Il giorno Ven 11 Mar 2011 07:32:32 CET, Randy Katz ha scritto:
 ps - in /var/log/messages I find this:

 Mar 10 22:31:45 drbd1 lrmd: [3274]: ERROR: get_resource_meta: pclose
 failed: Interrupted system call
 Mar 10 22:31:45 drbd1 lrmd: [3274]: WARN: on_msg_get_metadata: empty
 metadata for ocf::linbit::drbd.
 Mar 10 22:31:45 drbd1 lrmadmin: [3481]: ERROR:
 lrm_get_rsc_type_metadata(578): got a return code HA_FAIL from a reply
 message of rmetadata with function get_ret_from_msg.
 [...]

 Hi,
 I think that the message no such resource agent is explaining what's
 the matter.
 Does the file /usr/lib/ocf/resource.d/linbit/drbd exists? Is the drbd
 file executable? Have you correctly installed the drbd packages?

 Check those things, you can try to reinstall drbd.

 Hi

 # ls -l /usr/lib/ocf/resource.d/linbit/drbd
 -rwxr-xr-x 1 root root 24523 Jun  4  2010
 /usr/lib/ocf/resource.d/linbit/drbd
 Which cluster-glue version do you run?
 Try also:

 # lrmadmin -C
 # lrmadmin -P ocf drbd
 # export OCF_ROOT=/usr/lib/ocf
 # /usr/lib/ocf/resource.d/linbit/drbd meta-data
 I am running from a source build/install as per clusterlabs.org as the
 rpm's had broken dependencies and
 would not install.

Its a good idea to report that, with details, so that it can get fixed.

 I have now blown away that CentOS (one of them)
 machine and installed openSUSE as they
 said everything was included but it seems on 11.3 not on 11.4, on 11.4
 the install is broken and so now
 running some later later versions and running into some other issues,
 will report back with findings. What
 os distro is the least of the problems to get this stuff running on? I
 just want to get it running, run a few tests,
 and then figure out where to go from there.

 Thanks,
 Randy
 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] question on Creating an Active/Passive iSCSI configuration

2011-03-14 Thread Dejan Muhamedagic
On Fri, Mar 11, 2011 at 10:23:37AM -0800, Randy Katz wrote:
 On 3/11/2011 3:29 AM, Dejan Muhamedagic wrote:
  Hi,
 
  On Fri, Mar 11, 2011 at 01:36:25AM -0800, Randy Katz wrote:
  On 3/11/2011 12:50 AM, RaSca wrote:
  Il giorno Ven 11 Mar 2011 07:32:32 CET, Randy Katz ha scritto:
  ps - in /var/log/messages I find this:
 
  Mar 10 22:31:45 drbd1 lrmd: [3274]: ERROR: get_resource_meta: pclose
  failed: Interrupted system call
  Mar 10 22:31:45 drbd1 lrmd: [3274]: WARN: on_msg_get_metadata: empty
  metadata for ocf::linbit::drbd.
  Mar 10 22:31:45 drbd1 lrmadmin: [3481]: ERROR:
  lrm_get_rsc_type_metadata(578): got a return code HA_FAIL from a reply
  message of rmetadata with function get_ret_from_msg.
  [...]
 
  Hi,
  I think that the message no such resource agent is explaining what's
  the matter.
  Does the file /usr/lib/ocf/resource.d/linbit/drbd exists? Is the drbd
  file executable? Have you correctly installed the drbd packages?
 
  Check those things, you can try to reinstall drbd.
 
  Hi
 
  # ls -l /usr/lib/ocf/resource.d/linbit/drbd
  -rwxr-xr-x 1 root root 24523 Jun  4  2010
  /usr/lib/ocf/resource.d/linbit/drbd
  Which cluster-glue version do you run?
  Try also:
 
  # lrmadmin -C
  # lrmadmin -P ocf drbd
  # export OCF_ROOT=/usr/lib/ocf
  # /usr/lib/ocf/resource.d/linbit/drbd meta-data
 I am running from a source build/install as per clusterlabs.org as the 
 rpm's had broken dependencies and
 would not install. I have now blown away that CentOS (one of them) 
 machine and installed openSUSE as they
 said everything was included but it seems on 11.3 not on 11.4, on 11.4 
 the install is broken and so now

I guess that openSUSE would like to hear about it too, just in
which way it is broken.

Thanks,

Dejan

 running some later later versions and running into some other issues, 
 will report back with findings. What
 os distro is the least of the problems to get this stuff running on? I 
 just want to get it running, run a few tests,
 and then figure out where to go from there.
 
 Thanks,
 Randy
 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] question on Creating an Active/Passive iSCSI configuration

2011-03-11 Thread RaSca
Il giorno Ven 11 Mar 2011 07:32:32 CET, Randy Katz ha scritto:
 ps - in /var/log/messages I find this:

 Mar 10 22:31:45 drbd1 lrmd: [3274]: ERROR: get_resource_meta: pclose
 failed: Interrupted system call
 Mar 10 22:31:45 drbd1 lrmd: [3274]: WARN: on_msg_get_metadata: empty
 metadata for ocf::linbit::drbd.
 Mar 10 22:31:45 drbd1 lrmadmin: [3481]: ERROR:
 lrm_get_rsc_type_metadata(578): got a return code HA_FAIL from a reply
 message of rmetadata with function get_ret_from_msg.
[...]

Hi,
I think that the message no such resource agent is explaining what's 
the matter.
Does the file /usr/lib/ocf/resource.d/linbit/drbd exists? Is the drbd 
file executable? Have you correctly installed the drbd packages?

Check those things, you can try to reinstall drbd.

-- 
RaSca
Mia Mamma Usa Linux: Niente è impossibile da capire, se lo spieghi bene!
ra...@miamammausalinux.org
http://www.miamammausalinux.org

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] question on Creating an Active/Passive iSCSI configuration

2011-03-11 Thread Randy Katz
On 3/11/2011 12:50 AM, RaSca wrote:
 Il giorno Ven 11 Mar 2011 07:32:32 CET, Randy Katz ha scritto:
 ps - in /var/log/messages I find this:

 Mar 10 22:31:45 drbd1 lrmd: [3274]: ERROR: get_resource_meta: pclose
 failed: Interrupted system call
 Mar 10 22:31:45 drbd1 lrmd: [3274]: WARN: on_msg_get_metadata: empty
 metadata for ocf::linbit::drbd.
 Mar 10 22:31:45 drbd1 lrmadmin: [3481]: ERROR:
 lrm_get_rsc_type_metadata(578): got a return code HA_FAIL from a reply
 message of rmetadata with function get_ret_from_msg.
 [...]

 Hi,
 I think that the message no such resource agent is explaining what's 
 the matter.
 Does the file /usr/lib/ocf/resource.d/linbit/drbd exists? Is the drbd 
 file executable? Have you correctly installed the drbd packages?

 Check those things, you can try to reinstall drbd.

Hi

# ls -l /usr/lib/ocf/resource.d/linbit/drbd
-rwxr-xr-x 1 root root 24523 Jun  4  2010 
/usr/lib/ocf/resource.d/linbit/drbd

DRBD is running fine, I have setup that part of it already. I am using 
the ha-scsi.pdf and up to this
point everything is fine.

Randy
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] question on Creating an Active/Passive iSCSI configuration

2011-03-11 Thread RaSca
Il giorno Ven 11 Mar 2011 10:36:25 CET, Randy Katz ha scritto:
[...]
 Hi
 # ls -l /usr/lib/ocf/resource.d/linbit/drbd
 -rwxr-xr-x 1 root root 24523 Jun 4 2010 /usr/lib/ocf/resource.d/linbit/drbd
 DRBD is running fine, I have setup that part of it already. I am using
 the ha-scsi.pdf and up to this
 point everything is fine.
 Randy

This is a little bit strange. If you are sure about the drbd setup than 
the no such resource agent error should not be present. What is your 
pacemaker version? It might be a bug (on google there are some cases of 
this kind of problems that are bugs).
You can even try to run the resource agent manually, by going into the 
/usr/lib/ocf/resource.d/linbit/ and setting the environmental variables 
needed, and see what happens.

-- 
RaSca
Mia Mamma Usa Linux: Niente è impossibile da capire, se lo spieghi bene!
ra...@miamammausalinux.org
http://www.miamammausalinux.org

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] question on Creating an Active/Passive iSCSI configuration

2011-03-11 Thread RaSca
Il giorno Ven 11 Mar 2011 11:15:03 CET, RaSca ha scritto:
[...]
 This is a little bit strange. If you are sure about the drbd setup than
 the no such resource agent error should not be present. What is your
 pacemaker version? It might be a bug (on google there are some cases of
 this kind of problems that are bugs).
 You can even try to run the resource agent manually, by going into the
 /usr/lib/ocf/resource.d/linbit/ and setting the environmental variables
 needed, and see what happens.

Another thing... Have you tried declaring also the Master-slave resource 
for that drbd and see what happens?

-- 
RaSca
Mia Mamma Usa Linux: Niente è impossibile da capire, se lo spieghi bene!
ra...@miamammausalinux.org
http://www.miamammausalinux.org

___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] question on Creating an Active/Passive iSCSI configuration

2011-03-11 Thread Dejan Muhamedagic
Hi,

On Fri, Mar 11, 2011 at 01:36:25AM -0800, Randy Katz wrote:
 On 3/11/2011 12:50 AM, RaSca wrote:
  Il giorno Ven 11 Mar 2011 07:32:32 CET, Randy Katz ha scritto:
  ps - in /var/log/messages I find this:
 
  Mar 10 22:31:45 drbd1 lrmd: [3274]: ERROR: get_resource_meta: pclose
  failed: Interrupted system call
  Mar 10 22:31:45 drbd1 lrmd: [3274]: WARN: on_msg_get_metadata: empty
  metadata for ocf::linbit::drbd.
  Mar 10 22:31:45 drbd1 lrmadmin: [3481]: ERROR:
  lrm_get_rsc_type_metadata(578): got a return code HA_FAIL from a reply
  message of rmetadata with function get_ret_from_msg.
  [...]
 
  Hi,
  I think that the message no such resource agent is explaining what's 
  the matter.
  Does the file /usr/lib/ocf/resource.d/linbit/drbd exists? Is the drbd 
  file executable? Have you correctly installed the drbd packages?
 
  Check those things, you can try to reinstall drbd.
 
 Hi
 
 # ls -l /usr/lib/ocf/resource.d/linbit/drbd
 -rwxr-xr-x 1 root root 24523 Jun  4  2010 
 /usr/lib/ocf/resource.d/linbit/drbd

Which cluster-glue version do you run?
Try also:

# lrmadmin -C
# lrmadmin -P ocf drbd
# export OCF_ROOT=/usr/lib/ocf
# /usr/lib/ocf/resource.d/linbit/drbd meta-data

Thanks,

Dejan

 DRBD is running fine, I have setup that part of it already. I am using 
 the ha-scsi.pdf and up to this
 point everything is fine.
 
 Randy
 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] question on Creating an Active/Passive iSCSI configuration

2011-03-11 Thread Randy Katz
On 3/11/2011 3:29 AM, Dejan Muhamedagic wrote:
 Hi,

 On Fri, Mar 11, 2011 at 01:36:25AM -0800, Randy Katz wrote:
 On 3/11/2011 12:50 AM, RaSca wrote:
 Il giorno Ven 11 Mar 2011 07:32:32 CET, Randy Katz ha scritto:
 ps - in /var/log/messages I find this:

 Mar 10 22:31:45 drbd1 lrmd: [3274]: ERROR: get_resource_meta: pclose
 failed: Interrupted system call
 Mar 10 22:31:45 drbd1 lrmd: [3274]: WARN: on_msg_get_metadata: empty
 metadata for ocf::linbit::drbd.
 Mar 10 22:31:45 drbd1 lrmadmin: [3481]: ERROR:
 lrm_get_rsc_type_metadata(578): got a return code HA_FAIL from a reply
 message of rmetadata with function get_ret_from_msg.
 [...]

 Hi,
 I think that the message no such resource agent is explaining what's
 the matter.
 Does the file /usr/lib/ocf/resource.d/linbit/drbd exists? Is the drbd
 file executable? Have you correctly installed the drbd packages?

 Check those things, you can try to reinstall drbd.

 Hi

 # ls -l /usr/lib/ocf/resource.d/linbit/drbd
 -rwxr-xr-x 1 root root 24523 Jun  4  2010
 /usr/lib/ocf/resource.d/linbit/drbd
 Which cluster-glue version do you run?
 Try also:

 # lrmadmin -C
 # lrmadmin -P ocf drbd
 # export OCF_ROOT=/usr/lib/ocf
 # /usr/lib/ocf/resource.d/linbit/drbd meta-data
I am running from a source build/install as per clusterlabs.org as the 
rpm's had broken dependencies and
would not install. I have now blown away that CentOS (one of them) 
machine and installed openSUSE as they
said everything was included but it seems on 11.3 not on 11.4, on 11.4 
the install is broken and so now
running some later later versions and running into some other issues, 
will report back with findings. What
os distro is the least of the problems to get this stuff running on? I 
just want to get it running, run a few tests,
and then figure out where to go from there.

Thanks,
Randy
___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Re: [Linux-HA] question on Creating an Active/Passive iSCSI configuration

2011-03-10 Thread Randy Katz
ps - in /var/log/messages I find this:

Mar 10 22:31:45 drbd1 lrmd: [3274]: ERROR: get_resource_meta: pclose 
failed: Interrupted system call
Mar 10 22:31:45 drbd1 lrmd: [3274]: WARN: on_msg_get_metadata: empty 
metadata for ocf::linbit::drbd.
Mar 10 22:31:45 drbd1 lrmadmin: [3481]: ERROR: 
lrm_get_rsc_type_metadata(578): got a return code HA_FAIL from a reply 
message of rmetadata with function get_ret_from_msg.

On 3/10/2011 10:29 PM, Randy Katz wrote:
 Hi,

 I hope this is the correct forum for this, it is crm:

 The initial configuration commands worked or so it seems (not sure how
 to check).

 crm(live)# configure
 crm(live)configure# property stonith-enabled=false
 crm(live)configure# property no-quorum-policy=ignore
 crm(live)configure# property default-resource-stickiness=200
 crm(live)configure# commit

 Then the following, the first command gives an error:

 # crm
 crm(live)# configure
 crm(live)configure# primitive res_drbd_iscsivg01 \
 ocf:linbit:drbd \
 params drbd_resource=iscsivg01 \
 op monitor interval=10
 lrmadmin[3437]: 2011/03/10_22:29:03 ERROR:
 lrm_get_rsc_type_metadata(578): got a return code HA_FAIL from a reply
 message of rmetadata with function get_ret_from_msg.
 ERROR: ocf:linbit:drbd: could not parse meta-data:
 ERROR: ocf:linbit:drbd: no such resource agent

 I am a bit lost not sure what to check from here.
 Thank you in advance,
 Randy
 ___
 Linux-HA mailing list
 Linux-HA@lists.linux-ha.org
 http://lists.linux-ha.org/mailman/listinfo/linux-ha
 See also: http://linux-ha.org/ReportingProblems


___
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems