From owner-freebsd-questions@FreeBSD.ORG Thu Dec 24 13:46:50 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF6291065679 for ; Thu, 24 Dec 2009 13:46:50 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id B00D68FC1F for ; Thu, 24 Dec 2009 13:46:50 +0000 (UTC) Received: from r55.edvax.de (port-92-195-26-31.dynamic.qsc.de [92.195.26.31]) by mx01.qsc.de (Postfix) with ESMTP id 5B4293CB33; Thu, 24 Dec 2009 14:46:48 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id nBODkmeY003772; Thu, 24 Dec 2009 14:46:48 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Thu, 24 Dec 2009 14:46:48 +0100 From: Polytropon To: Marwan Sultan Message-Id: <20091224144648.cc5d8ba1.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: After freebsd-update - all went wrong. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2009 13:46:51 -0000 On Thu, 24 Dec 2009 13:31:13 +0000, Marwan Sultan wrote: > i'm on FreeBSD 7.2-R p4 > I just applied : > # freebsd-update fetch > # freebsd-update install > with no problems Later you mentioned that you run a custom kernel, especially for inclusion of quota. When using the freebsd-update tool, you have to pay extra attention to custom kernel - it usually just works for the GENERIC kernel without any modifications, that's what this tool primarily is intended for. > After i restarted the server > i lost my ssh connection, server went down! Server down OR "just" no connection? > I have contacted the hosting company, and after investigation > they informed me that for some reason system is ignoring the > "defaulroute" command in rc.conf > So they had manualy add the defaultroute to rc.local !! The use of rc.local is still possible, but deprecated; it's mostly a means for backward compatibility. Furthermore, I don't see a "defaulroute" setting (not command per se) in /etc/rc.conf (and /etc/defaults/rc.conf for completeness); only things found are: defaultrouter="NO" # Set to default gateway (or NO). ipv6_defaultrouter="NO" # Set to IPv6 default gateway (or NO). #ipv6_defaultrouter="2002:c058:6301::" # Use this for 6to4 (RFC 3068) Is this what you mean? Are you sure you didn't overwrite any important configuration file, like /etc/hosts, /etc/resolv.conf or even rc.conf? > And after this small workaround, I found out users quota is not running > So i figured that its ignoring the default kernel. No, the GENERIC kernel just doesn't include quota functionality. > I have recompiled my custom kernel.. > Now quotas working! Of course, yours seems to include it. > and system still > FreeBSD xxx.com 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #0: Fri Oct 2 12:21:39 UTC 2009 What should it be instead? It would be nice if you could tell which version you came from, and which version you updated to. Have you updated your src/ subtree, especially for the kernel sources? Seems that even if your system has been updated with freebsd-update to 8, your kernel has been compiled from the 7.2-p4 sources... > it didnot even apply the patchs !! Patches go into the src/ subtree when updating it, e. g. with "make update" in /usr/src (using csup or cvsup). > and still reading the default route from rc.local It would be helpful to see some config file examples. Maybe rc.local overrides things that should already work? > This shouldnot happen with freebsd-update tool !! what the heck! Wrong use of the right tool maybe? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...