From owner-freebsd-stable@FreeBSD.ORG Tue Apr 15 00:37:02 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62BD5106566C for ; Tue, 15 Apr 2008 00:37:02 +0000 (UTC) (envelope-from nawfal@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.224]) by mx1.freebsd.org (Postfix) with ESMTP id 32F5C8FC21 for ; Tue, 15 Apr 2008 00:37:02 +0000 (UTC) (envelope-from nawfal@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so882777rvf.43 for ; Mon, 14 Apr 2008 17:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:reply-to:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding:from; bh=mn+RBDL+7iE5YDXVknBZRYH/qjauL4HxRroPQIb5krg=; b=NvK4RV3CrVHRXJJgkTwF6b7ST6lVzff6P8Z7LOtcjoxqnr3d6eniDzgzU7KcdWutN3/YuImi7uDqDMe3HKZQOBY5OVqD8160O1L6wYwkWudYMJi0hs9O44rUc/e8huGcybFCh0kz1FZHOcdcCeZKCIJWxXul7CZOF6TWVvJpE6A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:reply-to:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding:from; b=Xn0zP+gfeNLL2jYq7hvWdr3kDWd4SJg56PeXd23p9bcr6N2NheiCERo+D5hcIMDns3Qvj1SnY6pi7zHR3EmB9u3kY8gWuUvTL2KYe/DpxJDqyl/Aln8nJBmIa82QH5rReGNw9kVxHLIHwct/WnmKgwShb5QS29Wmf1FNOmyLVF8= Received: by 10.141.162.16 with SMTP id p16mr3863127rvo.243.1208219821883; Mon, 14 Apr 2008 17:37:01 -0700 (PDT) Received: from ?10.101.8.78? ( [203.106.65.8]) by mx.google.com with ESMTPS id b39sm10972110rvf.8.2008.04.14.17.36.59 (version=SSLv3 cipher=RC4-MD5); Mon, 14 Apr 2008 17:37:00 -0700 (PDT) To: Claus Guttesen In-Reply-To: References: <1208170926.12349.20.camel@nawfal-desktop> Content-Type: text/plain Date: Tue, 15 Apr 2008 08:36:49 +0800 Message-Id: <1208219809.12349.30.camel@nawfal-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit From: Nawfal bin Mohmad Rouyan Cc: freebsd-stable@freebsd.org Subject: Re: NFS and /etc/exports X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nawfal@googlemail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2008 00:37:02 -0000 On Mon, 2008-04-14 at 13:58 +0200, Claus Guttesen wrote: > > I have an issue with NFS /etc/exports file. The entry in my exports file > > is as below: > > > > /usr -alldirs -maproot=0:0 zerg hulk protoss terran > > > > OK just tested again, this only happens right after freshly booting > > 'build'. If I do > > > > kill -s HUP `cat /var/run/mountd.pid` > > > > to reread the /etc/exports fileon 'build', then I have no problem > > mounting the shared directory from the first host in the list. Is this a > > bug or is the entry in the /etc/exports file is wrong? > > Do you have any errors when you reboot related to nfs? > LOL! I forgot to check the console at boot. Been administering all the machines remotely and you forget to do the most basic thing. *sigh* Anyways, yes there was an error when starting mountd. It takes a few seconds to start but then it failed giving mount[618] error saying it can't resolve the first host in /etc/exports file. I add the first host in /etc/hosts file and reboot but then mountd can't resolve the second host in the list. So right now I use the machines IP addresses in /etc/exports file and it works flawlessly. Perhaps I need to set mountd to start later in the boot process so that it can resolve the hostnames in /etc/exports file? Thanks though. Really appreciate your tip! -- Nawfal bin Mohmad Rouyan