From owner-freebsd-fs@freebsd.org Thu Jul 2 23:24:18 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4C584993B64 for ; Thu, 2 Jul 2015 23:24:18 +0000 (UTC) (envelope-from email.ahmedkamal@googlemail.com) Received: from mail-wg0-x22c.google.com (mail-wg0-x22c.google.com [IPv6:2a00:1450:400c:c00::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DD7CA1C34 for ; Thu, 2 Jul 2015 23:24:17 +0000 (UTC) (envelope-from email.ahmedkamal@googlemail.com) Received: by wgqq4 with SMTP id q4so75017008wgq.1 for ; Thu, 02 Jul 2015 16:24:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=O5iazDqgNMivlvJuzXWgWgO/xs5dhu4sLEgZH2sTfXk=; b=SayPNOZN6Iz3ApsZYXELwy6joA79LfHjz3oixO7D8Uf87xkNdt6Bxmjpz6XxwSlrg4 rcfcivHEa8qPWP+vuSWX7VvP5vpaKhdZG/h3c5dzKVKwy+gjsGzddtPbBj1I8KKdiuYj luVhCGm/0D0BU/X5U4qsqED5qgGw3Q1myc+kum5ZOzib37UvzIMmempB+V7p8P7MpizM hXQ03J16oc2/INCIbA+NWvk1cZk+dMEGuEm+IEBlb+QgxFBl/iBJoivhR04CAYfHCNnX u5gINatHFG+VfCINL0NAROzS23q4bB3SUwES+hrY2db2tiLJOlHEJDX/Nu919EIxJQzm TXGw== X-Received: by 10.194.6.229 with SMTP id e5mr16123508wja.158.1435879456372; Thu, 02 Jul 2015 16:24:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.6.143 with HTTP; Thu, 2 Jul 2015 16:23:56 -0700 (PDT) From: Ahmed Kamal Date: Fri, 3 Jul 2015 01:23:56 +0200 Message-ID: Subject: NFS4 exports are blocked when NIS master server is unreachable To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jul 2015 23:24:18 -0000 I opened this ticket [ https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201155] a week ago, but haven't heard since. I thought to discuss it here. Here's a paste of the bug for convenience. Thanks all! My Setup is: * A FreeBSD 10.1 with ZFS exporting NFS4 to a Linux server * That Linux server is a NIS master for the FreeBSD box The issue is: * Upon power failure .. Both servers starting fresh * FreeBSD boots faster (grin) * FreeBSD doesn't find NIS master and bombards logs with hundreds of thousands of messages!! like Jun 27 13:47:53 nas /usr/sbin/ypbind[827]: NIS server [192.168.10.254] for domain "SIVISION" not responding Jun 27 13:48:24 nas last message repeated 51704 times Jun 27 13:49:26 nas last message repeated 104381 times * In this state, FreeBSD does not allow any other machine to NFS4 mount its shares. This includes the NIS master Linux box * Linux boot hangs waiting for the NFS share to allow it to mount it * We are in a deadlock. Linux waiting for the NFS share to mount, while FreeBSD is waiting for the NIS server on Linux to start