Moving images to another location failed when root ran out of disk space


I submitted the config storage.images_volume to a ZFS backed storage volume with plenty of space because the root ext4 volume was getting low.

However during the move operation, the host decided to run out of space on the root volume even though there were a few GiBs free, and it looks like the process of moving the images has failed. This process worked fine on another server cluster member the same issue, so this is definitely just caused by out of disk space.

Regarding the information below, would it be that simple to move them back into the images location or are there other things that need doing to rectify this situation?

Looking at the /var/snap/lxd/common/lxd directory we can see that images now is a soft-link to the new location (EDIT: which is empty):

images -> /var/snap/lxd/common/lxd/storage-pools/sp01/custom/default_lxd_images_lxdservername

However there is a now an images.tmp directory there with what is most likely the images:

ls -lh /var/snap/lxd/common/lxd/images.temp/
	total 24G
	-rw------- 1 root root  10K Aug 17  2022 36f26ad680f8213c86446cb2a3fb8d0093bdcb7bcaa8da37b0928add0204e7a4
	-rw------- 1 root root 1.8G Aug 17  2022 36f26ad680f8213c86446cb2a3fb8d0093bdcb7bcaa8da37b0928add0204e7a4.rootfs
	-rw------- 1 root root 7.8G Mar  2  2023 a53e84cf4858950944c05a45a41909f70be12350ad60fa9b1fd17ed456e07672
	-rw------- 1 root root  412 Sep 19 16:57 be57f822968b4f2831627e74590f887d5945cc7426361780fb3958327a6706be
	-rw------- 1 root root 435M Sep 19 16:57 be57f822968b4f2831627e74590f887d5945cc7426361780fb3958327a6706be.rootfs
	-rw------- 1 root root  10K Aug 31  2022 eeff595e21b691508a53298100cf8e6d8ccbddb0faf2e6b67beb74c281dfb473
	-rw------- 1 root root 3.2G Aug 31  2022 eeff595e21b691508a53298100cf8e6d8ccbddb0faf2e6b67beb74c281dfb473.rootfs
	-rw------- 1 root root  11G Sep 12 17:44 ef2849f74f73b0b923a55d30e453495189f8b711d5342a8b717c9a977c8e68d6
	drwx------ 2 root root 4.0K Sep 25 06:57 lxd_build_2276667121
	drwx------ 2 root root 4.0K Sep 25 06:57 lxd_build_3173833538


Good morning … would it be fine to issue the following commands? :

cd /var/snap/lxd/common/lxd
mv images.temp/* images/
rm -fR images.temp

Yes that should be fine.

Good morning and hope you had a great weekend.

Thank you for the advice, and hope you have a great day.