Command: lxc snapshot dse-t76548-dc1-1s test
Error: Create instance snapshot: Failed to run: rsync -a -HA --sparse --devices --delete --checksum --numeric-ids --xattrs --filter=-x security.selinux -q /var/snap/lxd/common/lxd/storage-pools/3tb/containers/dse-t76548-dc1-1s/ /var/snap/lxd/common/lxd/storage-pools/3tb/containers-snapshots/dse-t76548-dc1-1s/test: rsync: rsync_xal_set: lremovexattr("/var/snap/lxd/common/lxd/storage-pools/3tb/containers-snapshots/dse-t76548-dc1-1s/test/rootfs/var/log/journal/.system.journal.hcz3P1",“trusted.SGI_ACL_FILE”) failed: No data available (61) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1207) [sender=3.1.3]
Observation: The rsync command is using the source path of /var/snap/lxd/common/lxd/storage-pools/3tb which does not exist. The 3tb storage pool directory is: /data/lxd-storage. If I run the rsync command using the correct source path, the command works as expected. My hypothesis is that snapshots is incorrectly assembling the source path and the rsync command fails.
root@big-lab]# lxc storage list
+---------+--------+------------------------------------------------+-------------+---------+---------+
| NAME | DRIVER | SOURCE | DESCRIPTION | USED BY | STATE |
+---------+--------+------------------------------------------------+-------------+---------+---------+
| 3tb | dir | /data/lxd-storage | | 11 | CREATED |
+---------+--------+------------------------------------------------+-------------+---------+---------+
| default | dir | /var/snap/lxd/common/lxd/storage-pools/default | | 0 | CREATED |
+---------+--------+------------------------------------------------+-------------+---------+---------+
When I run: lxd sql global .dump | egrep storage_pools | egrep "3tb|default"
It looks like the path from above the storage list did not make it to the storage_pools_config table (but default did).
INSERT INTO storage_pools VALUES(2,'default','dir','',1);
INSERT INTO storage_pools VALUES(4,'3tb','dir','3TB Drive',1);
INSERT INTO storage_pools_config VALUES(2,2,1,'source','/var/snap/lxd/common/lxd/storage-pools/default');
LXC/LXD versions (error in both versions: 5.2 & 5.3)
[root@big-lab]# cat /etc/redhat-release
Rocky Linux release 8.6 (Green Obsidian)
[root@big-lab]# rsync --version
rsync version 3.1.3 protocol version 31
/data is an xfs file system