From owner-freebsd-stable@FreeBSD.ORG  Mon Apr 30 19:19:40 2012
Return-Path: <owner-freebsd-stable@FreeBSD.ORG>
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 A7D9E106566B
	for <freebsd-stable@freebsd.org>; Mon, 30 Apr 2012 19:19:40 +0000 (UTC)
	(envelope-from adams-freebsd@ateamsystems.com)
Received: from fss.sandiego.ateamservers.com (fss.sandiego.ateamservers.com
	[69.55.229.149])
	by mx1.freebsd.org (Postfix) with ESMTP id 804258FC0C
	for <freebsd-stable@freebsd.org>; Mon, 30 Apr 2012 19:19:40 +0000 (UTC)
Received: from [192.168.15.220] (unknown [118.175.84.92])
	(using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits))
	(No client certificate requested)
	by fss.sandiego.ateamservers.com (Postfix) with ESMTPSA id 2B630B906C
	for <freebsd-stable@freebsd.org>; Mon, 30 Apr 2012 15:14:16 -0400 (EDT)
Message-ID: <4F9EE487.6020609@ateamsystems.com>
Date: Tue, 01 May 2012 02:14:15 +0700
From: Adam Strohl <adams-freebsd@ateamsystems.com>
Organization: A-Team Systems
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64;
	rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: FreeBSD-Stable ML <freebsd-stable@freebsd.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: FreeBSD 9 "gptboot: invalid backup GPT header" error (boots fine
 though)
X-BeenThere: freebsd-stable@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Production branch of FreeBSD source code <freebsd-stable.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-stable>, 
	<mailto:freebsd-stable-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-stable>
List-Post: <mailto:freebsd-stable@freebsd.org>
List-Help: <mailto:freebsd-stable-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-stable>,
	<mailto:freebsd-stable-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Apr 2012 19:19:40 -0000

I've been deploying FreeBSD 9 without issue on a number of 
near-identical servers for a client, but have run into an interesting 
annoyance when I hit the two DB servers.

These DB servers have an LSI 3ware 9750-8i (running a 6 disk RAID 10 in 
a single 3TB virtual volume) which puts them apart from the other two 
servers in this cluster (which don't show either issue I am about to 
discuss).  Otherwise the hardware is identical (Dual Xeon E5620s, 16GB 
RAM).  I've also never seen this before on other physical (or VM) 
FreeBSD 9 instances and I've probably done 50+ FreeBSD 9 VM and physical 
installs at this point (and run through the installer process probably 
over 150 times :P).

Before I get into the GPT error, I want to mention this in case its 
relevant:

I found I had to partition via the shell (gpart create/gpart add/etc 
etc) the disks during install or the kernel would fail to re-mount the 
root disk after booting into the new OS.   If I used the default layout, 
or the partition GUI at all (ie; 'manual mode') the new OS wouldn't 
remount root on boot.

I could manually specify the proper root device ie; ufs:/dev/da0p3 and 
continue booting without issue, so this is an installer thing.   I'm 
sure I could have fixed this in /boot/loader.conf or similar but wanted 
to try to figure out what was breaking (now I know its something the 
installer is doing since it doesn't happen when I do it manually).  So I 
kept reOSing it doing different things and ultimately found shell-based 
manual partitioning worked fine.

However, I see the following error right before BTX comes up (and did 
previously when using the installer's partition GUI):

gptboot: invalid backup GPT header

The machine boots fine, so I'm not stuck .... but it is an annoyance for 
an A-type sysadmin like myself.  Even if its superficial I dislike 
setting up a client's machine to generate "errors" on boot, especially 
without an explanation or understanding behind it.   I also obviously 
wanted to raise the issue here in case there is actually a rare problem 
or this is a symptom of one.

I could find nothing that related specifically to this issue, so I was 
wondering if anyone else had seen this or had thoughts.

My suspicion is that maybe the large size of the volume (3TB or 2.7TB 
formatted) makes it too large for the boot loader to "address all of" 
and thus can't get to the end of the disk where the backup GPT header is 
to validate it......

Or maybe the RAID adapter is doing something weird at the end of the 
disk.  This seems unlikely since it presents the RAID as a single volume 
so I'd assume it would hide any tagging or RAID meta data from the OS' 
virtual volume though.

That's about all I can think of.

Selected dmesg output:
LSI 3ware device driver for SAS/SATA storage controllers, version: 
10.80.00.003
tws0: <LSI 3ware SAS/SATA Storage Controller> port 0x1000-0x10ff mem 
0xb1940000-0xb1943fff,0xb1900000-0xb193ffff irq 32 at device 0.0 on pci4
tws0: Using legacy INTx
tws0: Controller details: Model 9750-8i, 8 Phys, Firmware FH9X 
5.12.00.007, BIOS BE9X 5.11.00.006

da0 at tws0 bus 0 scbus0 target 0 lun 0
da0: <LSI 9750-8i    DISK 5.12> Fixed Direct Access SCSI-5 device
da0: 6000.000MB/s transfers
da0: 2860992MB (5859311616 512 byte sectors: 255H 63S/T 364725C)


Let me know anyone wants to see anything else/has seen this/has any 
theories!

-- 

Adam Strohl
A-Team Systems
http://ateamsystems.com/