Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Mar 2016 10:58:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-amd64@FreeBSD.org
Subject:   [Bug 206599] Geli restore from backuped geli-metadata is not possible
Message-ID:  <bug-206599-6-OtF35QfHHa@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-206599-6@https.bugs.freebsd.org/bugzilla/>
References:  <bug-206599-6@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206599

Fabian Keil <fk@fabiankeil.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fk@fabiankeil.de

--- Comment #1 from Fabian Keil <fk@fabiankeil.de> ---
Are you trying to restore the meta data while the provider is attached?

By default this is not allowed.

If you absolutely want to do it, you can set the
"allow foot shooting" bit. For details see geom(4).

fk@r500 ~ $sudo geli attach /dev/md0
Enter passphrase:=20
fk@r500 ~ $sudo geli restore /var/backups/md0.eli /dev/md0
geli: Cannot write metadata to /dev/md0: Operation not permitted.
fk@r500 ~ $sudo sysctl kern.geom.debugflags=3D16
kern.geom.debugflags: 0 -> 16
fk@r500 ~ $sudo geli restore /var/backups/md0.eli /dev/md0
fk@r500 ~ $sudo sysctl kern.geom.debugflags=3D0
kern.geom.debugflags: 16 -> 0

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206599-6-OtF35QfHHa>