-
Notifications
You must be signed in to change notification settings - Fork 931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
snapshot of Instance(VM) ceph-rbd based return -1 size #14017
Comments
Did you have |
Thank you for the reply! |
Do we need to take a new snapshot after setting |
Can you please try running |
Does this affect existing snapshots? |
Yes - after changing the setting and running |
Here are my test results using a VM with a ceph backend (single node cluster)
root@v1:~# lxc storage set pool1 ceph.rbd.du=false
root@v1:~# lxc snapshot v1 snap1
root@v1:~# lxc config show v1/snap1
architecture: x86_64
config:
image.architecture: amd64
image.description: ubuntu 24.04 LTS amd64 (release) (20241004)
image.label: release
image.os: ubuntu
image.release: noble
image.serial: "20241004"
image.type: disk1.img
image.version: "24.04"
volatile.base_image: 427eb975d1b2c0561d59b0a6092e1c9046585c6c6718319edfdcfdc8a5ec3dc1
volatile.cloud-init.instance-id: cfb5d25b-470f-49a6-b384-789700dccf85
volatile.eth0.host_name: tapb0d39ad9
volatile.eth0.hwaddr: 00:16:3e:27:e9:dd
volatile.last_state.power: RUNNING
volatile.uuid: 830d6b08-e882-4924-9c81-cc62a632b451
volatile.uuid.generation: 830d6b08-e882-4924-9c81-cc62a632b451
volatile.vsock_id: "1155209746"
created_at: 2024-10-18T20:55:57.744013777Z
expires_at: 0001-01-01T00:00:00Z
devices:
root:
path: /
pool: pool1
type: disk
ephemeral: false
expanded_config:
image.architecture: amd64
image.description: ubuntu 24.04 LTS amd64 (release) (20241004)
image.label: release
image.os: ubuntu
image.release: noble
image.serial: "20241004"
image.type: disk1.img
image.version: "24.04"
volatile.base_image: 427eb975d1b2c0561d59b0a6092e1c9046585c6c6718319edfdcfdc8a5ec3dc1
volatile.cloud-init.instance-id: cfb5d25b-470f-49a6-b384-789700dccf85
volatile.eth0.host_name: tapb0d39ad9
volatile.eth0.hwaddr: 00:16:3e:27:e9:dd
volatile.last_state.power: RUNNING
volatile.uuid: 830d6b08-e882-4924-9c81-cc62a632b451
volatile.uuid.generation: 830d6b08-e882-4924-9c81-cc62a632b451
volatile.vsock_id: "1155209746"
expanded_devices:
eth0:
name: eth0
network: lxdbr0
type: nic
root:
path: /
pool: pool1
type: disk
last_used_at: 0001-01-01T00:00:00Z
name: snap1
profiles:
- default
stateful: false
size: -1
root@v1:~# lxc storage set pool1 ceph.rbd.du=true
root@v1:~# lxc config show v1/snap1
architecture: x86_64
config:
image.architecture: amd64
image.description: ubuntu 24.04 LTS amd64 (release) (20241004)
image.label: release
image.os: ubuntu
image.release: noble
image.serial: "20241004"
image.type: disk1.img
image.version: "24.04"
volatile.base_image: 427eb975d1b2c0561d59b0a6092e1c9046585c6c6718319edfdcfdc8a5ec3dc1
volatile.cloud-init.instance-id: cfb5d25b-470f-49a6-b384-789700dccf85
volatile.eth0.host_name: tapb0d39ad9
volatile.eth0.hwaddr: 00:16:3e:27:e9:dd
volatile.last_state.power: RUNNING
volatile.uuid: 830d6b08-e882-4924-9c81-cc62a632b451
volatile.uuid.generation: 830d6b08-e882-4924-9c81-cc62a632b451
volatile.vsock_id: "1155209746"
created_at: 2024-10-18T20:55:57.744013777Z
expires_at: 0001-01-01T00:00:00Z
devices:
root:
path: /
pool: pool1
type: disk
ephemeral: false
expanded_config:
image.architecture: amd64
image.description: ubuntu 24.04 LTS amd64 (release) (20241004)
image.label: release
image.os: ubuntu
image.release: noble
image.serial: "20241004"
image.type: disk1.img
image.version: "24.04"
volatile.base_image: 427eb975d1b2c0561d59b0a6092e1c9046585c6c6718319edfdcfdc8a5ec3dc1
volatile.cloud-init.instance-id: cfb5d25b-470f-49a6-b384-789700dccf85
volatile.eth0.host_name: tapb0d39ad9
volatile.eth0.hwaddr: 00:16:3e:27:e9:dd
volatile.last_state.power: RUNNING
volatile.uuid: 830d6b08-e882-4924-9c81-cc62a632b451
volatile.uuid.generation: 830d6b08-e882-4924-9c81-cc62a632b451
volatile.vsock_id: "1155209746"
expanded_devices:
eth0:
name: eth0
network: lxdbr0
type: nic
root:
path: /
pool: pool1
type: disk
last_used_at: 0001-01-01T00:00:00Z
name: snap1
profiles:
- default
stateful: false
size: 138412032 |
@lccnblack happy to close this now? |
Closing this issue but if you have any concerns or run into any more issues please feel free to reopen this or reach out! Thanks! |
Required information
Distribution: 22.04.4 LTS
Distribution version:
lxd 6.1-c14927a 29551 6.1/stable canonical** in-cohort
lxd 6.1-0d4d89b 29469 6.1/stable canonical** disabled,in-cohort
microceph 0+git.4a608fc 793 quincy/stable canonical** in-cohort
microcloud 1.1-04a1c49 734 latest/stable canonical** in-cohort
The output of "snap list --all lxd core20 core22 core24 snapd":
The output of "lxc info" or if that fails:
Issue description
The customer has a vm that is ceph rbd based.
lxc config show / shows that the size is -1.
However, the rbd du /.block returns normally.
What's interesting is that only the first snapshot returns the normal size, and all the other snapshots return size -1.
It seems that the other snapshots are taken via the schedule.
lxc info ConvertVM
lxc config show ConvertVM/snap22
lxc config show ConvertVM/snap1
rbd du remote/virtual-machine_ConvertVM.block
The text was updated successfully, but these errors were encountered: