LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: samba question

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: samba question
From: "Will McDonald" <wmcdonald@xxxxxxxxx>
Date: Tue, 21 Mar 2006 11:17:09 +0000
On 21/03/06, J.Paechnatz <jpaechnatz@xxxxxxxxxxxxxxxxx> wrote:
> Hello...
>
> as I read in the faq and wiki it should be possible load balance samba.
>
> what I want to do: 1 virtual server, consisting of 4 real servers and at
> two of the real servers I want to setup ldirectord. access to storage,
> redundancy etc. will be handled by storage/fiberswitch.
>
> does somebody have some experience with lvs/ldirectord and samba?
> performance issues? masterbrowser selection etc.?

We have a simple Samba share available on some systems sat behind a
pair of LVSs. The LVSs are running CentOS4 and the repackaged
Ultramonkey packages out of the CentOS Extras repository...

heartbeat-ldirectord-1.2.3.cvs.20050927-1.centos4
heartbeat-stonith-1.2.3.cvs.20050927-1.centos4
heartbeat-pils-1.2.3.cvs.20050927-1.centos4
heartbeat-1.2.3.cvs.20050927-1.centos4

The ldirectord.cf on the LVSs looks as follows...

# TEST SAMBA THROUGH TO DBVIP
virtual=192.168.24.45:137
        real=192.168.25.10:137 masq
        service=none
        scheduler=rr
        persistent=600
        protocol=udp
# TEST SAMBA THROUGH TO DBVIP
virtual=192.168.24.45:138
        real=192.168.25.10:138 masq
        service=none
        scheduler=rr
        persistent=600
        protocol=udp
# TEST SAMBA THROUGH TO DBVIP
virtual=192.168.24.45:139
        real=192.168.25.10:139 masq
        service=none
        scheduler=rr
        persistent=600
        protocol=tcp
# TEST SAMBA THROUGH TO DBVIP
virtual=192.168.24.45:445
        real=192.168.25.10:445 masq
        service=none
        scheduler=rr
        persistent=600
        protocol=tcp

The back-end boxes are FC3 running Ultramonkey packages again, and
DRBD for disk replication.

heartbeat-stonith-1.2.3-2.fr.c.1
heartbeat-pils-1.2.3-2.fr.c.1
heartbeat-1.2.3-2.fr.c.1

Samba startup is handled from /etc/ha.d/haresources by simply
including "smb" as a resource which starts/stops on failover. The
smb.conf's very simple too...

[global]
        server string = Samba on %h
        hosts allow = 192.168.24.
        log file = /var/log/samba/%m.log
        max log size = 5000
        security = share
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        interfaces = 192.168.25.6/32 192.168.25.10/32
        dns proxy = no
[ftp]
        comment = Test FTP Homes
        browseable = yes
        writeable = yes
        guest ok = yes
        path = /mnt/sharedhomes/

This has been pretty reliable but it's not high volume by any stretch
of the imagination. Nor is it attached to a domain so I'm not sure how
you'll get on with browser mastering etc.

Will.

<Prev in Thread] Current Thread [Next in Thread>