*Hi Robert..*

I use the following

this script will set a system setting for the use of a Stonith device
(external device used for sanity checking and prevention of split brains –
normally a UPS), the DRBD configuration is created and made part of the
DRBD_Resources, an instruction for mounting the DRBD disk, Samba is
configured, a shared IP Address is configured, a group is created to contain
the IP Address, Samba and the mounted filesystem (so that they all travel
together and start at the same time), the group is told to follow the DRBD
Master, and only to start after the DRBD master is online, and then a
cleanup job

*
*

*
*

*crm configure property stonith-enabled=false*

*crm configure primitive DRBD_Disk ocf:heartbeat:drbd params
drbd_resource=Storage1 op monitor role=Master interval=59s timeout=30s op
monitor role=Slave interval=60s timeout=30s *

*crm configure ms DRBD_Resource DRBD_Disk meta clone-max=2 notify=true
globally-unique=false target-role=stopped*

 *crm configure primitive Storage ocf:heartbeat:Filesystem params
fstype=ext3 directory=/Storage device=/dev/drbd0 meta target-role= stopped*

 *crm configure primitive Samba lsb:smb *

 *crm configure primitive Cluster_IP_Address ocf:heartbeat:IPaddr2 params
ip="10.5.2.86" broadcast="10.5.2.255" nic="eth0" idr_netmask="24" op monitor
interval="21s" timeout="5s"*

 *crm configure group Cluster_Resources Storage Cluster_IP_Address Samba*

 *crm configure colocation Cluster_Resource-Same-Node-as-DRBD_Resource inf:
Cluster_Resources DRBD_Resource:Master*

*crm configure order DRBD_Disk-before-Cluster_Resources inf:
DRBD_Resource:promote Cluster_Resources:start*

 *crm resource cleanup DRBD_Resource*

*crm resource cleanup Cluster_Resources*

*crm resource start DRBD_Resource*

*crm resource start Cluster_Resources*


 Jay

2009/8/13 Robert L. Harris <[email protected]>

>
> I have found "drbddisk" for starting and stopping my disks, is there
> similar for
> samba with heartbeat failover, or do I need it if my samba shares are on a
> primary/secondary configuration?
>
> Robert
>
> --
>
> :wq!
> ====================================================================
> Robert L. Harris                     | GPG Key ID: E344DA3B
>                                          @ x-hkp://pgp.mit.edu
> DISCLAIMER:
>       These are MY OPINIONS             With Dreams To Be A King,
>        ALONE.  I speak for              First One Should Be A Man
>        no-one else.                       - Manowar
>
>
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to