From owner-freebsd-stable@freebsd.org Mon Nov 13 04:59:59 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 10BBCCFF0BC for ; Mon, 13 Nov 2017 04:59:59 +0000 (UTC) (envelope-from walterp@gmail.com) Received: from mail-qt0-x22a.google.com (mail-qt0-x22a.google.com [IPv6:2607:f8b0:400d:c0d::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B4B091AC6 for ; Mon, 13 Nov 2017 04:59:58 +0000 (UTC) (envelope-from walterp@gmail.com) Received: by mail-qt0-x22a.google.com with SMTP id p44so7701072qtj.6 for ; Sun, 12 Nov 2017 20:59:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=eog5UpIDOiYBpuLdIEsX6I8PAYtSUVIE9IEtsPTc2nE=; b=hoQEYbR4jFFsDJRhs2Xw6/YV1lD6N6MEfJzAYg+CSpnCoNR9R4fCvcNB43NOjZDFqn kMDSPAmGAfveBJExNEDJs4fKe6hlAYUIOHe6AkMPB67GdnNnbUB+QUbFmdMSZPzekALM gdrNoeSqGTwh1eRw05aMnT/1118/dN/Q242UAsupg42+HY64tsoCiAdwW16GxYtvYvAQ UYUVAo2U0o4o1HkbTsf6HKN1BGQJ8qpv6pekt6Ln1fZZ/5VNGJ8NPpFgwC0hVh2RMTEy YCRPohp1H1+8XOKxTpsKVFRe3OdnVEYAvuXHqjlT/IbsESaB52mQjeM4jkPmKKcedr1Y 9fiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=eog5UpIDOiYBpuLdIEsX6I8PAYtSUVIE9IEtsPTc2nE=; b=lqVmXUmgSq6oR7ETb2r9FaY8aa3k8FiP3ugy+NeMV8A7HE4PJnjNGBrN00y5q5DrGJ IUv5Cc9LxzibObrYGtRwMEb1RHq8409LoykdPVeJGNQM7fIgdwypqqM4Jj4HtujX28vy yqCdWDFUREFhkN6j2t5SXcV0Ps1tB8ydLhZgK5SOdRnmQgEQLlkEtisukVTtS6Ldnh2Q JMOWTeG9nDhLfy5bAJWxZjrBXG/CgGgIv3YgwyWDWWjx4sxZqlyDhL8dffnYILXaCztJ GTh5TSg1iwPj3uVqMKiS+Uo835+YrsbcaD4WrAeIXNsfhrgUz+Oa9yxnXn32inLdophH zHEw== X-Gm-Message-State: AJaThX4XY8d4Qd51IpggP9LjCMric3f10BBn2M99gXRLuiUZEvbeccka bHNNKF8LI/XMq7n6RFIgKS0VHC/ZRkjRoNngixA= X-Google-Smtp-Source: AGs4zMaBWzu+MjHlADCpFcEiGGseF2iqt9MAimi7BQ4lwpaM2MZVK4jx4Q8qdH9XtU/cZUMlEGHiKSaszKc31qzqFa8= X-Received: by 10.200.22.209 with SMTP id y17mr7864502qtk.284.1510549197685; Sun, 12 Nov 2017 20:59:57 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.154.68 with HTTP; Sun, 12 Nov 2017 20:59:57 -0800 (PST) From: Walter Parker Date: Sun, 12 Nov 2017 20:59:57 -0800 Message-ID: Subject: GPT partition gets erased on boot To: freebsd-stable@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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 04:59:59 -0000 Hi, 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. 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. 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. On the next boot, aacd0 was missing all of its partitions. What would cause the partitions on a ZFS drive to disappear? Thank you, Walter -- The greatest dangers to liberty lurk in insidious encroachment by men of zeal, well-meaning but without understanding. -- Justice Louis D. Brandeis