From owner-freebsd-stable@FreeBSD.ORG Mon Jun 29 09:48:08 2009 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 CF1F0106566C; Mon, 29 Jun 2009 09:48:08 +0000 (UTC) (envelope-from hlh@restart.be) Received: from tignes.restart.be (tignes.restart.be [IPv6:2001:41d0:2:2d29:0:1::]) by mx1.freebsd.org (Postfix) with ESMTP id 5D8CD8FC0C; Mon, 29 Jun 2009 09:48:08 +0000 (UTC) (envelope-from hlh@restart.be) Received: from restart.be (avoriaz.tunnel.bel [IPv6:2001:41d0:2:2d29:1:ffff::]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "avoriaz.restart.be", Issuer "CA master" (verified OK)) by tignes.restart.be (Postfix) with ESMTPS id 5996A4FD1; Mon, 29 Jun 2009 11:48:07 +0200 (CEST) Received: from morzine.restart.bel (morzine.restart.be [IPv6:2001:41d0:2:2d29:1:2::]) (authenticated bits=0) by restart.be (8.14.3/8.14.3) with ESMTP id n5T9m385080624; Mon, 29 Jun 2009 11:48:03 +0200 (CEST) (envelope-from hlh@restart.be) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=restart.be; s=avoriaz; t=1246268886; bh=bHeeenwgBTpg0WnUbxv/cN8ykYsnYC/jVnKu2o0EY/w=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Q7ikGLx0qIvyOS6n6EqCSGGXsEdD0QcXnzUM4q6ep2orQALBKiPNcvj8WsgPhuTfB lF1UXGSdIwjSaOM1a14+g== DomainKey-Signature: a=rsa-sha1; s=avoriaz; d=restart.be; c=nofws; q=dns; h=message-id:date:from:organization:user-agent:mime-version:to:cc: subject:references:in-reply-to:content-type: content-transfer-encoding:x-scanned-by; b=LrpKPGXrbcjnwxgwYz9w8g/alwL7THySYSTvZGvExJzW/5c8C+RconfTqs2Em54Y4 t6MBBHKAyhMJNqnXgSGhA== Message-ID: <4A488DD3.3030507@restart.be> Date: Mon, 29 Jun 2009 11:48:03 +0200 From: Henri Hennebert Organization: RestartSoft User-Agent: Thunderbird 2.0.0.22 (X11/20090627) MIME-Version: 1.0 To: "Ralf S. Engelschall" References: <20090629085330.GA93108@engelschall.com> In-Reply-To: <20090629085330.GA93108@engelschall.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on IPv6:2001:41d0:2:2d29:1:1:: Cc: freebsd-stable@freebsd.org Subject: Re: FreeBSD 7-STABLE and chflags on ZFS now(?) failing X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 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, 29 Jun 2009 09:48:09 -0000 Ralf S. Engelschall wrote: > One of my FreeBSD boxes is a 7-STABLE/amd64 one on ZFS, now in > production for over a 1.5 years now and which receives regular upgrades. > The last installation of FreeBSD 7-STABLE was just about 2 weeks ago. > Today the upgrade failed the first time: > > ---------------------------------------------------------------------------- > cd /usr/src; /usr/bin/make -f Makefile.inc1 install > ===> share/info (install) > ===> lib (install) > ===> lib/csu/amd64 (install) > install -o root -g wheel -m 444 crt1.o crti.o crtn.o gcrt1.o /usr/lib > ===> lib/libc (install) > install -C -o root -g wheel -m 444 libc.a /usr/lib > install -C -o root -g wheel -m 444 libc_p.a /usr/lib > install -s -o root -g wheel -m 444 -fschg -S libc.so.7 /lib > install: /lib/libc.so.7: chflags: Invalid argument > *** Error code 71 > > Stop in /usr/src/lib/libc. > *** Error code 1 > > Stop in /usr/src/lib. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > 3.30s real 0.35s user 0.75s sys > /libexec/ld-elf.so.1: Shared object "libc.so.7" not found, required by "sh" > *** Error code 1 > > Stop in /usr/adm. > *** Error code 1 (ignored) > /libexec/ld-elf.so.1: Shared object "libc.so.7" not found, required by "sh" > *** Error code 1 (ignored) > /libexec/ld-elf.so.1: Shared object "libc.so.7" not found, required by "sh" > *** Error code 1 (ignored) > /libexec/ld-elf.so.1: Shared object "libc.so.7" not found, required by "sh" > *** Error code 1 (ignored) > /libexec/ld-elf.so.1: Shared object "libc.so.7" not found, required by "sh" > *** Error code 1 > > Stop in /usr/adm. > *** Error code 1 (ignored) > # sh > /libexec/ld-elf.so.1: Shared object "libc.so.7" not found, required by "sh" > # > ---------------------------------------------------------------------------- > > Fortunately, I was able to quickly recover via "/rescue/cp" by copying > a libc.so.7 from a Jail to the host system (where the upgrade was > performed). But why has this problem occurred now. > > Well, /lib is on ZFS and I can remember from the past that ZFS did not > honor chflags. But remains two questions: > > 1. I thought chflags support for ZFS was added already in the past. > Can it be that just a _few_ chflags flags are supported? It looks > like uchg works while the above schg fails. I believe that for schg `zfs get version ` must be 3. To upgrade this: `zfs upgrade ` > > 2. Assuming that schg was never supported on ZFS by us, why did the > upgrades in the past on this FreeBSD 7-STABLE box never failed until > now? Why now the first time? I would have expected that it already > failed from day zero with the above error. Just a try to this strange problem: `man install` say: By default, install preserves all file flags, with the exception of the ``nodump'' flag. With the previous version of zfs there was no flags and so no try to play with flags during update. Henri > > As workaround I've now put a NO_SCHG=yes into /etc/make.conf and > performed the upgrade from scratch. Now it succeeded, of course. But I > still do not know the answer to the above two questions and this makes > me still feel a little bit unsure about the whole situation... > > > PS: At a mergemaster run I now got a problems which looks related: > mv: /var/db/mergemaster.mtree: set flags (was: 00000000): Invalid argument > Yes, /var is also on ZFS here. Same problem as it looks. But I'm > sure also this error did not occur in the past... > > -- > rse@FreeBSD.org Ralf S. Engelschall > FreeBSD.org/~rse rse@engelschall.com > FreeBSD committer www.engelschall.com > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"