From owner-freebsd-questions@FreeBSD.ORG Thu Dec 24 14:06:49 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 9BA561065679 for ; Thu, 24 Dec 2009 14:06:49 +0000 (UTC) (envelope-from dead_line@hotmail.com) Received: from snt0-omc2-s22.snt0.hotmail.com (snt0-omc2-s22.snt0.hotmail.com [65.55.90.97]) by mx1.freebsd.org (Postfix) with ESMTP id 6D7B88FC17 for ; Thu, 24 Dec 2009 14:06:49 +0000 (UTC) Received: from SNT103-W32 ([65.55.90.71]) by snt0-omc2-s22.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 24 Dec 2009 06:06:49 -0800 Message-ID: X-Originating-IP: [195.226.241.85] From: Marwan Sultan To: Date: Thu, 24 Dec 2009 14:06:48 +0000 Importance: Normal In-Reply-To: <20091224144648.cc5d8ba1.freebsd@edvax.de> References: , <20091224144648.cc5d8ba1.freebsd@edvax.de> MIME-Version: 1.0 X-OriginalArrivalTime: 24 Dec 2009 14:06:49.0558 (UTC) FILETIME=[55FB4760:01CA84A2] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2009 14:06:49 -0000 Hi Poly=2C =20 Its very short story=2C my system is on FreeBSD 7.2- P4 and everything works great. Yes I have custom kernel=2C mainly for quotas. =20 I have run freebsd-update fetch and install=2C I forgot its only for gener= ic kernel. =20 However=2C after the freebsd-update fetch/install done=2C i restarted my s= erver then its down. Down means: its not connected to the internet because 1- it couldnot read the default route and couldnot recognize its ip addres= s. 2- restored to the orginal GENERIC kernel. =20 well=2C I have fixed problem two by installing back my custom kernel. but the system still ignores the "defaultroute" command in rc.conf this is why we have manuly added to the rc.local =20 No=2C I have not overwrite any files=2C and everything works great=2C unti= l i ran freebsd-update on my custom kernel by mistake. =20 But eventho it shouldnot touch rc.conf right? =20 my rc.local now has route add default 66.xx.x.x ifconfig em0 66.xx.x.x netmask 255.255.255.255 alias =20 If i take it off=2C system will not have any defaultroute anymore although = its in rc.conf defaultrouter=3D"66.xx.x.x" hostname=3D"xxxxxx.com" ifconfig_em0=3D"inet 66.xx.x.x netmask 255.255.255.0" =20 Thank you. > Subject: Re: After freebsd-update - all went wrong. >=20 > On Thu=2C 24 Dec 2009 13:31:13 +0000=2C Marwan Sultan wrote: > > i'm on FreeBSD 7.2-R p4 > > I just applied : > > # freebsd-update fetch > > # freebsd-update install > > with no problems >=20 > Later you mentioned that you run a custom kernel=2C > especially for inclusion of quota. When using the > freebsd-update tool=2C you have to pay extra attention > to custom kernel - it usually just works for the > GENERIC kernel without any modifications=2C that's > what this tool primarily is intended for. >=20 >=20 >=20 > > After i restarted the server > > i lost my ssh connection=2C server went down! >=20 > Server down OR "just" no connection? >=20 >=20 >=20 > > I have contacted the hosting company=2C 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 !! >=20 > The use of rc.local is still possible=2C but deprecated=3B > it's mostly a means for backward compatibility. >=20 > Furthermore=2C I don't see a "defaulroute" setting (not > command per se) in /etc/rc.conf (and /etc/defaults/rc.conf > for completeness)=3B only things found are: >=20 > defaultrouter=3D"NO" # Set to default gateway (or NO). > ipv6_defaultrouter=3D"NO" # Set to IPv6 default gateway (or NO). > #ipv6_defaultrouter=3D"2002:c058:6301::" # Use this for 6to4 (RFC 3068) >=20 > Is this what you mean? >=20 > Are you sure you didn't overwrite any important configuration > file=2C like /etc/hosts=2C /etc/resolv.conf or even rc.conf? >=20 >=20 >=20 > > And after this small workaround=2C I found out users quota is not runni= ng > > So i figured that its ignoring the default kernel. >=20 > No=2C the GENERIC kernel just doesn't include quota > functionality. >=20 >=20 >=20 > > I have recompiled my custom kernel.. > > Now quotas working! >=20 > Of course=2C yours seems to include it. >=20 >=20 > > and system still=20 > > FreeBSD xxx.com 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #0: Fri Oct 2 12:= 21:39 UTC 2009 >=20 > What should it be instead? >=20 > It would be nice if you could tell which version you > came from=2C and which version you updated to. >=20 > Have you updated your src/ subtree=2C especially for the > kernel sources? Seems that even if your system has been > updated with freebsd-update to 8=2C your kernel has been > compiled from the 7.2-p4 sources... >=20 >=20 >=20 > > it didnot even apply the patchs !! >=20 > Patches go into the src/ subtree when updating it=2C e. g. > with "make update" in /usr/src (using csup or cvsup). >=20 >=20 >=20 > > and still reading the default route from rc.local >=20 > It would be helpful to see some config file examples. > Maybe rc.local overrides things that should already work? >=20 >=20 >=20 > > This shouldnot happen with freebsd-update tool !! what the heck! >=20 > Wrong use of the right tool maybe? >=20 >=20 >=20 >=20 > --=20 > Polytropon > Magdeburg=2C Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe=2C Mousa=2C ... =20 _________________________________________________________________ Hotmail: Free=2C trusted and rich email service. http://clk.atdmt.com/GBL/go/171222984/direct/01/=