From owner-freebsd-stable@freebsd.org Mon Nov 12 21:09:39 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D2E0D1122D06 for ; Mon, 12 Nov 2018 21:09:38 +0000 (UTC) (envelope-from sven@freegw.xs4all.nl) Received: from lb3-smtp-cloud9.xs4all.net (lb3-smtp-cloud9.xs4all.net [194.109.24.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.xs4all.net", Issuer "RapidSSL SHA256 CA - G3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id AD206836DF for ; Mon, 12 Nov 2018 21:09:37 +0000 (UTC) (envelope-from sven@freegw.xs4all.nl) Received: from freegw.xs4all.nl ([IPv6:2001:888:10:a1a::2]) by smtp-cloud9.xs4all.net with ESMTP id MJRcg6BVASskCMJRegpfz6; Mon, 12 Nov 2018 22:08:30 +0100 Received: from [IPv6:2001:888:1a1a::2] (macbook.freegw.xs4all.nl [IPv6:2001:888:1a1a::2]) (authenticated bits=0) by freegw.xs4all.nl (8.15.2/8.15.2) with ESMTPSA id wACL8SVW001163 (version=TLSv1.2 cipher=AES128-SHA bits=128 verify=NOT) for ; Mon, 12 Nov 2018 22:08:28 +0100 (CET) (envelope-from sven@freegw.xs4all.nl) Subject: Re: Upgrade from 10.4 stable to 11.0 releng fails To: freebsd-stable@freebsd.org References: <6f0394cb-ae5a-f828-e10d-bf59d440c517@freegw.xs4all.nl> <40c3d131-315c-64e7-c8df-3bb9892ca3ac@grosbein.net> From: Sven Vermeulen Message-ID: Date: Mon, 12 Nov 2018 22:08:28 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <40c3d131-315c-64e7-c8df-3bb9892ca3ac@grosbein.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: nl Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfJxu18yztdcHLy8gtCvzgp97aSia93zkK7P14NidgXIenucnQqUzXb9JCbVlnNd/i0lHxSBgIFNOZrxGRvmSBvz71LXRwPHn4WiQz/qolXPAnEjnSMfo tdj8OkZQz3WpYdpRpkbZX7hBgKFHr0yzCI28C2omNki3hhw7JrzDk5gvQyFRjEkA59pdzx6GNPZ4JZpiyso2ZKRpL6phAZ/SaDo= X-Rspamd-Queue-Id: AD206836DF X-Spamd-Result: default: False [-0.59 / 200.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.73)[-0.729,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.56)[-0.564,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[xs4all.nl]; MX_GOOD(-0.01)[cached: mx3.xs4all.nl]; NEURAL_HAM_SHORT(-0.11)[-0.107,0]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[30.24.109.194.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:3265, ipnet:194.109.0.0/16, country:NL]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.02)[ipnet: 194.109.0.0/16(0.04), asn: 3265(0.03), country: NL(0.03)]; FROM_EQ_ENVFROM(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2018 21:09:39 -0000 COMPAT_FREEBSD10 was indeed missing in my custom kernel config. Now after a reboot the system continues, but then natd failed to start: # /etc/rc.d/natd start Starting natd. natd: unknown interface name xl0 /etc/rc.d/natd: WARNING: failed to start natd While xl0 is up and running: # ifconfig xl0 xl0: flags=8843 metric 0 mtu 1500 options=82009 ether 00:50:da:e3:31:f6 inet 82.94.48.144 netmask 0xffffffff broadcast 82.94.48.144 vhid 255 inet 10.0.0.150 netmask 0xffffff00 broadcast 10.0.0.255 vhid 3 nd6 options=29 media: Ethernet autoselect (100baseTX ) status: active Is this because of the new binaries (natd) are not yet installed? Op 12-11-2018 om 19:56 schreef Eugene Grosbein: > 13.11.2018 1:36, Sven Vermeulen wrote: > >> I am busy trying to upgrade FreeBSD from 10.4 stable to 11.0 releng with make world. >> >> I did the following steps: >> >> 1) svn update (for /base/releng/11.0) >> 2) make buildworld >> 3) make buildkernel (using a custom kernel config) >> 4) make installkernel (using a custom kernel config) >> >> installkernel gives some warnings with kldxref: >> >> kldxref /boot/kernel >> kldxref: unknown metadata record 4 in file aic.ko >> kldxref: unknown metadata record 4 in file atacard.ko >> kldxref: unknown metadata record 4 in file atp.ko >> ... >> >> I'm not sure if I can safely ignore these warnings. > > Yes, you can. However, you better upgrade directly from 10.4 to 11.2 when using source upgrade path > to save the time and troubles. > >> >> 5) reboot >> >> After the reboot the kernel seems to start fine but after that I get the following error: >> >> pid 22 (sh), uid 0: exited on signal 12 >> init: /bin/sh on /etc/rc terminated abnormally, going to single user mode >> Enter full pathname of shell or RETURN for /bin/sh: >> >> When I run the command /bin/sh /etc/rc on the prompt I get the following error: >> >> pid 30 (sh), uid 0: exited on signal 12 >> Bad system call >> >> Any idea what is going wrong here? > > signal 12 is SIGSYS meaning that your binaries use syscalls that kernel does not have, > so you either still run old 10.4 kernel with new binaries or you run new custom 11.0 kernel > built without options COMPAT_FREEBSD10 and old binaries. > > There are many possible cases for this. For example, if you have degraded gmirror then > you might installed new kernel and binaries to one part of the mirror only (due to its degraded state) > but loader boots old kernel using another part of the mirror because it known nothing about gmirror > and uses BIOS service to read plain disk (make it boot from another part forcebly then). > > Or some another glitch, verify installed data carefully. > > If you run new custom 11.0 kernel built without options COMPAT_FREEBSD10 and old binaries, > then use loader to unload new kernel and load kernel.old before booting. > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >