I migrated from LXD to Incus 6.0.0 on Ubuntu (specifically 6.0.0-1ubuntu0.2). I run occasional storage volume exports from cron like so:
/usr/bin/incus storage volume export pool1 foo_data_1 /data/backup/incus/20241122/foo_data_1-backup-11-22-2024.tar.zst --compression=zstd --optimized-storage --volume-only
Under LXD I set storage.backups_volume
to avoid the export filling up the relatively small /var/lib partition during the backup. I confirmed this config migrated over to Incus:
root@fusion:~# incus config show
config:
backups.compression_algorithm: none
core.metrics_address: :8443
storage.backups_volume: pool1/backupscratch
This worked fine under LXD. Since the migration, my backups have been failing for the larger volumes. The error makes it quite clear that it’s using /var/lib/incus and not the backups_volume:
Error: Create volume backup: Backup create: Failed to copy file content "/var/lib/incus/backups/incus_backup_zfs2760447516": io: read/write on closed pipe
To verify this, I ran an export in real time and watched the incus directory. Sure enough, a file is generated there each time. Nothing about the pool has changed, so I can’t explain why it’s choosing to use /var/lib.
root@fusion:~# incus storage list
+-------+--------+----------------+-------------+---------+---------+
| NAME | DRIVER | SOURCE | DESCRIPTION | USED BY | STATE |
+-------+--------+----------------+-------------+---------+---------+
| pool1 | zfs | rpool/DATA/lxd | | 57 | CREATED |
Any help would be appreciated.