From owner-freebsd-geom@freebsd.org Sun Oct 9 05:07:00 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 81E3CC07CCB for ; Sun, 9 Oct 2016 05:07:00 +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 18576354 for ; Sun, 9 Oct 2016 05:06:58 +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:Subject:Date:Message-ID:MIME-Version:Content-Type: X-Mailer:Thread-Index:Content-Language; b=itweUQC1ktVrqsHWx/KrVZYE10CC3/zX4GwBiN2BhQqXm2jfXC0Z2Pjzdk1JcIXcdX 4v5A+qh12DDt35NvGQbA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkness-reigns.com; s=mail; t=1475989616; x=1476594416; q=dns/txt; h=From:To:Subject:Date:Message-ID:MIME-Version: Content-Type:X-Mailer:Thread-Index:Content-Language; bh=bf0oYjdS jMZM3tFVb62xenNo6XN6hx06fUib0cse3nU=; b=feg8cSdSVWPRixUMC5Q1ZvxP 98WZ/yYI4acpDioP7Y+s2iPuw/ZlqZEfnKCCx1wfGgX3S1Vg4PSYm4je3rikLw== Received: from internal.domain; Sun, 09 Oct 2016 07:06:54 +0200 From: "Terrence Koeman" To: Subject: fsck geom geli volume? Date: Sun, 9 Oct 2016 07:06:54 +0200 Message-ID: <467301d221ea$f3d6f320$db84d960$@darkness-reigns.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdIh6dzR29tKIGMdSZmOUDh9ZEJ0Iw== 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 05:07:00 -0000 I had to reboot a server that hung, and now I can't seem to fsck one of the geli volumes. I've found this thread: https://lists.freebsd.org/pipermail/freebsd-geom/2008-September/003042.html, but this doesn't work for me as given: [root@baphomet /usr]# geli attach -p -k /etc/geli/vtbd1.kf /dev/vtbd1 [root@baphomet /usr]# geli list [snip boot vol] [snip swap vol] Geom name: vtbd1.eli State: ACTIVE EncryptionAlgorithm: AES-CBC KeyLength: 256 Crypto: hardware Version: 7 UsedKey: 0 Flags: NONE KeysAllocated: 512 KeysTotal: 512 Providers: 1. Name: vtbd1.eli Mediasize: 2199023251456 (2.0T) Sectorsize: 4096 Mode: r0w0e0 Consumers: 1. Name: vtbd1 Mediasize: 2199023255552 (2.0T) Sectorsize: 512 Mode: r1w1e1 [root@baphomet /usr]# fsck -t ufs -pf /dev/vtbd1.eli /dev/vtbd1.eli: NO WRITE ACCESS /dev/vtbd1.eli: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. I did not attach with the -r option, but somehow fsck thinks it's read-only anyway. An fsck -y completes without finding errors: [root@baphomet /usr]# fsck -t ufs -y /dev/vtbd1.eli ** /dev/vtbd1.eli (NO WRITE) ** Last Mounted on /mnt/backup ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 10 files, 4255186 used, 515758487 free (23 frags, 64469808 blocks, 0.0% fragmentation) What am I missing? Thanks. -- Regards, Terrence Koeman, PhD/MTh/BPsy Darkness Reigns (Holding) B.V. Please quote relevant replies.