Closed diabolusss closed 1 year ago
I just gave it a try, and it worked as expected.
@diabolusss what's the output of lxc version
?
I just gave it a try, and it worked as expected.
@diabolusss what's the output of
lxc version
?
@monstermunchkin i suppose there was a client side cache issue. After client restart, the command worked without problems.
(server)$ ssh remotevm snap info lxd
installed: git-9a64f64 (25118) 181MB -
$ lxc version remotevm:
Client version: 5.15
Server version: 5.15
(client) $ snap info lxd
installed: git-0f3b413 (25269) 183MB -
$ lxc version
Client version: 5.15
Server version: 5.15
Could you, please, clarify about "Backups" listing in lxc storage volume info pool_name volume_name
?
I can't find any commands to get information about them or manually remove obsolete ones.
I see that they have an expiration time, but expired ones are not removed.
Backups:
+---------+-----------------------+-----------------------+-------------+-------------------+
| NAME | TAKEN AT | EXPIRES AT | VOLUME ONLY | OPTIMIZED STORAGE |
+---------+-----------------------+-----------------------+-------------+-------------------+
| backup0 | 2023/07/14 09:44 EEST | 2023/07/15 09:44 EEST | NO | YES |
+---------+-----------------------+-----------------------+-------------+-------------------+
| backup1 | 2023/07/14 17:44 EEST | 2023/07/15 17:44 EEST | NO | YES |
+---------+-----------------------+-----------------------+-------------+-------------------+
| backup2 | 2023/07/14 20:11 EEST | 2023/07/15 20:11 EEST | YES | NO |
+---------+-----------------------+-----------------------+-------------+-------------------+
| backup3 | 2023/07/14 23:02 EEST | 2023/07/15 23:02 EEST | YES | NO |
+---------+-----------------------+-----------------------+-------------+-------------------+
| backup4 | 2023/07/14 23:21 EEST | 2023/07/15 23:21 EEST | YES | YES |
+---------+-----------------------+-----------------------+-------------+-------------------+
| backup5 | 2023/07/17 14:03 EEST | 2023/07/18 14:03 EEST | YES | YES |
+---------+-----------------------+-----------------------+-------------+-------------------+
Could you, please, clarify about "Backups" listing in lxc storage volume info pool_name volume_name?
Backups aren't listed.
I see that they have an expiration time, but expired ones are not removed.
You're right. LXD is missing a task which removes expired storage volume backups. It only removes expired instance backups. So, that's a bug.
@monstermunchkin good spot, can you open a separate issue for that please?
Can this be closed now?
I'm closing this as the export works as expected. Howver, I've created https://github.com/canonical/lxd/issues/12028 to track the removal of expired storage volume backups.
@diabolusss thanks for pointing out that bug :+1:
Backups aren't listed.
@monstermunchkin You are welcome, however, what do you mean by that? I clearly see a list of them or it's just a log?
$ lxc storage volume info btrfs_pool01 sm
Name: sm
Type: custom
Content type: filesystem
Usage: 292.00KiB
Created: 2023/07/08 20:43 EEST
Snapshots:
+-------------------+-------------+-----------------------+
| NAME | DESCRIPTION | EXPIRES AT |
+-------------------+-------------+-----------------------+
| auto--20230715-14 | | 2023/07/17 15:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230715-15 | | 2023/07/17 16:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230715-16 | | 2023/07/17 17:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230715-17 | | 2023/07/17 18:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230715-18 | | 2023/07/17 19:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230715-19 | | 2023/07/17 20:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230715-20 | | 2023/07/17 21:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230715-21 | | 2023/07/17 22:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230715-22 | | 2023/07/17 23:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230715-23 | | 2023/07/18 00:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-0 | | 2023/07/18 01:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-1 | | 2023/07/18 02:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-2 | | 2023/07/18 03:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-3 | | 2023/07/18 04:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-4 | | 2023/07/18 05:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-5 | | 2023/07/18 06:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-6 | | 2023/07/18 07:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-7 | | 2023/07/18 08:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-8 | | 2023/07/18 09:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-9 | | 2023/07/18 10:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-10 | | 2023/07/18 11:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-11 | | 2023/07/18 12:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-12 | | 2023/07/18 13:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-13 | | 2023/07/18 14:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-14 | | 2023/07/18 15:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-15 | | 2023/07/18 16:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-16 | | 2023/07/18 17:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-17 | | 2023/07/18 18:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-18 | | 2023/07/18 19:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-19 | | 2023/07/18 20:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-20 | | 2023/07/18 21:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-21 | | 2023/07/18 22:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-22 | | 2023/07/18 23:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230716-23 | | 2023/07/19 00:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230717-0 | | 2023/07/19 01:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230717-1 | | 2023/07/19 02:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230717-2 | | 2023/07/19 03:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230717-3 | | 2023/07/19 04:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230717-4 | | 2023/07/19 05:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230717-5 | | 2023/07/19 06:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230717-6 | | 2023/07/19 07:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230717-7 | | 2023/07/19 08:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230717-8 | | 2023/07/19 09:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230717-9 | | 2023/07/19 10:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230717-10 | | 2023/07/19 11:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230717-11 | | 2023/07/19 12:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230717-12 | | 2023/07/19 13:04 EEST |
+-------------------+-------------+-----------------------+
| auto--20230717-13 | | 2023/07/19 14:04 EEST |
+-------------------+-------------+-----------------------+
Backups:
+---------+-----------------------+-----------------------+-------------+-------------------+
| NAME | TAKEN AT | EXPIRES AT | VOLUME ONLY | OPTIMIZED STORAGE |
+---------+-----------------------+-----------------------+-------------+-------------------+
| backup0 | 2023/07/14 09:44 EEST | 2023/07/15 09:44 EEST | NO | YES |
+---------+-----------------------+-----------------------+-------------+-------------------+
| backup1 | 2023/07/14 17:44 EEST | 2023/07/15 17:44 EEST | NO | YES |
+---------+-----------------------+-----------------------+-------------+-------------------+
| backup2 | 2023/07/14 20:11 EEST | 2023/07/15 20:11 EEST | YES | NO |
+---------+-----------------------+-----------------------+-------------+-------------------+
| backup3 | 2023/07/14 23:02 EEST | 2023/07/15 23:02 EEST | YES | NO |
+---------+-----------------------+-----------------------+-------------+-------------------+
| backup4 | 2023/07/14 23:21 EEST | 2023/07/15 23:21 EEST | YES | YES |
+---------+-----------------------+-----------------------+-------------+-------------------+
| backup5 | 2023/07/17 14:03 EEST | 2023/07/18 14:03 EEST | YES | YES |
+---------+-----------------------+-----------------------+-------------+-------------------+
however, what do you mean by that? I clearly see a list of them or it's just a log?
You're right, I misread your sentence. I thought you were talking about lxc storage volume ls <pool>
which doesn't list backups.
What exactly do you want to have clarified in lxc storage volume info
?
You're right, I misread your sentence. I thought you were talking about
lxc storage volume ls <pool>
which doesn't list backups.What exactly do you want to have clarified in
lxc storage volume info
?
@monstermunchkin I don't quite understand the purpose of this list, because:
Required information
lxc info
driver: lxc driver_version: 5.0.0 firewall: nftables kernel: Linux kernel_architecture: x86_64 kernel_version: 5.4.0-144-generic
os_name: Ubuntu os_version: "20.04" project: default server: lxd server_clustered: false server_event_mode: full-mesh server_name: x server_version: "5.15" storage: btrfs | lvm storage_version: 5.16.2 | 2.03.07(2) (2019-11-30) / 1.02.167 (2019-11-30) / 4.41.0 storage_supported_drivers:
Issue description
lxc storage volume export
for btrfs pool volume fails when trying to export backup file from remote client. And failed attempt doesn't clean up consumed space.lxc image export
in the same situation works without issues.Steps to reproduce
lxc storage volume export remotevm:btrfs_pool01 sm -v --volume-only --debug --optimized-storage &> volume_export_remotely.log
lxc storage volume export btrfs_pool01 sm -v --volume-only --debug --optimized-storage &> volume_export_on_server.log
Information to attach
Fail: lxc storage volume export remotevm:btrfs_pool01 sm -v --volume-only --debug --optimized-storage &> volume_export_remotely.log
Free space on lxd server after this attempt (available was ~17.5GB):
Non removed temp backup:
It seems that lxc tries to find that folder locally on client instead of server.
SUCCESS: lxc storage volume export btrfs_pool01 sm -v --volume-only --debug --optimized-storage &> volume_export_on_server.log