From owner-freebsd-questions@freebsd.org Thu Jun 25 23:08:02 2015 Return-Path: Delivered-To: freebsd-questions@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 5BD5E98CED3 for ; Thu, 25 Jun 2015 23:08:02 +0000 (UTC) (envelope-from wfdudley@gmail.com) Received: from mail-ie0-x22e.google.com (mail-ie0-x22e.google.com [IPv6:2607:f8b0:4001:c03::22e]) (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 1E7A41A55 for ; Thu, 25 Jun 2015 23:08:02 +0000 (UTC) (envelope-from wfdudley@gmail.com) Received: by iebmu5 with SMTP id mu5so64652464ieb.1 for ; Thu, 25 Jun 2015 16:08:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DOTxyP3EyWam3lSbQC2TVKu/yehbZlOV8flQB1cMbeQ=; b=LCshm96ZhgVyF2n8P34j4KcDYUgHJqv+gpkhQL2tKf9YZGhaRuPQK/rXBiMcAzDddP mPk7X9Yp21DDBv2TmkFacdFLBqU8HV4PhJBQKu+E0wrhbGhSlYq0Q77xLpnOTzHwOi8h UD341klzzw04DleZ+mpBuHaNjA7vncThrR6WE/SLDFEn8sVMAGD7n3MYlQ9aTsadXSMY qso/Wfl7HFrQgQOOuv+5vfRsliE3fqw5zvs0WAn8ngRSFIiruYl00wYWQYdkUHM22hYj AkRjYNP5gdIY1LWkkzMob1qi6TJbueDkIKzd7jVsy/03QIEQwBlpTkLsg+HQGtcrxmcH wx9w== MIME-Version: 1.0 X-Received: by 10.50.109.138 with SMTP id hs10mr69814igb.48.1435273681571; Thu, 25 Jun 2015 16:08:01 -0700 (PDT) Received: by 10.50.30.202 with HTTP; Thu, 25 Jun 2015 16:08:01 -0700 (PDT) In-Reply-To: References: <1435255862253-6020737.post@n5.nabble.com> Date: Thu, 25 Jun 2015 19:08:01 -0400 Message-ID: Subject: Re: freebsd-update from 8.4 to 9.3 causes gmirror to disappear -- HELP! From: William Dudley To: Warren Block Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2015 23:08:02 -0000 Warren, Thanks for your reply. I think the problem was that the partition failed the "check the integrity of partition metadata". The symptom was that /dev/mirrors/gm0 existed, but none of the partitions I had defined on there. I reverted to 8.4 RELEASE and for now I have my data back. I will have to back it up to a non-mirrored disk and then go through the freebsd-upgrade process again to get to 9.3. I have temporarily put kern.geom.part.check_integrity="0" in my /boot/loader.conf so that I should have my mirror when i boot into 9.3. Then I need to figure out how to "fix" the partition table (I didn't know there was anything wrong with it) so I can turn the integrity check back on. Man, I hate when my computer scares the crap out of me. Bill Dudley This email is free of malware because I run Linux. On Thu, Jun 25, 2015 at 6:33 PM, Warren Block wrote: > On Thu, 25 Jun 2015, wfdudley wrote: > > I've been running 8.4 STABLE for a while, but decided to try to use >> freebsd-update to move to 9.3 >> I have a pair of 2TB drives in a gmirror. Works fine. >> >> I used svn to pull the 8.4 RELEASE source, and built myself an 8.4 RELEASE >> system. >> >> Then, I followed the instructions here: >> https://www.freebsd.org/releases/9.3R/installation.html >> >> And after the first reboot in to the 9.3 kernel, my gmirror is GONE. >> This is ALL MY DATA, and the freebsd-update database >> (/var/db/freebsd-update). >> >> After discovering that the mirror was GONE, I did this: >> >> sysctl kern.geom.debugflags=17 >> gmirror label -vb round-robin gm0 /dev/ad14 >> > > That turns off the safety and creates (writes) a new mirror on one drive. > Please stop writing to those drives and check your backups. If you are > lucky, the data is still present on the second drive. > > Which is how I configured the mirror initially (from this >> >> http://www.iprobot.net/linux-tutorial/how-to-setup-sofware-raid-in-freebsd/ >> post). >> > > The Handbook has a full section on creating mirrors, but that is not what > is needed. Instead, the existing mirror just needs to be mounted. > > The problem might be this: > https://www.freebsd.org/releases/9.0R/relnotes-detailed.html#AEN1277 > > You do not mention what you mean by the mirror being "gone". Was there an > error message? It might be as simple as editing /etc/fstab. >