From owner-freebsd-geom@freebsd.org Sun Oct 9 07:16:52 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 32B7EC052B2 for ; Sun, 9 Oct 2016 07:16:52 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (garage.dawidek.net [91.121.88.72]) by mx1.freebsd.org (Postfix) with ESMTP id 02D68405 for ; Sun, 9 Oct 2016 07:16:51 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from localhost (unknown [24.6.107.161]) by mail.dawidek.net (Postfix) with ESMTPSA id 58C03D34; Sun, 9 Oct 2016 09:16:43 +0200 (CEST) Date: Sun, 9 Oct 2016 09:16:40 +0200 From: Pawel Jakub Dawidek To: Terrence Koeman Cc: freebsd-geom@freebsd.org Subject: Re: fsck geom geli volume? Message-ID: <20161009071639.GA26588@garage.freebsd.pl> References: <467301d221ea$f3d6f320$db84d960$@darkness-reigns.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline In-Reply-To: <467301d221ea$f3d6f320$db84d960$@darkness-reigns.com> X-OS: FreeBSD 11.0-CURRENT amd64 User-Agent: Mutt/1.5.24 (2015-08-30) 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 07:16:52 -0000 --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 09, 2016 at 07:06:54AM +0200, Terrence Koeman wrote: > I had to reboot a server that hung, and now I can't seem to fsck one of t= he geli volumes. >=20 > 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: >=20 >=20 > [root@baphomet /usr]# geli attach -p -k /etc/geli/vtbd1.kf /dev/vtbd1 > [root@baphomet /usr]# geli list > [snip boot vol] >=20 > [snip swap vol] >=20 > 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 This looks good, ie. it is not open by anything yet. > Consumers: > 1. Name: vtbd1 > Mediasize: 2199023255552 (2.0T) > Sectorsize: 512 > Mode: r1w1e1 > [root@baphomet /usr]# fsck -t ufs -pf /dev/vtbd1.eli = =20 > /dev/vtbd1.eli: NO WRITE ACCESS > /dev/vtbd1.eli: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. 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). --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://mobter.com --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJX+e7XAAoJEJVLhSuxKFt1FUkP/2jJmQa0wyWjP4bNeZzph3WY Cvr4K+dVCqulSZ4uvtobiJvI8zk55wyPgLOfEQmbfW32gE7nmV8idAKVC0yHxKJL GBFJjocoOISa6l2BOsB4Kl4q0ogeU7RY/j5FJKscPehw4FMNf5oqbsaFwjXB59AI bL31nbI3gdrzalkLmhQdAzWcO4fPp9HHn46YTfzcvu+j4hBwvoOgeXiqfNT2AEvX +g9nsMTLXsuWMlXLyj36JrMUvgc8AXcZ9ItyBWAprkBMICq8VWk4Vosoh0oRZTRZ T0ll5DC7NdZpacDQJC/4N1YxCaWkV+5PVVA5r+b8cMPodVNp+ihLaiaqVKwxvq5R AbKdrC7BI1k/sjCb39S6XERWNbCOKkZMkkzY0+pYxiyebLNi9AmDjIYF8A83AQu+ IgLCCulkMzv39EggXXFSIn4MKWBC5z2+AMI9/ctPJxZkC8h2KNWHCBDQVVLeZlo6 aGadswVJeRa3N8h3M/B88A0EhxBpmeom43hAEyK7IYgA7nIC69pZNMhT1m802aHz ClV/yHho0CD++KN9/Gx5mBr2/oVCVtQkfqoMMMfMJsVx0A8+78CgzaxX32XSulGt XEfK/lXhGrlXUYGPs7zfBSDDuGENRL5LLKb5s6MhE6XNHr+jSb0lZiLEpYgU2EoX oj5QGVBrgD3ATYK4BnAA =fY3G -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G--