From owner-freebsd-fs@FreeBSD.ORG Fri Oct 10 04:44:09 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3CF55CB4 for ; Fri, 10 Oct 2014 04:44:09 +0000 (UTC) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1AC66E4E for ; Fri, 10 Oct 2014 04:44:08 +0000 (UTC) Received: from Julian-MBP3.local (50-196-156-133-static.hfc.comcastbusiness.net [50.196.156.133]) (authenticated bits=0) by vps1.elischer.org (8.14.9/8.14.9) with ESMTP id s9A4i0jE011963 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 9 Oct 2014 21:44:05 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <5437640A.6020000@freebsd.org> Date: Fri, 10 Oct 2014 12:43:54 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Stephan Wehner , freebsd-fs@freebsd.org Subject: Re: fsck / GEOM / Editing files in mirror partitions separately References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2014 04:44:09 -0000 On 10/10/14, 10:03 AM, Stephan Wehner wrote: > Hello there, > > I have a FreeBSD 10.0-RELEASE-p7 system with system specifics: > > $ mount > /dev/mirror/gm0s1a on / (ufs, local, journaled soft-updates) > devfs on /dev (devfs, local, multilabel) > /dev/mirror/gm0s1b on /home (ufs, local, journaled soft-updates) > procfs on /proc (procfs, local) > > $ gmirror status > Name Status Components > mirror/gm0 COMPLETE ada0 (ACTIVE) > ada1 (ACTIVE) > > $ gpart show > => 63 3907029104 mirror/gm0 MBR (1.8T) > 63 3907029042 1 freebsd [active] (1.8T) > 3907029105 62 - free - (31K) > > => 0 3907029042 mirror/gm0s1 BSD (1.8T) > 0 2456848384 1 freebsd-ufs (1.1T) > 2456848384 1433600000 2 freebsd-ufs (684G) > 3890448384 16580658 4 freebsd-swap (7.9G) > > Computer was rebooted by simply turning it off. On reboot, I got > message "error aborting boot enter full pathname or shell or return > for /bin/sh" > > First question: Is it normal that the filesystem will not survive a > power loss, so that manual intervention is needed? > I thought UFS would be more robust. > > Now I did something that may have been a bad idea. > > I ran fsck on both partitions of the mirror separately, I think they > were called ad4s1 and ad6s1. For both it reported some problems to > fix, and I did Y until they were declared "CLEAN." > > Then I mounted each partition separately, and made the same changes to > a single text file (the file was identical in each partition). but you PROBABLY have different metadata blocks i.e. the timestamps will be different, and inodes may have been allocated in different places etc. > Then rebooted, and now the system is running fine. > > Second question. Is that mirror in good shape? Is there a way to test? I doubt it is in good shape though it may THINK it's in good shape. to test.. boot of a third device (USB?) and compare the drives. you will probably find differences.. (your choice of how to compare the physical devices..) > > Third question. Does one even run fsck on partitions that are then > controlled by geom? > > This shows in dmesg: > > GEOM_MIRROR: Device mirror/gm0 launched (1/2). > GEOM_MIRROR: Device gm0: rebuilding provider ada0. > GEOM_MIRROR: Device gm0: rebuilding provider ada0 finished. > GEOM_MIRROR: Device mirror/gm0 launched (2/2). how long did it take the do the above? might it have copied one drive to another? if so then you are ok.. (I do not use gmirror myself) > > Thanks, > > Stephan > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > >