[lxc-users] snapshot listing

Tamas Papp tompos at martos.bme.hu
Thu Mar 17 09:58:02 UTC 2016



On 03/17/2016 04:02 AM, Serge Hallyn wrote:
> Quoting Tamas Papp (tompos at martos.bme.hu):
>>
>> On 03/17/2016 12:09 AM, Serge Hallyn wrote:
>>> Quoting Tamas Papp (tompos at martos.bme.hu):
>>>> hi,
>>>>
>>>> I remember, that not very long time ago the 'lxc list' command also
>>>> listed snapshots too.
>>>> But now it doesn't. How can I do that now?
>>>>
>>> You can see the number of snapshots with
>>>
>>> lxc list -c nS
>>> +------+-----------+
>>> | NAME | SNAPSHOTS |
>>> +------+-----------+
>>> | x1   | 1         |
>>> +------+-----------+
>>>
>>> then see the actual snapshots with
>>>
>>> lxc info x1
>>> Name: x1
>>> Architecture: x86_64
>>> Created: 2016/03/14 22:16 UTC
>>> Status: Stopped
>>> Type: persistent
>>> Profiles: default
>>> Snapshots:
>>>    x1/snap0 (taken at 2016/03/16 23:07 UTC) (stateless)
>>>
>> Shh....I should have though on that:)
>>
>>
>> But:
>>
>> Snapshots:
>>    zas_2016-03-08 (taken at 2016/03/08 09:22 UTC) (stateless)
>>    zas_2016-03-09 (taken at 2016/03/09 03:32 UTC) (stateless)
>>    zas_2016-03-10 (taken at 2016/03/10 03:30 UTC) (stateless)
>>    zas_2016-03-11 (taken at 2016/03/11 03:32 UTC) (stateless)
>>    zas_2016-03-12 (taken at 2016/03/12 03:32 UTC) (stateless)
>>    zas_2016-03-13 (taken at 2016/03/13 03:32 UTC) (stateless)
>>    zas_2016-03-14 (taken at 2016/03/14 03:32 UTC) (stateless)
>>    zas_2016-03-15 (taken at 2016/03/15 03:32 UTC) (stateless)
>>    zas_2016-03-16 (taken at 2016/03/16 03:32 UTC) (stateless)
>>    zas_2016-03-17 (taken at 2016/03/17 00:55 UTC) (stateful)
>>    zas_2016-03-17a (taken at 2016/03/17 00:56 UTC) (stateful)
>>    zas_2016-03-17b (taken at 2016/03/17 00:56 UTC) (stateful)
>>    zas_2016-03-17c (taken at 2016/03/17 01:03 UTC) (stateful)
>>    zas_2016-03-17d (taken at 2016/03/17 01:05 UTC) (stateful)
>>
>>
>>
>> It's marked as stateful, but checkpoint was failing due to old criu version:
>>
>>
>> $ lxc snapshot --stateful connect
>> error: checkpoint failed
>>
>>
>> It's a bug, right?
> Sounds like a bug.
>

https://github.com/lxc/lxd/issues/1768


I have a slightly related question.
Do you plan to have a more computer friendly list of snapshots?
It would be great to see them listed as containers, like defining, what 
detail(s) I want to see and list only snapshots, greppable etc.


10x
tamas




More information about the lxc-users mailing list