I've created a bhyve virtualized system ontop of a zfs zvol device. Which uses a ufs filesystem on top of that.
So on that system I have a storage device which needs to be able to expand and is completely encrypted.
As you can see the resizing the disk is something which apparently isn't possible, how can I resize the ufs disk which is encrypted. Without loosing the data on the disk.
So on that system I have a storage device which needs to be able to expand and is completely encrypted.
As you can see the resizing the disk is something which apparently isn't possible, how can I resize the ufs disk which is encrypted. Without loosing the data on the disk.
Code:
root@brain:~ # gpart show vtbd1
=> 40 32212254640 vtbd1 GPT (15T)
40 2008 - free - (1.0M)
2048 209715200 1 freebsd-ufs (100G)
209717248 32002537432 - free - (15T)
root@brain:~ # geli init -e AES-XTS -l 256 -b -s 4096 vtbd1p1
Enter new passphrase:
Reenter new passphrase:
Metadata backup can be found in /var/backups/vtbd1p1.eli and
can be restored with the following command:
# geli restore /var/backups/vtbd1p1.eli vtbd1p1
root@brain:~ # gpart resize -s 450g -i 1 vtbd1
g_access(918): provider gptid/169fe4f9-8f4a-11e7-9d0e-00a0984b9d1e has error
g_access(918): provider gptid/169fe4f9-8f4a-11e7-9d0e-00a0984b9d1e has error
g_access(918): provider gptid/169fe4f9-8f4a-11e7-9d0e-00a0984b9d1e has error
g_access(918): provider gpt/depot0 has error
g_access(918): provider gpt/depot0 has error
g_access(918): provider gpt/depot0 has error
g_dev_taste: make_dev_p() failed (gp->name=gpt/depot0, error=17)
g_dev_taste: make_dev_p() failed (gp->name=gptid/169fe4f9-8f4a-11e7-9d0e-00a0984b9d1e, error=17)
vtbd1p1 resized
root@brain:~ # gpart show vtbd1
=> 40 32212254640 vtbd1 GPT (15T)
40 2008 - free - (1.0M)
2048 943718400 1 freebsd-ufs (450G)
943720448 31268534232 - free - (15T)
root@brain:~ # geli resize -s 450g vtbd1p1
g_dev_taste: make_dev_p() failed (gp->name=gpt/depot0, error=17)
g_dev_taste: make_dev_p() failed (gp->name=gptid/169fe4f9-8f4a-11e7-9d0e-00a0984b9d1e, error=17)
geli: Size hasn't changed.
root@brain:~ #