<div dir="ltr"><div><div><div><div>Hi list,<br><br></div>I'm experimenting with
machinectl/nspawn to deploy multiple webservices on a single host. I
have some trouble to remove unused images. Here is what I'm trying to
do:<br><br><div style="margin-left:40px"># machinectl terminate preprod<br><br># machinectl list<br>MACHINE CLASS SERVICE<br><br>0 machines listed.<br><br># machinectl list-images<br>NAME TYPE RO USAGE CREATED MODIFIED<br>preprod subvolume no 516.9M Sat 2016-04-30 21:30:06 CEST n/a <br>preprod2 subvolume no 470.5M Sat 2016-04-30 22:33:53 CEST n/a <br>preprod3 subvolume no 486.6M Sat 2016-04-30 23:04:22 CEST n/a <br><br>3 images listed.<br><br># machinectl remove preprod<br>Could not remove image: Device or resource busy<br><br># systemctl restart /var/lib/machines<br><br># machinectl remove preprod<br>Could not remove image: Device or resource busy<br></div><br></div><div>I've got this error even after (physically) rebooting the host.<br><br></div>I
tried searching the Web to find some resources, but the only related
result I can find is a bug report about disk quota[1], but I don't have
any issue about disk quota.<br><br></div>Is it a known issue? is there
any tool to help me diagnose this? I tried toying around with lsof and
fuser but without any success, but I am not an expert.<br><br></div>I am using an up to date ArchLinux box with systemd 229, with the default configuration for machinectl and nspawn services. Images are imported via machinectl import-tar.<br><br>[1] <a href="https://github.com/systemd/systemd/issues/1968" target="_blank">https://github.com/systemd/systemd/issues/1968</a><div><div class="gmail_signature">--<br>
Benoît Zugmeyer<br></div></div>
</div>