Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Oct 2016 09:16:40 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Terrence Koeman <terrence@darkness-reigns.com>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: fsck geom geli volume?
Message-ID:  <20161009071639.GA26588@garage.freebsd.pl>
In-Reply-To: <467301d221ea$f3d6f320$db84d960$@darkness-reigns.com>
References:  <467301d221ea$f3d6f320$db84d960$@darkness-reigns.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161009071639.GA26588>