[lxc-users] LXD and LVM?

Mike McCracken mike.mccracken at canonical.com
Mon Jul 27 22:03:21 UTC 2015


Hi Michael,

The call to 'lvcreate' to create a thin snapshot of the image has failed,
but unfortunately the return code '3' isn't one I've seen (ie, I don't
think it means your pool is full) and LVM's man pages don't explain the
error codes.

However, you ought to be able to reproduce the error by calling lvcreate
manually with some extra verbosity and get more info. Pulling from your
error message, this is the equivalent of the command it ran:

sudo lvcreate -vv -kn -n arbitrary_test_snapshot_name -s /dev/mantest_vg/
9468e75eb8f27f895a0b06b1a44e067e3add82f8631c51aff640be6a4949d2c6

also, the output of 'sudo vgs -a' and 'sudo lvs -a' would be useful to see
how you've configured your LVM volumegroups and the thin pool.

Thanks,
-mike

On Sun, Jul 26, 2015 at 8:24 PM, Michael Zamot <michael at zamot.me> wrote:

>  Hello there!
>
> I am running the last version of LXD in the ppa: 0.14.
>
> I am wondering what is the proper way to use LVM with LXD. I was able to
> import an image using a pool called LXDPool, but can't create a "machine".
> The error I am getting is this:
>
> In the client:
>
> root at sd-82988:/home/michael# lxc launch ubuntu/trusty
> Creating container...error: Error creating snapshot of source LV
> 'mantest_vg/9468e75eb8f27f895a0b06b1a44e067e3add82f8631c51aff640be6a4949d2c6':
> Snapshot LV creation error: 'exit status 3'
>
> In the server:
>
> DBUG[07-27|05:12:10] operation %!s(func() shared.OperationResult=0x5b6550)
> finished: { Error creating snapshot of source LV
> 'mantest_vg/9468e75eb8f27f895a0b06b1a44e067e3add82f8631c51aff640be6a4949d2c6':
> Snapshot LV creation error: 'exit status 3'}
> DBUG[07-27|05:12:10]
> {
> "type": "sync",
> "status": "Success",
> "status_code": 200,
> "metadata": {
> "created_at": "2015-07-27T05:12:10.442249772+02:00",
> "updated_at": "2015-07-27T05:12:10.450798376+02:00",
> "status": "Failure",
> "status_code": 400,
> "resources": {
> "containers": [
> "/1.0/containers/spectrohelioscopic-juli"
> ]
> },
> "metadata": "Error creating snapshot of source LV
> 'mantest_vg/9468e75eb8f27f895a0b06b1a44e067e3add82f8631c51aff640be6a4949d2c6':
> Snapshot LV creation error: 'exit status 3'",
> "may_cancel": false
> }
> }
>
> Is this feature already working? If so, how did you manage to get it
> working?
>
> Is there any other way to set a quota to storage?
>
>
> Thanks!
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150727/8acd6fbd/attachment.html>


More information about the lxc-users mailing list