RGManager will not start samba server

Latest response

Hi,

Basically i am trying to setup a HA share system using DRBD in the background for replication and then using the cluster to move the ip, mount (for the DRBD device) and the samba share on that mount. I have the ip and mount moving over fine without any issues but when it moves over to the other node it says started and considers the service fully running but there is no smb process running and no mention of rgmanager even attempting to start it or having any problems with it?!

I am not sure if i am asking in the right place but i have had a few days of google searches and cannot find a solution anywhere. I am also quite new to lunix and i am looking into replacing some of our windows servers for Redhat.

 

I am running 2 nodes (RH Trials) in an esxi machine as a test environment.

I am going about getting my solution all wrong or am i missing something?

Here is my cluster.conf:

 

<?xml version="1.0"?>

<cluster config_version="33" name="RHELClus2">

        <fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="3"/>

        <clusternodes>

                <clusternode name="RHClusPri" nodeid="1" votes="1">

                        <fence/>

                </clusternode>

                <clusternode name="RHClusSec" nodeid="2" votes="1">

                        <fence/>

                </clusternode>

        </clusternodes>

        <cman expected_votes="1" two_node="1"/>

        <fencedevices/>

        <rm log_level="7">

                <failoverdomains/>

                <resources>

                        <ip address="192.168.16.26" sleeptime="10"/>

                        <fs device="/dev/drbd1" fsid="17062" mountpoint="/mnt/drbd1" name="DRBD"/>

                        <script file="/usr/local/etc/drbd.d/makepridrbd.sh" name="MkDRBDDriPri"/>

                        <smb name="Samba" workgroup="DOMAIN.LOCAL"/>

                </resources>

                <service autostart="1" exclusive="0" name="Cluster" recovery="relocate">

                        <ip ref="192.168.16.26">

                                <script ref="MkDRBDDriPri">

                                        <fs ref="DRBD">

                                                <smb ref="Samba"/>

                                        </fs>

                                </script>

                        </ip>

                </service>

        </rm>

</cluster>

 

I have tried it with a smb.conf set in the resource and still have the same fault. I am using luci for the web management.

 

Here is my /var/log/messages entries for when the service comes online:

Apr 28 19:25:27 RHClusPri modcluster: Starting service: Cluster on node
Apr 28 19:25:27 RHClusPri rgmanager[1651]: Starting disabled service service:Cluster
Apr 28 19:25:27 RHClusPri rgmanager[18169]: Adding IPv4 address 192.168.16.26/27 to eth0
Apr 28 19:25:29 RHClusPri avahi-daemon[1487]: Registering new address record for 192.168.16.26 on eth0.IPv4.
Apr 28 19:25:31 RHClusPri rgmanager[18265]: Executing /usr/local/etc/drbd.d/makepridrbd.sh start
Apr 28 19:25:31 RHClusPri kernel: block drbd1: role( Secondary -> Primary )
Apr 28 19:25:31 RHClusPri rgmanager[18389]: mounting /dev/drbd1 on /mnt/drbd1
Apr 28 19:25:31 RHClusPri rgmanager[18412]: mount /dev/drbd1 /mnt/drbd1
Apr 28 19:25:31 RHClusPri kernel: kjournald starting. Commit interval 5 seconds
Apr 28 19:25:31 RHClusPri kernel: EXT3 FS on drbd1, internal journal
Apr 28 19:25:31 RHClusPri kernel: EXT3-fs: mounted filesystem with ordered data mode.
Apr 28 19:25:31 RHClusPri rgmanager[1651]: Service service:Cluster started

 

Any help would be appreciated or if you could point me into the right direction for additional help.

Thanks

Responses