[Pacemaker] how to keep ftp connection when swap from primary to secondary

Ultrabug ultrabug at ultrabug.net
Fri Aug 27 07:28:47 UTC 2010


On 26/08/2010 18:44, Liang.Ma at asc-csa.gc.ca wrote:
> Hi,
>

Hi

> I installed ipvsadm and ran
>
> ipvsadm --start-daemon=master --mcast-interface=eth0
>
> in master node and
>
> ipvsadm --start-daemon=backup --mcast-interface=eth0
>
> in backup node. But still i lost ftp connection during node swap.
>

Did you actually check that connections get replicated using `ipvadm -Lc` ?

In recent kernels there is a IPVS Helper for FTP (see CONFIG_IP_VS_FTP 
on your kernel). I don't use it myself but maybe it could help you 
achieve what you want.

I'll stop here since we're drifting topic on this ML, if something is 
unclear to you, feel free to mail me directly.

Kind regards,

>
> Liang Ma
> Contractuel | Consultant | SED Systems Inc.
> Ground Systems Analyst
> Agence spatiale canadienne | Canadian Space Agency
> 6767, Route de l'Aéroport, Longueuil (St-Hubert), QC, Canada, J3Y 8Y9
> Tél/Tel : (450) 926-5099 | Téléc/Fax: (450) 926-5083
> Courriel/E-mail : [liang.ma at space.gc.ca]
> Site web/Web site : [www.space.gc.ca ]
>
>
>
>
> -----Original Message-----
> From: Ma, Liang
> Sent: August 26, 2010 12:17 PM
> To: 'The Pacemaker cluster resource manager'
> Subject: RE: [Pacemaker] how to keep ftp connection when swap from primary to secondary
>
> Thank you Raoul. I will try it.
>
> Liang Ma
> Contractuel | Consultant | SED Systems Inc.
> Ground Systems Analyst
> Agence spatiale canadienne | Canadian Space Agency
> 6767, Route de l'Aéroport, Longueuil (St-Hubert), QC, Canada, J3Y 8Y9
> Tél/Tel : (450) 926-5099 | Téléc/Fax: (450) 926-5083
> Courriel/E-mail : [liang.ma at space.gc.ca]
> Site web/Web site : [www.space.gc.ca ]
>
>
>
>
> -----Original Message-----
> From: Raoul Bhatia [IPAX] [mailto:r.bhatia at ipax.at]
> Sent: August 26, 2010 11:17 AM
> To: The Pacemaker cluster resource manager
> Subject: Re: [Pacemaker] how to keep ftp connection when swap from primary to secondary
>
> On 08/26/2010 04:42 PM, Liang.Ma at asc-csa.gc.ca wrote:
>> I have followed the guide in "Clusters from Scratch" written by Andrew
>> Beekhof and successfully setup an Active/Passive pair of cluster
>> servers. The cluster runs in Fedora 13 and includes services like
>> apache, vsftpd and nfs. Drbd is used to allow data consistence during a
>> failover. Everything works fine except ftp lose its connection when the
>> service swaps from primary to the secondary or vice versa. I know to
>> keep the ftp connection, one may need to keep the connection states for
>> the session across the nodes. But I couldn't find clue how to do it.
>> Does anyone there have any idea how to keep the ftp connection when
>> swapping nodes, if it is possible?
>
> hi,
>
> as of now, we're not syncing our connections between the load
> balancers, but i would suggest
> http://www.linuxvirtualserver.org/docs/sync.html and the like.
>
>
> cheers,
> raoul





More information about the Pacemaker mailing list