From owner-freebsd-questions@FreeBSD.ORG Sun May 30 18:26:05 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A584316A4CE for ; Sun, 30 May 2004 18:26:05 -0700 (PDT) Received: from watcher.puryear-it.com (ip-66-186-248-99.static.eatel.net [66.186.248.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5534043D5C for ; Sun, 30 May 2004 18:26:05 -0700 (PDT) (envelope-from dap99@i-55.com) Received: from localhost (unknown [127.0.0.1]) by watcher.puryear-it.com (Postfix) with ESMTP id EDC1134D1F for ; Sun, 30 May 2004 20:21:22 -0500 (CDT) Received: from watcher.puryear-it.com ([127.0.0.1]) by localhost (watcher.puryear-it.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 45534-08 for ; Sun, 30 May 2004 20:21:22 -0500 (CDT) Received: from yourqqh4336axf (localhost [127.0.0.1]) by watcher.puryear-it.com (Postfix) with SMTP id 9FCA634D1E for ; Sun, 30 May 2004 20:21:21 -0500 (CDT) Message-ID: <011401c446ae$3aa4cff0$6501a8c0@yourqqh4336axf> From: "adp" To: Date: Sun, 30 May 2004 20:25:50 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2739.300 X-Virus-Scanned: by amavisd-new Subject: Re: NFS server fail-over - how do you do it? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 May 2004 01:26:05 -0000 One of my big problems right now is that if our primary NFS server goes down then everything using that NFS mount locks up. If I change to the mounted filesystem on the client then it stalls: # pwd /root # cd /nfs-mount-dir [locks] If I try to reboot the reboot fails as well since FreeBSD can't unmount the filesystem!? How do I stop this from happening? I am using this to mount NFS filesystems: # mount -o bg,intr,soft ... ----- Original Message ----- From: "adp" To: Sent: Sunday, May 30, 2004 2:43 AM Subject: NFS server fail-over - how do you do it? > I am running a FreeBSD 4.9-REL NFS server. Once every several hours our main > NFS server replicates everything to a backup FreeBSD NFS server. We are okay > with the gap in time between replication. What we aren't sure about is how > to automate the fail-over between the primary to the secondary NFS server. > This is for a web cluster. Each client mounts several directories from the > NFS server. > > Let's say that our primary NFS server dies and just goes away. What then? > Are you periodically doing a mount or a file look-up of a mounted filesystem > to check if your NFS server died? If so are you just unmounting and > remounting everything using the backup NFS server? > > Just curious how this problem is being solved. > >