From owner-freebsd-questions@FreeBSD.ORG Sun May 1 08:12:37 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7C5316A4CE for ; Sun, 1 May 2005 08:12:37 +0000 (GMT) Received: from lmail.bathnetworks.co.uk (mail.bathnetworks.com [84.92.24.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3164143D41 for ; Sun, 1 May 2005 08:12:36 +0000 (GMT) (envelope-from bsd@bathnetworks.com) Received: (qmail 17553 invoked by uid 510); 1 May 2005 09:16:16 +0100 Received: from 84.92.24.252 by lmail.bathnetworks.co.uk (envelope-from , uid 508) with qmail-scanner-1.24-st-qms (clamdscan: 0.83/710. spamassassin: 3.0.2. perlscan: 1.24-st-qms. Clear:RC:0(84.92.24.252):SA:0(-1.7/5.0):. Processed in 1.424648 secs); 01 May 2005 08:16:16 -0000 X-Spam-Status: No, hits=-1.7 required=5.0 X-Antivirus-MYDOMAIN-Mail-From: bsd@bathnetworks.com via lmail.bathnetworks.co.uk X-Antivirus-MYDOMAIN: 1.24-st-qms (Clear:RC:0(84.92.24.252):SA:0(-1.7/5.0):. Processed in 1.424648 secs Process 17546) Received: from mail.bathnetworks.com (HELO ?84.92.24.252?) (bsd@bathnetworks.com@84.92.24.252) by lmail.bathnetworks.co.uk with SMTP; 1 May 2005 09:16:14 +0100 From: Robert Slade To: "freebsd-questions@freebsd.org" Content-Type: text/plain Message-Id: <1114935374.16570.28.camel@lmail.bathnetworks.co.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Sun, 01 May 2005 09:16:14 +0100 Content-Transfer-Encoding: 7bit Subject: Free BSD & Heartbeat + Samba + Rsync X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 May 2005 08:12:37 -0000 Hi, I'm new to the world of HA and Unix having just moved from a windows based system. What I am trying to do is provide a network of XP, W2k and FreeBSD (5.3) machines a central File store. This store also needs to provide for backing up of off site machines. My problem is that I am not up onprogramming and I am having problems getting my brain around scripts etc. My thoughts are: Use heartbeat to form the core of the system. Use Samba to export file shares for the Windows machines. Use Rsync to sync the files between nodes of the cluster. Use FTP (VSftp or ProFTP) to receive backups of the data from the off site machines? I have got the bits running on their own, but i am having trouble with getting them to run together. If I have this right, heartbeat will stop and start services such as samba as the nodes change over. Heartbeat works fine and the cluster (ip 192.168.0.60 name cluster) appears on the network. The first problem is that samba needs to be started and stopped on the nodes. On FreeBSD Samba is started by running smbd and nmbd via inetd unless I missed something. According to the HB docs, to start/stop it needs a script so that a smb start or similar will work. I'm not sure how to do this. My second problem is that I can get rsync to work ok, but I need to get it to work in the reverse direction once the heartbeat has operated and the failed node bought backup. I've tried to use the Perl scripts that came with HB but failed as they are for linux rather than BSD and I do not know enough about Perl to fix this. Whilst the the different paths are easily sorted there are calls to utils that are not found on BSD. I can post the scripts it that would help. Advice on the feasibility of this setup would be appreciated as would help with sorting out the problems above Thanks Rob (sorry about the long post)