showmount sometimes slow with carp

Mickaël Canévet canevet at embl.fr
Wed Feb 16 15:29:06 UTC 2011


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-fs/attachments/20110216/fdacab8b/attachment.pgp


More information about the freebsd-fs mailing list