<div dir="ltr">Hi Michael,<div><br></div><div>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.</div><div><br></div><div>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:</div><div><br></div>sudo lvcreate -vv -kn -n arbitrary_test_snapshot_name -s /dev/mantest_vg/<span style="font-size:12.8000001907349px">9468e75eb8f27f895a0b06b1a44e06</span><span style="font-size:12.8000001907349px">7e3add82f8631c51aff640be6a4949</span><span style="font-size:12.8000001907349px">d2c6</span><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">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.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Thanks,</span></div><div><span style="font-size:12.8000001907349px">-mike</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 26, 2015 at 8:24 PM, Michael Zamot <span dir="ltr"><<a href="mailto:michael@zamot.me" target="_blank">michael@zamot.me</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div><p>Hello there!</p><p>I am running the last version of LXD in the ppa: 0.14.</p><p>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:</p><p>In the client:<br></p><p>root@sd-82988:/home/michael# lxc launch ubuntu/trusty<br>Creating container...error: Error creating snapshot of source LV 'mantest_vg/9468e75eb8f27f895a0b06b1a44e067e3add82f8631c51aff640be6a4949d2c6': Snapshot LV creation error: 'exit status 3'</p><p>In the server:</p><p>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'} <br>DBUG[07-27|05:12:10] <br> {<br> "type": "sync",<br> "status": "Success",<br> "status_code": 200,<br> "metadata": {<br> "created_at": "2015-07-27T05:12:10.442249772+02:00",<br> "updated_at": "2015-07-27T05:12:10.450798376+02:00",<br> "status": "Failure",<br> "status_code": 400,<br> "resources": {<br> "containers": [<br> "/1.0/containers/spectrohelioscopic-juli"<br> ]<br> },<br> "metadata": "Error creating snapshot of source LV 'mantest_vg/9468e75eb8f27f895a0b06b1a44e067e3add82f8631c51aff640be6a4949d2c6': Snapshot LV creation error: 'exit status 3'",<br> "may_cancel": false<br> }<br> }<br> <br></p><p>Is this feature already working? If so, how did you manage to get it working?</p><p>Is there any other way to set a quota to storage?</p><p><br></p><p>Thanks!</p></div><br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>