[Bug 206599] Geli restore from backuped geli-metadata is not possible

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Mar 23 10:58:47 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206599

Fabian Keil <fk at fabiankeil.de> changed:

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

--- Comment #1 from Fabian Keil <fk at 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 at r500 ~ $sudo geli attach /dev/md0
Enter passphrase: 
fk at r500 ~ $sudo geli restore /var/backups/md0.eli /dev/md0
geli: Cannot write metadata to /dev/md0: Operation not permitted.
fk at r500 ~ $sudo sysctl kern.geom.debugflags=16
kern.geom.debugflags: 0 -> 16
fk at r500 ~ $sudo geli restore /var/backups/md0.eli /dev/md0
fk at r500 ~ $sudo sysctl kern.geom.debugflags=0
kern.geom.debugflags: 16 -> 0

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


More information about the freebsd-amd64 mailing list