I have a customer that is using 250 gig drives for his business data. I have been using rsync to keep mirror copies of his data on a second machine. In the last 3 months I have lost 2 of four drives, the last one being the system drive. I have been doing a manual switchover. Each time rsync runs, I copy my samba conf files, passwd, shadow and group files from etc. Has anyone setup a HA configuration for samba servers on separate machines. If so, where can I get information for this kind of setup?
On Thu, 28 Apr 2005, Richmond Dyes wrote:> I have a customer that is using 250 gig drives for his business data. I > have been using rsync to keep mirror copies of his data on a second > machine. In the last 3 months I have lost 2 of four drives, the last > one being the system drive. I have been doing a manual switchover. Each > time rsync runs, I copy my samba conf files, passwd, shadow and group > files from etc. Has anyone setup a HA configuration for samba servers > on separate machines. If so, where can I get information for this kind > of setup? >http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/SambaHA.html http://www.redhat.com/docs/manuals/enterprise/RHEL-AS-2.1-Manual/cluster-manager/s1-service-samba.html http://www.openminds.co.uk/high_availability_solutions/file_servers/samba.htm http://www-306.ibm.com/software/tivoli/products/sys-auto-linux/downloads.html (the ibm link is for AIX *and* Linux for Power). Googled - "high availbility samba" and "high availability samba aix" Bill> -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >
> I have a customer that is using 250 gig drives for his business data. > I have been using rsync to keep mirror copies of his data on a second > machine. In the last 3 months I have lost 2 of four drives, the last > one being the system drive. I have been doing a manual switchover. > Each time rsync runs, I copy my samba conf files, passwd, shadow and > group files from etc. Has anyone setup a HA configuration for samba > servers on separate machines. If so, where can I get information for > this kind of setup?This isn't going to answer your question, but... I'm curious... has your client heard of RAID? It sounds like you would be well served with a simple set of mirrored drives. -- Paul Gienger Office: 701-281-1884 Applied Engineering Inc. Systems Architect Fax: 701-281-1322 URL: www.ae-solutions.com mailto: pgienger@ae-solutions.com
On Thu, 2005-04-28 at 08:17 -0400, Richmond Dyes wrote:> I have a customer that is using 250 gig drives for his business data. I > have been using rsync to keep mirror copies of his data on a second > machine. In the last 3 months I have lost 2 of four drives, the last > one being the system drive. I have been doing a manual switchover. Each > time rsync runs, I copy my samba conf files, passwd, shadow and group > files from etc. Has anyone setup a HA configuration for samba servers > on separate machines. If so, where can I get information for this kind > of setup? >http://thorin.xp.bethel.edu:7080/blojsom/blog/schdav/ Keep in mind that my requirements probably don't match yours. I don't do any file sharing (other than printer drivers), so you'll probably want to look into a SCSI RAID (probably RAID5) system that's shared between the machines, and get yourself some stonith devices so you don't corrupt your filesystems. Also some linked files might be unavailable to the general internet - email me off list if you want them and I'll make them available somewhere public. I haven't put this setup into production yet but it seems to work pretty well in the tests I've done. -- David Schlenk Operating Systems Analyst Bethel University Saint Paul, Minnesota david-schlenk@bethel.edu
Hi, And what about Software RAID? I've been using it for 5+ years. Not a single problem yet... Best regards, Bruno Guerreiro -----Original Message----- From: Richmond Dyes [mailto:rdyes@monroehosp.org] Sent: quinta-feira, 28 de Abril de 2005 14:44 To: Paul Gienger Cc: samba@lists.samba.org; Richmond.Dyes@monroehosp.org Subject: Re: [Samba] Mirrored samba servers. Paul Gienger wrote:> >> I have a customer that is using 250 gig drives for his business >> data. I have been using rsync to keep mirror copies of his data on a >> second machine. In the last 3 months I have lost 2 of four drives, >> the last one being the system drive. I have been doing a manual >> switchover. Each time rsync runs, I copy my samba conf files, passwd, >> shadow and group files from etc. Has anyone setup a HA configuration >> for samba servers on separate machines. If so, where can I get >> information for this kind of setup? > > > This isn't going to answer your question, but... > > I'm curious... has your client heard of RAID? It sounds like you > would be well served with a simple set of mirrored drives. >The problem is he has an ata system. If we went with a raid, we would want a 0,1 raid. striped with mirroring and I can't find a raid ata card to do that. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
We're running a similar setup here actually, so a few notes that may be of assistance to you are as follows: #1 - RAID 0 + RAID 1 is poor for performance, if you want striping and mirroring together you should probably be looking to some sort of parity striping mode like RAID 5. We're using 3Ware Escalade 9000 series controllers to do just that now with WDC 250GB Raid-Edition Serial ATA drives now, and have been for quite some time. Performance is beyond our expectations and reliability has been key. #2 - Quit copying /etc/passwd, group, etc! Yuck... Try looking into pam_ldap, nss_ldap, and samba/ldap configuration. OpenLDAP (free, open sourced LDAP server), has replication services built right in, and can store your users, passwords, mappings, and much more with full failover capability. We're running FreeBSD/64bit, (on AMD Opteron machines), using a primary/slave LDAP configuration wherein data changes are replicated automagically using 'slurpd' - it was quite easy to setup and all the necessary documentation exists on http://www.openldap.org/ - all of this stuff comes 'standard' out of the box in the FreeBSD ports collection too :) #3 - Along with your new LDAP-based database of users, passwords, groups, mappings, etc, you might want to take a look at using some nice graphical user management system - just simplify life for yourself if you're not overly familiar with modifying entries in an LDAP tree - try LAM (http://lam.sf.net/) - it's been great and I'm usuing it at several installations now. #4 - pam_ldap & nss_ldap (mentioned above) - will allow you to use the same account information stored in the ldap database for BOTH unix and Windows worlds - signle sign on is key :) #5 - Setup samba for primary domain control, and setup the second machine for secondary (BDC) services. We maintain the same shares on both machines, and two dirs for login scripts; should the primary server fail for some reason, the login scripts are over-written by the second set which maps all the same drive letters over to the second server - not entirely transparent mind you, but worst-case scenario if the main server goes out, is that users logoff and back on and continue where they left off from half hour ago (data replicated using rsync as well). #6 - last advantage to this setup, involves a bit more complexity, but you can device the load/shares out amongst the two servers and replicate data/login scripts in both directions (as we're doing) - so your 'backup' server is actually primary for some shares and vice-versa to the main server, effectively distributing the load. #7 - split your smb.conf files; keep one for PDC, one for BDC, and one for all the shares that they replicate/share for each other - that way you can rsync shares configuration file without changing the whole smb.conf file (just use an 'include' line to include the shares from the main smb.conf's). #8 - use CUPS; CUPS will replicate the printers across both servers and allow for fail-over design as well... Still working on how 'transparent' we can make this - so I won't feed you any details or bull about cause' I really havn't tested it well yet. All-in-all, not a pure 'High Availability' solution; but given a complete catastrophic failure of our main/primary server, we can be back up and running to within a half hour's data in less than a minute if need be - fairly impressive, and definetly noteworthy. Lot of food for thought, know this stuff can be overwhelming... Might send an email back to the list with further details after you do some reading; ie: what O/S you're using, LDAP/etc questions etc... Trust me, after having done three of these setups now myself it's worth the effort. Good place to start is the Samba Domain Control How-To, (which DOES explain LDAP+samba+nss_ldap integration and provide example configuration files). -- Nathan Vidican nvidican@wmptl.com Windsor Match Plate & Tool Ltd. http://www.wmptl.com/ -----Original Message----- From: samba-bounces+nvidican=wmptl.com@lists.samba.org [mailto:samba-bounces+nvidican=wmptl.com@lists.samba.org] On Behalf Of Richmond Dyes Sent: Thursday, April 28, 2005 8:17 AM To: samba@lists.samba.org Subject: [Samba] Mirrored samba servers. I have a customer that is using 250 gig drives for his business data. I have been using rsync to keep mirror copies of his data on a second machine. In the last 3 months I have lost 2 of four drives, the last one being the system drive. I have been doing a manual switchover. Each time rsync runs, I copy my samba conf files, passwd, shadow and group files from etc. Has anyone setup a HA configuration for samba servers on separate machines. If so, where can I get information for this kind of setup? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba