From owner-freebsd-stable@freebsd.org Mon Nov 13 10:31:43 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 28157D7F77A for ; Mon, 13 Nov 2017 10:31:43 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from mx0.gid.co.uk (mx0.gid.co.uk [194.32.164.250]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C692D68CC4 for ; Mon, 13 Nov 2017 10:31:41 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from [194.32.164.27] ([194.32.164.27]) by mx0.gid.co.uk (8.14.2/8.14.2) with ESMTP id vADAVYj2085940; Mon, 13 Nov 2017 10:31:34 GMT (envelope-from rb@gid.co.uk) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: GPT partition gets erased on boot From: Bob Bishop In-Reply-To: Date: Mon, 13 Nov 2017 10:31:32 +0000 Cc: freebsd-stable@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <4DBDE77E-3847-4966-BDBD-53CD8C6A7754@gid.co.uk> References: To: Walter Parker X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.25 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, 13 Nov 2017 10:31:43 -0000 Hi, > On 13 Nov 2017, at 04:59, Walter Parker wrote: >=20 > Hi, >=20 > I'm setting up an old Sunfire X4140 system with 4 SAS drives plugged = into > the SUN STK controller. Each drive is configured as a separate device. >=20 > I ran the FreeBSD 11.1 installer and picked guided ZFS install where I > selected RAID10 (2 2way mirrors) using aacd0, aacd1, aacd2, and aacd3. = It > installed the system and rebooted. >=20 > When the new system came up, zpool status complained that aacd0p3 was > unavailable. Looking at /dev, I noticed that the only dev file was = aacd0 > (aacd0p* were all missing). Using gpart on aacd0 it said there was no = geom. > I was able to run gpart create to recreate the drive geom and then = gpart > add to readd all of the partitions. After recreating aacd0p3, I was = even > able to run zpool replace -f zroot /dev/aacd0p3 and the pool = resilvered and > stopped complaining. >=20 > On the next boot, aacd0 was missing all of its partitions. >=20 > What would cause the partitions on a ZFS drive to disappear? At a guess, the controller is writing its metadata to the disk and = trampling on the gpart data. > Thank you, >=20 >=20 > Walter >=20 > --=20 > The greatest dangers to liberty lurk in insidious encroachment by men = of > zeal, well-meaning but without understanding. -- Justice Louis D. = Brandeis > _______________________________________________ > 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" >=20 -- Bob Bishop rb@gid.co.uk