Hello, On 03/21/2012 12:57 AM, Carlos Xavier wrote: > Hi. > > Im tryng to make a cluster using pacemaker on OpenSUSE 12.1 with DRBD + > OCFS2 + Mysql on top of the filesystem. > The system will have two DRBD resources to be mounted on /var/lib/mysql > and on /export.
Be sure you configured "resource-and-stonith" fencing policy for DRBD and you use a correct fencing script like: goo.gl/O4N8f > > The resources were already done and the filesystem is already created > and tested. > So far I could start the resources with Pacemaker and create the OCFS2 > management group with the configuration below: > > node artemis > node jupiter > primitive dlm ocf:pacemaker:controld \ > op monitor interval="60" timeout="60" > primitive ip_mysql ocf:heartbeat:IPaddr2 \ > params ip="10.10.10.5" cidr_netmask="32" nic="vlan0" \ > op monitor interval="30s" > primitive o2cb ocf:ocfs2:o2cb \ > op monitor interval="60" timeout="60" > primitive resDRBD_export ocf:linbit:drbd \ > params drbd_resource="export" \ > operations $id="opsDRBD_export" \ > op monitor interval="20" role="Master" timeout="20" \ > op monitor interval="30" role="Slave" timeout="20" \ > meta target-role="started" > primitive resDRBD_mysql ocf:linbit:drbd \ > params drbd_resource="mysql" \ > operations $id="opsDRBD_mysql" \ > op monitor interval="20" role="Master" timeout="20" \ > op monitor interval="30" role="Slave" timeout="20" \ > meta target-role="started" > group grp_ocfs2_mgmt dlm o2cb > ms msDRBD_export resDRBD_export \ > meta resource-stickines="100" master-max="2" clone-max="2" > notify="true" interleave="true" > ms msDRBD_mysql resDRBD_mysql \ > meta resource-stickines="100" master-max="2" clone-max="2" > notify="true" interleave="true" > clone cl_ocfs2_mgmt grp_ocfs2_mgmt \ > meta interleave="true" > property $id="cib-bootstrap-options" \ > dc-version="1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" \ > cluster-infrastructure="openais" \ > expected-quorum-votes="2" \ > stonith-enabled="false" \ Bad idea! You should really use stonith in such a setup ... in any cluster setup. > no-quorum-policy="ignore" \ > last-lrm-refresh="1332282601" \ > default-resource-stickiness="1000" > > When I try to mount the filesystems appending the configuration below on > the crm: > > primitive ocfs2_export ocf:heartbeat:Filesystem \ > params device="/dev/drbd/by-res/export" directory="/export" > fstype="ocfs2" \ > op monitor interval="120s" > clone cl_exportFS ocfs2_export meta interleave="true" ordered="true" > > > order ord_ocfs2_exp msDRBD_export:promote cl_ocfs2_mgmt:start > cl_exportFS:start > colocation col_ocfs2 cl_exportFS cl_ocfs2_mgmt msDRBD_export:Master > > primitive ocfs2-mysql ocf:heartbeat:Filesystem \ > params device="/dev/drbd/by-res/mysql" directory="/var/lib/mysql" > fstype="ocfs2" \ > op monitor interval="120s" > clone clone-mysql-fs ocfs2-mysql meta interleave="true" > ordered="true" > > order ord_ocfs2_my msDRBD_mysql:promote cl_ocfs2_mgmt:start > cl_mysqlFS:start > colocation col_ocfs2 cl_mysqlFS cl_ocfs2_mgmt msDRBD_mysql:Master colocation col_ocfs2 inf: ....... Use "crm configure help colocation" to find out more, the same for order. You could also add the two file system primitives to the cl_ocfs2_mgmt group, then only the constraints between this group and DRBD are needed. Regards, Andreas -- Need help with Pacemaker? http://www.hastexo.com/now > > Just at the beginning of the commands I'm getting this error: > > jupiter:~ # crm configure > crm(live)configure# primitive ocfs2_export ocf:heartbeat:Filesystem \ >> params device="/dev/drbd/by-res/export" directory="/export" >> fstype="ocfs2" \ >> op monitor interval="120s" > WARNING: ocfs2_export: default timeout 20s for start is smaller than the > advised 60 > WARNING: ocfs2_export: default timeout 20s for stop is smaller than the > advised 60 > WARNING: ocfs2_export: default timeout 20s for monitor is smaller than > the advised 40 > crm(live)configure# clone cl_exportFS ocfs2_export meta > interleave="true" ordered="true" > crm(live)configure# order ord_ocfs2 msDRBD_export:promote > cl_ocfs2_mgmt:start cl_exportFS:start > ERROR: syntax in score near <msDRBD_export:promote> > > Im very sorry for bothering you but its the first time i work with > pacemaker, I searcher about this error and got nothing. > > Please tell me what I'm doing wrong or missing. What is the best way to > have two OCFS2 filesystem mounted by Pacemaker. > > Any help will be appreciated. > Regards, > Carlos. > > _______________________________________________ > Openais mailing list > [email protected] > https://lists.linuxfoundation.org/mailman/listinfo/openais
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Openais mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/openais
