From owner-freebsd-stable@FreeBSD.ORG Sat Feb 26 18:53:44 2011 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 88A02106566C; Sat, 26 Feb 2011 18:53:44 +0000 (UTC) (envelope-from dnaeon@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id EB36C8FC17; Sat, 26 Feb 2011 18:53:43 +0000 (UTC) Received: by wyb32 with SMTP id 32so3075072wyb.13 for ; Sat, 26 Feb 2011 10:53:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=YIMzuwr7+dIvbavjA2e2v/hCK1MR8TwWkYukyNC0TUw=; b=dEcZTRnsgyIkbaXoldxjSrgAJSu0i78pLAosWrYhrb9tP1+EAuRzPRcYW8tNlLadaC XqeEJbPG2nP3uFXzh3sRKeXHC4UvTzzXcnAKbO8eZz6ilY3rUQ9n8TMtNulxxNhEax56 hQuK4rXxyYr4YAQFXwSfbtnylxZqfRFnHCJsQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=bNCMlBbd0N/zHoz/lAnEdHVQp/ijyiwMuHN6j/8Mri5Hd81Al7eudhkL8AGLzqss94 IRPbR0YP0uaWTlJLF2xh1i5gdOPsFknfHeKiOxVPj+xcmr9LNBD+2qGu2cQ51um0ico1 KUff7MxsXVxi8DH/tZ9E4jXhC51YD0hX2UsCU= MIME-Version: 1.0 Received: by 10.227.2.83 with SMTP id 19mr3397767wbi.115.1298746422366; Sat, 26 Feb 2011 10:53:42 -0800 (PST) Received: by 10.227.72.213 with HTTP; Sat, 26 Feb 2011 10:53:42 -0800 (PST) In-Reply-To: <4D694336.3090203@yandex.ru> References: <4D694336.3090203@yandex.ru> Date: Sat, 26 Feb 2011 20:53:42 +0200 Message-ID: From: Marin Atanasov Nikolov To: "Andrey V. Elsukov" Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Subject: Re: 8.2-RELEASE - gmirror and gpart issue. Metadata overlap? 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: Sat, 26 Feb 2011 18:53:44 -0000 2011/2/26 Andrey V. Elsukov : > On 26.02.2011 15:26, Marin Atanasov Nikolov wrote: >> After a reboot I get this right before the FreeBSD bootloader starts: >> >> gptboot: invalid GPT backup header >> >> I suppose this error simply means that gpart can't find it's backup >> header, because gmirror and gpart both are using the last sectors for >> a provider to write it's metadata. > > This message is from gptboot. Loader does not know about your software > mirror and it just checks GPT headers in the second and last LBA. > As i see now, there is inconsistency in the behavior between gptboot and > GEOM_PART_GPT. > > gptboot does reading of GPT backup header from the last LBA, > but GEOM_PART_GPT from the alternate LBA which is not equal to last LBA > in your case. > >> Which would mean that gmirror and gpart metadata overlap, and that's >> why I see this message? > > No. > >> Anyway, I can still boot from the primary GPT header, and here's the >> second message I get during boot: >> >> GEOM: ad0: secondary GPT header is not in the last LBA. >> >> Why does GEOM reports ad0, and not mirror/gm0 as the provider? I've >> used the gmirror'ed device for gpart, not ad0. > > This is how GEOM tasting works. Do you have any problem except for > those messages? What does not work? No, no other issues noticed. > > Also when you are writing problem report about gpart it will be not bad > to add output of `gpart show` or `gpart list` commands. And `gmirror > list` for GEOM_MIRROR. Would do that, but unfortunately as mentioned I was running a Fixit image locally, so the only thing I got was a lit of paper and a pen to write down the messages :) Anyway, I've switched back to partition mirroring, which is good enough for me. Redundancy is still present in case of a disk failure since the second disk also contains bootcode and it boots up normally. Thanks for the feedback. Regards, Marin > > -- > WBR, Andrey V. Elsukov > > -- Marin Atanasov Nikolov dnaeon AT gmail DOT com daemon AT unix-heaven DOT org http://www.unix-heaven.org/