From owner-freebsd-geom@freebsd.org Sun Oct 9 10:59:51 2016 Return-Path: Delivered-To: freebsd-geom@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 27A26C07E9A for ; Sun, 9 Oct 2016 10:59:51 +0000 (UTC) (envelope-from terrence@darkness-reigns.com) Received: from mail.darkness-reigns.net (mail.darkness-reigns.net [149.210.220.190]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.darkness-reigns.net", Issuer "SSL.com DV CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A715A9F; Sun, 9 Oct 2016 10:59:49 +0000 (UTC) (envelope-from terrence@darkness-reigns.com) X-CGPDR-AntiVirus-Kaspersky: Scanned and found clean X-CGPDR-AntiVirus-McAfee: Scanned and found clean X-CGPDR-AntiVirus-Sophos: Scanned and found clean X-Abuse-Info: user was authenticated X-Abuse-Info: send abuse reports about this email to abuse@darkness-reigns.net X-ExtFilter: Niversoft's DomainKeys Helper DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; d=darkness-reigns.com; s=mail; h=From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID: MIME-Version:Content-Type:X-Mailer:Thread-Index:Content-Language; b=jzDKlMhr6mwucBZL3A/gQadOFyOH2xC5r+oBZzp/Od5W4w73kO4Y/baqON9kZ45570 XlVvuJjowKxsxnZITwsQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkness-reigns.com; s=mail; t=1476010786; x=1476615586; q=dns/txt; h=From:To:Cc:References:In-Reply-To:Subject:Date: Message-ID:MIME-Version:Content-Type:X-Mailer:Thread-Index: Content-Language; bh=O9s2aelnUmATVNDGop0cgy3gFeW22QAgYZW6tFJzADo =; b=TUtzSpOa+ocE9iTzgvChWD+o0zsvsrMqShG0erkemQm1MbsrhIhBihIavpp QoKElmVckxfHvF0AZJ27wEhG7bg== Received: from internal.domain; Sun, 09 Oct 2016 12:59:44 +0200 From: "Terrence Koeman" To: Cc: "'Pawel Jakub Dawidek'" References: <467301d221ea$f3d6f320$db84d960$@darkness-reigns.com> <20161009071639.GA26588@garage.freebsd.pl> In-Reply-To: <20161009071639.GA26588@garage.freebsd.pl> Subject: RE: fsck geom geli volume? Date: Sun, 9 Oct 2016 12:59:44 +0200 Message-ID: <46ad01d2221c$3e0aa780$ba1ff680$@darkness-reigns.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQBPvEzvB2aheWofDyAOE9UYSS5gIAIAGFEgo5S8pSA= Content-Language: en X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Oct 2016 10:59:51 -0000 [snip] > > Please start by running: > > # ktrace fsck -t ufs -pf /dev/vtbd1.eli > > and see where exactly it is failing and with what error (run kdump and > look for attempts to open /dev/vtbd1.eli device). Unfortunately, I don't have KTRACE compiled in on this machine. However, I found that fsck would work when I commented the attempt at mounting & rebooted. I investigated and I found that when I only run "geli attach" I can run fsck, but when I attach and then try to mount (which fails due to dirty fs) then fsck thinks the fs is read-only. Whether I then detach and attach again doesn't matter, fsck will think /dev/vtbd1.eli is read-only until reboot. -- Regards, Terrence Koeman, PhD/MTh/BPsy Darkness Reigns (Holding) B.V. Please quote relevant replies.