[OpenAFS] AFS FileServer and Heartbeat

Cristina Bulfon cristina.bulfon@roma1.infn.it
Mon, 2 Feb 2009 15:13:44 +0100


--Apple-Mail-9--273729332
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed;
	delsp=yes
Content-Transfer-Encoding: 7bit

Hello,

We'd like to configure AFS Fileserver using  heartbeat in active/ 
passive mode.
The servers have been installed using the Big Box Linux ES46 (based on  
RedHat) with OpenAFS 1.4.7, heartbeat 2.1.3 and DRBD 8.3.0.

The test layout consists of two servers and two partitions ( one is / 
vicepa and the other is /usr/afs). The disk/partitons are visible  
through the SAN on both servers and DRBD takes care about that.

On the heartbeat side we have the following haresource file

afsitfs3.roma1.infn.it  IPaddr2::Y.Y.Y.Y/24/eth0:0
afsitfs3.roma1.infn.it  drbddisk::r0  Filesystem::/dev/drbd1::/ 
vicepa::xfs
afsitfs3.roma1.infn.it  drbddisk::r1  Filesystem::/dev/drbd2::/usr/ 
afs::ext3
afsitfs3.roma1.infn.it         Y.Y.Y.Y   afs

On the afs side we've also configured the NetInfo and the NetRestrict  
file, in the NetInfo we put the IP address stored on VLDB server ( in  
this case Y.Y.Y.Y) while in the NetRestrict put the IP addresses of  
the two servers.

The problem is that everything is working fine inside the LAN  but If  
I try to execute a simple command like "ls"  from outiside the LAN I got

Connection Timed Out

If we look at the FileLog file we saw that the Fileserver takes the IP  
and hostname as the real server instead of the virtual one.
....
Mon Feb  2 13:18:37 2009 FileServer host name is 'afsitfs3.roma1.infn.it
Mon Feb  2 13:18:37 2009 FileServer afsitfs3.roma1.infn.it has address  
141.108.26.29 (0x1d1a6c8d or 0x8d6c1a1d in host byte order)
.....

We really appreciate any suggestion for solving the problem

Thanks in advance

cristina
--Apple-Mail-9--273729332
Content-Type: text/html;
	charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; "><div style=3D"word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space; "><div style=3D"margin-top: 0in; margin-right: 0in; =
margin-left: 0in; margin-bottom: 0.0001pt; font-family: 'Times New =
Roman', serif; "><span style=3D"font-family: Verdana, sans-serif; =
">Hello,<br><br>We'd like to configure AFS Fileserver using =
&nbsp;heartbeat in active/passive mode.</span><o:p></o:p></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-left: 0in; =
margin-bottom: 0.0001pt; font-family: 'Times New Roman', serif; "><span =
style=3D"font-family: Verdana, sans-serif; ">The servers have been =
installed using the Big Box Linux ES46 (based on RedHat)&nbsp;with =
OpenAFS 1.4.7, heartbeat 2.1.3 and DRBD =
8.3.0.</span><o:p></o:p></div></div><div><div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-left: 0in; =
margin-bottom: 0.0001pt; font-family: 'Times New Roman', serif; "><span =
style=3D"font-family: Verdana, sans-serif; "><br>The test =
layout&nbsp;<span><font class=3D"Apple-style-span" =
color=3D"#080808">consists of</font></span>&nbsp;two servers<span =
style=3D"color: rgb(31, 73, 125); ">&nbsp;<font class=3D"Apple-style-span"=
 color=3D"#080307">and</font></span>&nbsp;two partitions ( one is =
/vicepa and the other is /usr/afs). The disk/partitons are visible =
through the SAN on both servers and DRBD&nbsp;<font =
class=3D"Apple-style-span" color=3D"#080405">take</font><span><font =
class=3D"Apple-style-span" color=3D"#080405">s</font></span>&nbsp;care =
about that.<br><br>On the heartbeat side we have the following =
haresource file<br><br>afsitfs3.roma1.infn.it =
&nbsp;IPaddr2::Y.Y.Y.Y/24/eth0:0<br>afsitfs3.roma1.infn.it =
&nbsp;drbddisk::r0 =
&nbsp;Filesystem::/dev/drbd1::/vicepa::xfs<br>afsitfs3.roma1.infn.it =
&nbsp;drbddisk::r1 =
&nbsp;Filesystem::/dev/drbd2::/usr/afs::ext3<br>afsitfs3.roma1.infn.it =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Y.Y.Y.Y =
&nbsp;&nbsp;afs<br><br>On the afs side we've also configured the NetInfo =
and the NetRestrict file,&nbsp;<span style=3D"color: rgb(31, 73, 125); =
">i<font class=3D"Apple-style-span" =
color=3D"#070408">n</font>&nbsp;</span>the NetInfo&nbsp;<span><font =
class=3D"Apple-style-span" color=3D"#080408">we =
put</font></span>&nbsp;the IP&nbsp;<span style=3D"color: rgb(31, 73, =
125); "><font class=3D"Apple-style-span" =
color=3D"#080305">address</font>&nbsp;</span>stored on VLDB server ( in =
this case Y.Y.Y.Y)&nbsp;<span><font class=3D"Apple-style-span" =
color=3D"#080306">while</font></span><font class=3D"Apple-style-span" =
color=3D"#080306">&nbsp;</font><span style=3D"color: rgb(31, 73, 125); =
"><font class=3D"Apple-style-span" =
color=3D"#080306">in</font>&nbsp;</span>the NetRestrict&nbsp;<span><font =
class=3D"Apple-style-span" color=3D"#080103">put</font></span>&nbsp;the =
IP<span style=3D"color: rgb(31, 73, 125); ">&nbsp;<font =
class=3D"Apple-style-span" color=3D"#080306">addresses of the two =
servers.</font></span><font class=3D"Apple-style-span" =
color=3D"#080306"><br></font><br>The problem is that everything is =
working fine inside the LAN &nbsp;but If I try to execute a simple =
command like "ls" &nbsp;from outiside the LAN I got<br><br>Connection =
Timed Out<br><br>If we look at the FileLog file we saw that the =
Fileserver takes the IP and hostname as the real server =
instead&nbsp;<span style=3D"color: rgb(31, 73, 125); "><font =
class=3D"Apple-style-span" color=3D"#080403">of</font>&nbsp;</span>the =
virtual one.</span><o:p></o:p></div></div><div><div style=3D"margin-top: =
0in; margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; =
font-family: 'Times New Roman', serif; "><span style=3D"font-family: =
Verdana, sans-serif; ">....</span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-left: 0in; =
margin-bottom: 0.0001pt; font-family: 'Times New Roman', serif; "><span =
style=3D"font-family: Verdana, sans-serif; ">Mon Feb &nbsp;2 13:18:37 =
2009 FileServer host name is =
'afsitfs3.roma1.infn.it</span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-left: 0in; =
margin-bottom: 0.0001pt; font-family: 'Times New Roman', serif; "><span =
style=3D"font-family: Verdana, sans-serif; ">Mon Feb &nbsp;2 13:18:37 =
2009 FileServer afsitfs3.roma1.infn.it has address 141.108.26.29 =
(0x1d1a6c8d or 0x8d6c1a1d in host byte =
order)</span><o:p></o:p></div></div><div><div style=3D"margin-top: 0in; =
margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; =
font-family: 'Times New Roman', serif; "><span style=3D"font-family: =
Verdana, sans-serif; ">.....</span><o:p></o:p></div></div><div><div =
style=3D"margin-top: 0in; margin-right: 0in; margin-left: 0in; =
margin-bottom: 0.0001pt; font-family: 'Times New Roman', serif; =
"><o:p>&nbsp;</o:p></div></div><div><div style=3D"margin-top: 0in; =
margin-right: 0in; margin-left: 0in; margin-bottom: 0.0001pt; =
font-family: 'Times New Roman', serif; "><span style=3D"font-family: =
Verdana, sans-serif; ">We really appreciate any suggestion for solving =
the problem<br><br>Thanks in =
advance<br><br>cristina</span></div></div></div></div></div></body></html>=

--Apple-Mail-9--273729332--