[Samba] samba and failover (drbd + heartbeat)

Ralf Gross Ralf-Lists at ralfgross.de
Wed May 16 11:55:48 GMT 2007


Ralf Gross schrieb:
> 
> I've setup two server A + B (debian etch) with drbd + heartbeat in
> active/passive mode.  If the primary server A fails, the shared
> storage is mounted on B, the virtual ip A-vip moves to the new primary
> B and samba is started by heartbeat. This works well, but I'm not sure
> which samba files should be identical on both server. Both have a
> dedicated machine account at the moment. 
> 
> primary:           A,     192.168.0.50 (active)
> secondary:         B,     192.168.0.60 (passive)
> cluster/failover:  A-vip, 192.168.0.70 (dns name and ip that the
>                                         client use to access the
> 				        shares)
> 
> Should I just kick all samba files on B and sync them with the files
> of the primary server A (maybe rsync or inotify, I don't use
> drbdlinks....)?
> 
> I *think* this would be the necessary directories:
> 
> /etc/samba
> /var/cache/samba
> /var/lib/samba
> /var/log/samba
> /var/run/samba
> /var/spool/samba
 
Ok, nobody is complaining, so guess it's the right way ;)

Ralf


More information about the samba mailing list