No. I'm the sysadmin who put LXD in place. I'm asking: 

    1. why is this snapshot left behind when I deleted the container? 
    2. how should I properly remove this snapshot? 
    3. why are there what appear to be snapshots that I did not create? 

Thanks! 
Lai 


From: "Fajar A. Nugraha" <l...@fajar.net> 
To: "lxc-users" <lxc-users@lists.linuxcontainers.org> 
Sent: Thursday, September 19, 2019 2:31:37 AM 
Subject: Re: [lxc-users] Snashot left behind after deleting container? 

On Wed, Sep 18, 2019 at 10:15 PM Lai Wei-Hwa < [ mailto:wh...@robco.com | 
wh...@robco.com ] > wrote: 



I don't see it listed when using: lxc storage volume list 

But it does appear to be a snapshot. How was this generated? Why is it there? I 
see others that have similar naming conventions (ending in a number string that 
I didn't create). 




So you're asking "what is on my system" to strangers on the internet, rather 
than asking your (previous) sysadmin? Right ... 


BQ_BEGIN

How do I properly remove this without causing any unintended consequences? 


BQ_END

Quick google search points to 
[ https://ubuntu.com/blog/lxd-2-0-your-first-lxd-container | 
https://ubuntu.com/blog/lxd-2-0-your-first-lxd-container ] (look for "Snapshot 
management") 
[ https://discuss.linuxcontainers.org/t/lxd-3-8-has-been-released/3450 | 
https://discuss.linuxcontainers.org/t/lxd-3-8-has-been-released/3450 ] 
[ https://discuss.linuxcontainers.org/t/lxd-3-11-has-been-released/4245 | 
https://discuss.linuxcontainers.org/t/lxd-3-11-has-been-released/4245 ] 

Newer lxd versions put snapshots under a diffierent directory (e.g. 
/var/snap/lxd/common/lxd/storage-pools/default/containers-snapshots/), so my 
guess is you're probably running an old version (2.x?). 

Also, deleting containers should also delete its snapshot (tested on lxd 3.17). 
There is "snapshots.pattern" container configuration, but it won't help much 
since in your case you already deleted the container. So (again) my guess is 
the snapshot is something created by an additional tool (external to lxd. A 
manual or scheduled btrfs snapshot, perhaps?). In which case your (former) 
sysadmin should know more. 

-- 
Fajar 

_______________________________________________ 
lxc-users mailing list 
lxc-users@lists.linuxcontainers.org 
http://lists.linuxcontainers.org/listinfo/lxc-users 
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to