Hi. My server had a semi-catastrophic failure yesterday (power outage). But I was able to salvage the data from the hard drive using the full backup instructions on this page incus/doc/backup.md at main · lxc/incus · GitHub
The basic steps were:
- made a tarball of
/var/lib/incus - backed up
/etc/subuidand/etc/subgid - rebuilt the incus server on the same hardware
- installed debian 13
- installed incus from apt
- stopped the incus services and deleted
/var/lib/incus - restored
/var/lib/incusfrom the tarball - restored
/etc/subuidand/etc/subgid - restarted incus services
To my amazement, all my instances came back up! Yay!
But not all is well. I figured it was time for a backup strategy, so I tried incus export and I get this error:
depingus@server:~$ sudo incus export subversion subversion.tar.gz
Error: Create backup: Backup create: Failed to run: btrfs subvolume snapshot /var/lib/incus/storage-pools/default/containers/subversion /var/lib/incus/storage-pools/default/backup.2046340658/subversion: exit status 1 (ERROR: Not a Btrfs subvolume: Invalid argument)
After some useless flopping about, I tried to create a new instance with incus launch and got basically the same error:
depingus@server:~$ sudo incus launch images:debian/13 test --profile default
Launching test
Error: Failed instance creation: Failed creating instance from image: Failed to run: btrfs subvolume snapshot /var/lib/incus/storage-pools/default/images/5d2252f068069ee81cc0ece671f3a2cac09d9ba04d09b6b393c6641a3005f2e8 /var/lib/incus/storage-pools/default/containers/test: exit status 1 (ERROR: Not a Btrfs subvolume: Invalid argument)
I think the key error is ERROR: Not a Btrfs subvolume: Invalid argument. I feel like there’s a permissions issue with the storage pool on the new server, but I don’t know what to change.
I’ve got a very default install of Incus 6.0.4 running on Debian 13.2. My / directory is a btrfs filesystem. If anyone has any ideas, I would much appreciate the help.