diff options
Diffstat (limited to 'gitlab/issues/target_missing/host_missing/accel_missing/2001.toml')
| -rw-r--r-- | gitlab/issues/target_missing/host_missing/accel_missing/2001.toml | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/gitlab/issues/target_missing/host_missing/accel_missing/2001.toml b/gitlab/issues/target_missing/host_missing/accel_missing/2001.toml new file mode 100644 index 00000000..c4d3c66b --- /dev/null +++ b/gitlab/issues/target_missing/host_missing/accel_missing/2001.toml @@ -0,0 +1,51 @@ +id = 2001 +title = "qemu_img convert and drive mirror migrate the same raw disk to rbd volume, will get the different USED size in ceph cluster." +state = "opened" +created_at = "2023-11-24T01:31:41.343Z" +closed_at = "n/a" +labels = ["Storage"] +url = "https://gitlab.com/qemu-project/qemu/-/issues/2001" +host-os = "ctyunos 23.01" +host-arch = "X86" +qemu-version = "7.2.0" +guest-os = "centos8.3" +guest-arch = "X86" +description = """qemu_img convert and drive mirror migrate the same raw disk to rbd volume, will get the different USED size in ceph cluster.""" +reproduce = """create raw and qcow2 disk + +1. qemu-img create -f raw lvm_volume_1.raw 12G +2. qemu-img create -f qcow2 lvm_volume_1.qcow2 12G + + install a centos OS + +3. qemu-system-x86_64 -m 4096 -drive file=lvm_volume_1.qcow2,format=qcow2,index=0 -nographic -cdrom CentOS-8.3.2011-x86_64-dvd1.iso -vnc :25 + + convert the qcow2 OS disk to q raw OS disk + +4. qemu-img convert -f qcow2 -O raw ./lvm_volume_1.qcow2 ./lvm_volume_1.raw + + create a qemu-rbd process + +5. qemu-nbd --fork -x node1 -p 1238 rbd:cephpool- test/volume_1:id=xxx:key=xxx:mon_host=xxx:auth_supported=cephx + + boot the raw OS disk + +6. qemu-system-x86_64 -hda ./lvm_volume_1.raw -m 4096 -smp 4 -vnc :25 -monitor stdio + + migrate the raw OS disk to a ceph volume + +7. drive_mirror -n -f #block125 nbd:localhost:1238:exportname=node1 raw + + check the rbd volume USED size in ceph cluster + "rbd du cephpool-test/volume_1" + the ceph rbd volume PROVISION and USED are the same size + + convert the raw OS disk to a ceph volume + +8. qemu-img convert -n -f raw -O raw ./lvm_volume_1.raw rbd:cephpool- +test/volume_2:id=xxx:key=xxx:mon_host=xxx:auth_supported=cephx + + check the rbd volume USED size in ceph cluster + "rbd du cephpool-test/volume_2" + the ceph rbd volume PROVISION and USED are different PROVISION > USED""" +additional = """""" |