showmount sometimes slow with carp

Mickaël Canévet canevet at embl.fr
Wed Feb 16 16:14:54 UTC 2011


Hi again, again,

The problem seams to be even more general (so I put freebsd-net in
copy).

When I ping carp interface, I lost some pings...

ping data-test
PING data-test.embl.fr (172.26.9.236) 56(84) bytes of data.
64 bytes from data-test.embl.fr (172.26.9.236): icmp_req=7 ttl=64
time=0.183 ms
64 bytes from data-test.embl.fr (172.26.9.236): icmp_req=8 ttl=64
time=0.217 ms
64 bytes from data-test.embl.fr (172.26.9.236): icmp_req=23 ttl=64
time=0.273 ms
64 bytes from data-test.embl.fr (172.26.9.236): icmp_req=24 ttl=64
time=0.217 ms
64 bytes from data-test.embl.fr (172.26.9.236): icmp_req=25 ttl=64
time=0.219 ms
64 bytes from data-test.embl.fr (172.26.9.236): icmp_req=26 ttl=64
time=0.132 ms
64 bytes from data-test.embl.fr (172.26.9.236): icmp_req=27 ttl=64
time=0.203 ms
64 bytes from data-test.embl.fr (172.26.9.236): icmp_req=28 ttl=64
time=0.157 ms
64 bytes from data-test.embl.fr (172.26.9.236): icmp_req=29 ttl=64
time=0.191 ms
64 bytes from data-test.embl.fr (172.26.9.236): icmp_req=30 ttl=64
time=0.238 ms
64 bytes from data-test.embl.fr (172.26.9.236): icmp_req=31 ttl=64
time=0.226 ms
64 bytes from data-test.embl.fr (172.26.9.236): icmp_req=32 ttl=64
time=0.272 ms
64 bytes from data-test.embl.fr (172.26.9.236): icmp_req=33 ttl=64
time=0.215 ms
64 bytes from data-test.embl.fr (172.26.9.236): icmp_req=36 ttl=64
time=0.180 ms
64 bytes from data-test.embl.fr (172.26.9.236): icmp_req=37 ttl=64
time=0.314 ms
64 bytes from data-test.embl.fr (172.26.9.236): icmp_req=38 ttl=64
time=0.169 ms
64 bytes from data-test.embl.fr (172.26.9.236): icmp_req=39 ttl=64
time=0.206 ms
64 bytes from data-test.embl.fr (172.26.9.236): icmp_req=40 ttl=64
time=0.170 ms
64 bytes from data-test.embl.fr (172.26.9.236): icmp_req=41 ttl=64
time=0.158 ms
^C
--- data-test.embl.fr ping statistics ---
41 packets transmitted, 19 received, 53% packet loss, time 40184ms
rtt min/avg/max/mdev = 0.132/0.207/0.314/0.045 ms


Is it a bug, or am I doing something wrong ?

Here is my network configuration:

defaultrouter="172.26.9.254"
hostname="pc234.embl.fr"
cloned_interfaces="lagg0 carp0"
ifconfig_bge0="up"
ifconfig_em0="up"
ifconfig_em1="172.26.14.234/24"
ifconfig_lagg0="laggproto failover laggport bge0 laggport em0"
ipv4_addrs_lagg0="172.26.9.234/24"
ifconfig_carp0="vhid 1 pass 497500fd0f6c3988d1f advskew 10
172.26.9.236/24"

Tomorrow I'll try with a carp interface that is not over a network
bonding to see if the problem comes from that.

Mickaël


On Wed, 2011-02-16 at 16:29 +0100, Mickaël Canévet wrote:
> Hi again,
> 
> I also have a problem when I mount an exported filesystem through the
> carp VIP.
> 
> When I do that:
> 
> mount <real IP or alias>:/data/user /mnt
> while true; do time df -H /mnt > /dev/null; sleep 5; done 2>&1 | grep
> ^real
> 
> real	0m0.004s
> real	0m0.004s
> real	0m0.004s
> real	0m0.004s
> real	0m0.004s
> ...
> 
> But when I do that:
> 
> mount <carp vip>:/data/user /mnt
> while true; do time df -H /mnt > /dev/null; sleep 5; done 2>&1 | grep
> ^real
> real    0m0.005s
> real    0m0.207s
> real    0m0.206s
> real    0m52.150s
> real    0m0.004s
> real    0m0.004s
> real    0m0.002s
> real    0m0.204s
> real    0m0.206s
> real    0m0.614s
> real    0m0.004s
> real    0m0.207s
> real    0m0.205s
> real    0m0.206s
> real    0m0.206s
> real    0m0.613s
> real    0m0.003s
> 
> Every now and then I have a long delay with the vip that I don't have
> with the real IP or an alias...
> 
> On Wed, 2011-02-16 at 13:22 +0100, Mickaël Canévet wrote:
> > Hi,
> > 
> > I installed a redundant NAS with FreeBSD 8.2RC3 + Hast + ZFS + Carp.
> > 
> > Each machine has its own IP address, and share a virtual IP with carp.
> > 
> > When I launch 'showmount -e <one machine real ip>' from a linux client
> > or a freebsd client, I got my answer immediately (about 5ms). But when I
> > try with carp virtual IP or FQDN, it sometimes takes around 20 seconds,
> > or even 1 minute, but not everytime.
> > 
> > It is really annoying because automount, at least the linux version,
> > seams to use showmount to get server exports. So it sometimes does not
> > work through the carp virtual IP.
> > 
> > Can anybody help me ?
> > 
> > Thanks a lot,
> > 
> > Mickaël
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20110216/db21dd46/attachment.pgp


More information about the freebsd-net mailing list