Cannot import/move disk from local-lvm to shared iscsi-lvm

SurfingEgg

New Member
Jun 5, 2025
11
0
1
I am currently experimenting with cloudinit, following this guide.
When trying to attach a disk by importing from an ubuntu cloud image, I get this lvcreate error:
Code:
# qm set 9000 --scsi0 rackstation-iscsi-lvm:0,import-from=/mnt/pve/rackstation/template/iso/noble-server-cloudimg-amd64.img
update VM 9000: -scsi0 rackstation-iscsi-lvm:0,import-from=/mnt/pve/rackstation/template/iso/noble-server-cloudimg-amd64.img
  Failed to initialize logical volume rackstation-iscsi-lvm-vg/vm-9000-disk-0 at position 0 and size 4096.
lvcreate 'rackstation-iscsi-lvm-vg/vm-9000-disk-0' error:   Aborting. Failed to wipe start of new LV.
In this case, the disk shall be created on rackstation-iscsi-lvm(of type lvm and with content set to images), a shared lvm on a remote Synology machine, shared between multiple pve nodes.

I tried this command it multiple times, it also showed me another error:
Code:
# qm set 9000 --scsi0 rackstation-iscsi-lvm:0,import-from=/mnt/pve/rackstation/template/iso/noble-server-cloudimg-amd64.img
update VM 9000: -scsi0 rackstation-iscsi-lvm:0,import-from=/mnt/pve/rackstation/template/iso/noble-server-cloudimg-amd64.img
  Logical volume "vm-9000-disk-0" created.
transferred 0.0 B of 3.5 GiB (0.00%)
qemu-img: error while writing at byte 0: No space left on device
  Logical volume "vm-9000-disk-0" successfully removed.
copy failed: command '/usr/bin/qemu-img convert -p -n -O raw /mnt/pve/rackstation/template/iso/noble-server-cloudimg-amd64.img /dev/rackstation-iscsi-lvm-vg/vm-9000-disk-0' failed: exit code 1
There is more than enough space left (>1TB) on the volume group, though.

If I run this command and replace the storage with local-lvm, it works (but it's not desired in this case).

If I then try to move the disk (via UI):
Code:
create full clone of drive scsi0 (rackstation:9000/vm-9000-disk-0.raw)
  Failed to initialize logical volume rackstation-iscsi-lvm-vg/vm-9000-disk-0 at position 0 and size 4096.
TASK ERROR: storage migration failed: lvcreate 'rackstation-iscsi-lvm-vg/vm-9000-disk-0' error:   Aborting. Failed to wipe start of new LV.

If I create a template from this VM (with disk on local-lvm) and try to clone it (full clone and target storage set to rackstation-iscsi-lvm):
Code:
create full clone of drive ide2 (local-lvm:vm-9000-cloudinit)
  Logical volume "vm-623-cloudinit" created.
create full clone of drive scsi0 (local-lvm:base-9000-disk-0)
  Failed to initialize logical volume rackstation-iscsi-lvm-vg/vm-623-disk-0 at position 0 and size 4096.
  Logical volume "vm-623-cloudinit" successfully removed.
TASK ERROR: clone failed: lvcreate 'rackstation-iscsi-lvm-vg/vm-623-disk-0' error:   Aborting. Failed to wipe start of new LV.

I am at a loss.
Manually creating a VM via the UI still allows me to create a disk on rackstation-iscsi-lvm and install a OS on it.
 
list that you need to provide
This should be it:
Code:
# cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content snippets,vztmpl
        shared 0

lvmthin: local-lvm
        thinpool data
        vgname pve
        content images,rootdir

cifs: rackstation
        path /mnt/pve/rackstation
        server 172.30.120.1
        share proxmox
        content iso,backup,images
        nodes virt02,virt04,virt06,virt11,virt03,virt05,virt07,virt00,virt01
        prune-backups keep-last=4
        username proxmox

iscsi: rackstation-iscsi
        portal 172.30.120.1
        target iqn.2000-01.com.synology:rackstation.proxmox-1.a4c36933c7
        content none
        nodes virt11,virt06,virt04,virt02,virt05,virt03,virt07,virt01,virt00

lvm: rackstation-iscsi-lvm
        vgname rackstation-iscsi-lvm-vg
        base rackstation-iscsi:0.0.1.scsi-3600140521521379d762ad409dd9c3ede
        content images
        nodes virt04,virt02,virt11,virt06,virt05,virt03,virt07,virt00,virt01
        saferemove 0
        shared 1
Code:
# pvesm status
Name                         Type     Status           Total            Used       Available        %
local                         dir     active        30787492        11785568        17412676   38.28%
local-lvm                 lvmthin     active      1808789504      1065377017       743412486   58.90%
rackstation                  cifs     active     30198988800      9063862640     21135126160   30.01%
rackstation-iscsi           iscsi     active               0               0               0    0.00%
rackstation-iscsi-lvm         lvm     active     66095935488     34152206336     31943729152   51.67%
Code:
# pvesm iscsiscan 172.30.120.1
iqn.2000-01.com.synology:rackstation.proxmox-1.a4c36933c7 172.30.120.1:3260
Code:
# pvs
  PV         VG                       Fmt  Attr PSize   PFree 
  /dev/sda3  pve                      lvm2 a--   <1.75t 768.00m
  /dev/sdc   rackstation-iscsi-lvm-vg lvm2 a--  <61.56t <29.75t

# vgs
  VG                       #PV #LV #SN Attr   VSize   VFree 
  pve                        1  35   0 wz--n-  <1.75t 768.00m
  rackstation-iscsi-lvm-vg   1 181   0 wz--n- <61.56t <29.75t
Code:
# lvs
  LV                        VG                       Attr       LSize    Pool Origin        Data%  Meta%  Move Log Cpy%Sync Convert
  data                      pve                      twi-aotz--    1.68t                    58.90  2.70                           
  root                      pve                      -wi-ao----   30.00g                                                           
  snap_vm-218-disk-0_Virgin pve                      Vri---tz-k   50.00g data vm-218-disk-0                                       
  vm-109-disk-0             pve                      Vwi-aotz--   50.00g data               61.89                                 
  vm-113-disk-0             pve                      Vwi-aotz--   30.00g data               91.53                                 
  vm-114-disk-0             pve                      Vwi-aotz--  200.00g data               49.95                                 
  vm-130-disk-0             pve                      Vwi-a-tz--   80.00g data               51.94                                 
  vm-132-disk-0             pve                      Vwi-a-tz--   32.00g data               100.00                                 
  vm-133-disk-0             pve                      Vwi-aotz--   20.00g data               88.57                                 
  vm-134-disk-0             pve                      Vwi-a-tz--   30.00g data               92.11                                 
  vm-137-disk-0             pve                      Vwi-aotz--   20.00g data               88.31                                 
  vm-138-disk-0             pve                      Vwi-a-tz--    5.00g data               90.75                                 
  vm-139-disk-0             pve                      Vwi-aotz--  120.00g data               92.88                                 
  vm-142-disk-0             pve                      Vwi-a-tz--   32.00g data               89.88                                 
  vm-145-disk-0             pve                      Vwi-aotz--   40.00g data               98.63                                 
  vm-155-disk-0             pve                      Vwi-aotz--   45.00g data               97.67                                 
  vm-171-disk-0             pve                      Vwi-aotz--   40.00g data               98.78                                 
  vm-172-disk-0             pve                      Vwi-a-tz--   50.00g data               90.78                                 
  vm-178-disk-0             pve                      Vwi-a-tz--   32.00g data               89.64                                 
  vm-185-disk-0             pve                      Vwi-aotz--   32.00g data               96.54                                 
  vm-185-disk-1             pve                      Vwi-aotz--   32.00g data               97.52                                 
  vm-200-disk-0             pve                      Vwi-a-tz--   40.00g data               98.58                                 
  vm-208-disk-0             pve                      Vwi-aotz--   50.00g data               10.96                                 
  vm-218-disk-0             pve                      Vwi-a-tz--   50.00g data               9.38                                   
  vm-101-disk-0             rackstation-iscsi-lvm-vg -wi-ao----  300.00g                                                         
  vm-1010-disk-0            rackstation-iscsi-lvm-vg -wi-a-----   50.00g
  vm-1010-disk-1            rackstation-iscsi-lvm-vg -wi-a-----   20.00g                                                            
  vm-104-disk-0             rackstation-iscsi-lvm-vg -wi-a-----  100.00g                                                           
  vm-105-disk-0             rackstation-iscsi-lvm-vg -wi-ao----   32.00g
  many more...
 
many more...
Including entries from VM623 would have been interesting , since it is the one you reported in your question.

That said, what happens when you :
pvesm alloc rackstation-iscsi-lvm 999 vm-999-disk-32 10G
dd if=/mnt/pve/rackstation/template/iso/noble-server-cloudimg-amd64.img of=/dev/rackstation-iscsi-lvm-vg/vm-999-disk-32

My guess is that the issue is likely caused by your backend device


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Code:
# pvesm alloc rackstation-iscsi-lvm 999 vm-999-disk-32 10G
  Logical volume "vm-999-disk-32" created.
successfully created 'rackstation-iscsi-lvm:vm-999-disk-32'
# dd if=/mnt/pve/rackstation/template/iso/noble-server-cloudimg-amd64.img of=/dev/rackstation-iscsi-lvm-vg/vm-999-disk-32
1198471+0 records in
1198471+0 records out
613617152 bytes (614 MB, 585 MiB) copied, 30.0097 s, 20.4 MB/s
That works totally fine.

Based on this information, can the problem be narrowed down to a specific component (the backend device)?
 
could you post "qemu-img info --output json /mnt/pve/rackstation/template/iso/noble-server-cloudimg-amd64.img"
 
could you post "qemu-img info --output json /mnt/pve/rackstation/template/iso/noble-server-cloudimg-amd64.img"

Code:
# qemu-img info --output json /mnt/pve/rackstation/template/iso/noble-server-cloudimg-amd64.img
{
    "children": [
        {
            "name": "file",
            "info": {
                "children": [
                ],
                "virtual-size": 613617152,
                "filename": "/mnt/pve/rackstation/template/iso/noble-server-cloudimg-amd64.img",
                "format": "file",
                "actual-size": 613617664,
                "format-specific": {
                    "type": "file",
                    "data": {
                    }
                },
                "dirty-flag": false
            }
        }
    ],
    "virtual-size": 3758096384,
    "filename": "/mnt/pve/rackstation/template/iso/noble-server-cloudimg-amd64.img",
    "cluster-size": 65536,
    "format": "qcow2",
    "actual-size": 613617664,
    "format-specific": {
        "type": "qcow2",
        "data": {
            "compat": "1.1",
            "compression-type": "zlib",
            "lazy-refcounts": false,
            "refcount-bits": 16,
            "corrupt": false,
            "extended-l2": false
        }
    },
    "dirty-flag": false
}
 
could you try this next:

Code:
pvesm alloc rackstation-iscsi-lvm 999 vm-999-disk-33 3.5G
/usr/bin/qemu-img convert -p -n -O raw /mnt/pve/rackstation/template/iso/noble-server-cloudimg-amd64.img /dev/rackstation-iscsi-lvm-vg/vm-999-disk-33
 
The command did not accept a . in the size:
Code:
# pvesm alloc rackstation-iscsi-lvm 999 vm-999-disk-33 3.5G
400 Parameter verification failed.
size: value does not match the regex pattern
pvesm alloc <storage> <vmid> <filename> <size> [OPTIONS]

Here you go:
Code:
# pvesm alloc rackstation-iscsi-lvm 999 vm-999-disk-33 3G
  Failed to initialize logical volume rackstation-iscsi-lvm-vg/vm-999-disk-33 at position 0 and size 4096.
lvcreate 'rackstation-iscsi-lvm-vg/vm-999-disk-33' error:   Aborting. Failed to wipe start of new LV.
# pvesm alloc rackstation-iscsi-lvm 999 vm-999-disk-33 3G
  Failed to initialize logical volume rackstation-iscsi-lvm-vg/vm-999-disk-33 at position 0 and size 4096.
lvcreate 'rackstation-iscsi-lvm-vg/vm-999-disk-33' error:   Aborting. Failed to wipe start of new LV.
# pvesm alloc rackstation-iscsi-lvm 999 vm-999-disk-33 4G
  Logical volume "vm-999-disk-33" created.
successfully created 'rackstation-iscsi-lvm:vm-999-disk-33'
# pvesm alloc rackstation-iscsi-lvm 999 vm-999-disk-33 4G
lvcreate 'rackstation-iscsi-lvm-vg/vm-999-disk-33' error:   Logical Volume "vm-999-disk-33" already exists in volume group "rackstation-iscsi-lvm-vg"
# /usr/bin/qemu-img convert -p -n -O raw /mnt/pve/rackstation/template/iso/noble-server-cloudimg-amd64.img /dev/rackstation-iscsi-lvm-vg/vm-999-disk-33
qemu-img: error while writing at byte 0: No space left on device
Kinda weird that it failed creating a 3G volume but 4G is okay.
 
could you repeat the last command (recreate the volume if necessary) but prefix it with "strace -ff " and post at least the last few lines of the output here? also, could you run "lvs rackstation-iscsi-lvm-vg/vm-999-disk-33" afterwards?
 
repeat the last command
I did not recreate the volume, I just repeated the qemu-img convert with strace -ff :
Code:
...
[pid 3789420] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7ccc32000990, parent_tid=0x7ccc32000990, exit_signal=0, stack=0x7ccc31800000, stack_size=0x7fb700, tls=0x7ccc320006c0}strace: Process 3789421 attached
 <unfinished ...>
[pid 3789421] rseq(0x7ccc32000fe0, 0x20, 0, 0x53053053 <unfinished ...>
[pid 3789420] <... clone3 resumed> => {parent_tid=[3789421]}, 88) = 3789421
[pid 3789421] <... rseq resumed>)       = 0
[pid 3789420] rt_sigprocmask(SIG_SETMASK, ~[ILL FPE KILL SEGV STOP RTMIN RT_1],  <unfinished ...>
[pid 3789421] set_robust_list(0x7ccc320009a0, 24 <unfinished ...>
[pid 3789420] <... rt_sigprocmask resumed>NULL, 8) = 0
[pid 3789421] <... set_robust_list resumed>) = 0
[pid 3789420] rt_sigprocmask(SIG_SETMASK, ~[ILL FPE KILL SEGV STOP RTMIN RT_1],  <unfinished ...>
[pid 3789421] rt_sigprocmask(SIG_SETMASK, ~[ILL FPE KILL SEGV STOP RTMIN RT_1],  <unfinished ...>
[pid 3789420] <... rt_sigprocmask resumed>NULL, 8) = 0
[pid 3789421] <... rt_sigprocmask resumed>NULL, 8) = 0
[pid 3789420] futex(0x56efc5a67f00, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 3789421] mmap(0x7ccc18000000, 67108864, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0 <unfinished ...>
[pid 3789420] <... futex resumed>)      = 1
[pid 3789417] <... futex resumed>)      = 0
[pid 3789420] futex(0x56efc5a67f94, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1749646503, tv_nsec=274059746}, FUTEX_BITSET_MATCH_ANY <unfinished ...>
[pid 3789421] <... mmap resumed>)       = 0x7ccc10000000
[pid 3789417] futex(0x56efc5a67f00, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 3789421] mprotect(0x7ccc10000000, 135168, PROT_READ|PROT_WRITE <unfinished ...>
[pid 3789417] <... futex resumed>)      = 1
[pid 3789413] <... futex resumed>)      = 0
[pid 3789421] <... mprotect resumed>)   = 0
[pid 3789413] futex(0x56efc5a67f00, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 3789417] futex(0x56efc5a67f94, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1749646503, tv_nsec=274090190}, FUTEX_BITSET_MATCH_ANY <unfinished ...>
[pid 3789413] <... futex resumed>)      = 0
[pid 3789421] fallocate(8, FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE, 4096, 61440 <unfinished ...>
[pid 3789413] futex(0x56efc5a67f90, FUTEX_WAKE_PRIVATE, 1) = 1
[pid 3789415] <... futex resumed>)      = 0
[pid 3789413] ppoll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=7, events=POLLIN}], 4, NULL, NULL, 8 <unfinished ...>
[pid 3789415] futex(0x56efc5a67f00, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
[pid 3789413] <... ppoll resumed>)      = 1 ([{fd=7, revents=POLLIN}])
[pid 3789415] <... futex resumed>)      = 0
[pid 3789413] read(7,  <unfinished ...>
[pid 3789415] futex(0x56efc5a67f94, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1749646503, tv_nsec=274177125}, FUTEX_BITSET_MATCH_ANY <unfinished ...>
[pid 3789413] <... read resumed>"\7\0\0\0\0\0\0\0", 512) = 8
[pid 3789413] ppoll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLIN}, {fd=7, events=POLLIN}], 4, NULL, NULL, 8 <unfinished ...>
[pid 3789421] <... fallocate resumed>)  = -1 ENOSPC (No space left on device)
[pid 3789421] write(7, "\1\0\0\0\0\0\0\0", 8) = 8
[pid 3789413] <... ppoll resumed>)      = 1 ([{fd=7, revents=POLLIN}])
[pid 3789421] futex(0x56efc5a67f94, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {tv_sec=1749646503, tv_nsec=883479479}, FUTEX_BITSET_MATCH_ANY <unfinished ...>
[pid 3789413] write(2, "qemu-img:", 9qemu-img:)  = 9
[pid 3789413] write(2, " ", 1 )          = 1
[pid 3789413] write(2, "error while writing at byte 0: N"..., 54error while writing at byte 0: No space left on device) = 54
[pid 3789413] write(2, "\n", 1
)         = 1
[pid 3789413] munmap(0x7ccc39400000, 2105344) = 0
[pid 3789413] munmap(0x7ccc39800000, 2105344) = 0
[pid 3789413] munmap(0x7ccc39c00000, 2105344) = 0
[pid 3789413] munmap(0x7ccc3a000000, 2105344) = 0
[pid 3789413] munmap(0x7ccc3a400000, 2105344) = 0
[pid 3789413] munmap(0x7ccc3a800000, 2105344) = 0
[pid 3789413] munmap(0x7ccc40200000, 2105344) = 0
[pid 3789413] munmap(0x7ccc40600000, 2105344) = 0
[pid 3789413] read(7, "\1\0\0\0\0\0\0\0", 512) = 8
[pid 3789413] write(1, "\n", 1
)         = 1
[pid 3789413] close(8)                  = 0
[pid 3789413] close(4)                  = 0
[pid 3789413] munmap(0x7ccc4136e000, 933888) = 0
[pid 3789413] exit_group(1)             = ?
[pid 3789415] <... futex resumed>)      = ?
[pid 3789417] <... futex resumed>)      = ?
[pid 3789420] <... futex resumed>)      = ?
[pid 3789421] <... futex resumed>)      = ?
[pid 3789419] <... futex resumed>)      = ?
[pid 3789418] <... futex resumed>)      = ?
[pid 3789416] <... futex resumed>)      = ?
[pid 3789414] <... futex resumed>)      = ?
[pid 3789421] +++ exited with 1 +++
[pid 3789420] +++ exited with 1 +++
[pid 3789419] +++ exited with 1 +++
[pid 3789417] +++ exited with 1 +++
[pid 3789415] +++ exited with 1 +++
[pid 3789418] +++ exited with 1 +++
[pid 3789416] +++ exited with 1 +++
[pid 3789414] +++ exited with 1 +++
+++ exited with 1 +++
# lvs rackstation-iscsi-lvm-vg/vm-999-disk-33
  LV             VG                       Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  vm-999-disk-33 rackstation-iscsi-lvm-vg -wi-a----- 4.00g
I hope this helps.
 
is your iSCSI storage perhaps lying about its zeroing support? the choice parts here are:

Code:
[pid 3789421] fallocate(8, FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE, 4096, 61440 &lt;unfinished ...&gt;
...
[pid 3789421] &lt;... fallocate resumed&gt;)  = -1 ENOSPC (No space left on device)

could you try collecting an strace of an lvcreate invocation that fails as well?
 
Here's an excerpt of # strace -ff lvcreate -L 983629824b -n vm-999-disk-35 rackstation-iscsi-lvm-vg:
Code:
...
read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
lseek(4, 64512, SEEK_SET)               = 64512
read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
lseek(4, 0, SEEK_SET)                   = 0
read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 262144) = 262144
lseek(4, 262144, SEEK_SET)              = 262144
read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 262144) = 262144
lseek(4, 985137152, SEEK_SET)           = 985137152
brk(0x620d2179d000)                     = 0x620d2179d000
read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 262144) = 262144
lseek(4, 985399296, SEEK_SET)           = 985399296
brk(0x620d217dd000)                     = 0x620d217dd000
read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 262144) = 262144
lseek(4, 2097152, SEEK_SET)             = 2097152
read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
close(4)                                = 0
brk(0x620d2175d000)                     = 0x620d2175d000
ioctl(3, BLKZEROOUT, [0, 4096])         = -1 EIO (Input/output error)
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=2996, ...}, AT_EMPTY_PATH) = 0
read(4, "# Locale name alias data base.\n#"..., 4096) = 2996
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
rt_sigprocmask(SIG_BLOCK, NULL, ~[INT KILL TERM STOP RTMIN RT_1], 8) = 0
rt_sigprocmask(SIG_SETMASK, ~[KILL STOP RTMIN RT_1], NULL, 8) = 0
rt_sigaction(SIGINT, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x73ad13bd5050}, NULL, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x73ad13bd5050}, NULL, 8) = 0
close(3)                                = 0
write(2, "  ", 2  )                       = 2
write(2, "Failed to initialize logical vol"..., 104Failed to initialize logical volume rackstation-iscsi-lvm-vg/vm-999-disk-35 at position 0 and size 4096.) = 104
write(2, "\n", 1
)                       = 1
write(2, "  ", 2  )                       = 2
write(2, "Aborting. Failed to wipe start o"..., 41Aborting. Failed to wipe start of new LV.) = 41
write(2, "\n", 1
)                       = 1
newfstatat(AT_FDCWD, "/dev/mapper/control", {st_mode=S_IFCHR|0600, st_rdev=makedev(0xa, 0xec), ...}, 0) = 0

...

recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="DATA\r\nOK f04f8e4c9aa76f7149c803c"..., iov_len=256}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 58
sendmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\1\0\1\0\0\0\0\1\0\0\0m\0\0\0\1\1o\0\25\0\0\0/org/fre"..., iov_len=128}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL) = 128
recvmsg(3, {msg_namelen=0}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
ppoll([{fd=3, events=POLLIN}], 1, {tv_sec=24, tv_nsec=999920000}, NULL, 8) = 1 ([{fd=3, revents=POLLIN}], left {tv_sec=24, tv_nsec=999826120})
recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\2\1\1\v\0\0\0\1\0\0\0=\0\0\0\6\1s\0\6\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base=":1.460\0\0\5\1u\0\1\0\0\0\10\1g\0\1s\0\0\7\1s\0\24\0\0\0"..., iov_len=67}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 67
sendmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\1\0\1\r\0\0\0\2\0\0\0\217\0\0\0\1\1o\0\34\0\0\0/com/red"..., iov_len=160}, {iov_base="\10\0\0\0lvcreate\0", iov_len=13}], msg_iovlen=2, msg_controllen=0, msg_flags=0}, MSG_DONTWAIT|MSG_NOSIGNAL) = 173
recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\4\1\1\v\0\0\0\2\0\0\0\215\0\0\0\1\1o\0\25\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="/org/freedesktop/DBus\0\0\0\2\1s\0\24\0\0\0"..., iov_len=147}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 147
recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="l\3\1\1H\0\0\0\3\0\0\0u\0\0\0\6\1s\0\6\0\0\0", iov_len=24}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 24
recvmsg(3, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base=":1.460\0\0\4\1s\0)\0\0\0org.freedesktop."..., iov_len=184}], msg_iovlen=1, msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC}, MSG_DONTWAIT|MSG_CMSG_CLOEXEC) = 184
close(3)                                = 0
close(5)                                = 0
io_destroy(0x73ad1402b000)              = 0
brk(0x620d21607000)                     = 0x620d21607000
brk(0x620d21603000)                     = 0x620d21603000
fcntl(0, F_GETFD)                       = 0
fcntl(0, F_GETFL)                       = 0x2 (flags O_RDWR)
dup(0)                                  = 3
close(0)                                = 0
dup2(3, 0)                              = 0
close(3)                                = 0
fcntl(0, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(1, F_GETFD)                       = 0
fcntl(1, F_GETFL)                       = 0x2 (flags O_RDWR)
dup(1)                                  = 3
close(1)                                = 0
dup2(3, 1)                              = 1
close(3)                                = 0
fcntl(1, F_GETFL)                       = 0x2 (flags O_RDWR)
exit_group(5)                           = ?
+++ exited with 5 +++
 
Code:
ioctl(3, BLKZEROOUT, [0, 4096])         = -1 EIO (Input/output error)

yeah, so similar issue here.. this does sound like your synology is behaving badly. do you have the option to create another LUN there for testing purposes (to rule out LVM doing something weird in the middle)?
 
test how it reacts to various zeroing invocations ;)
 
Here's the new LUN (TEST-LUN-2) on the same volume (Volume 2) and with the same mapped iSCSI targets:

1750077943356.png
The only difference seems to be that Hardware-assisted data transfer is enabled by default.
In Proxmox, I added a new LVM storage with this LUN as the base volume.

The commands we tried earlier work now:
Code:
# lvcreate -L 983629824b -n vm-999-disk-35 rackstation-iscsi-lvm-test2-vg
  Rounding up size to full physical extent 940.00 MiB
  Logical volume "vm-999-disk-35" created.
# pvesm alloc rackstation-iscsi-lvm-test2 999 vm-999-disk-34 4G
  Logical volume "vm-999-disk-34" created.
successfully created 'rackstation-iscsi-lvm-test2:vm-999-disk-34'
# /usr/bin/qemu-img convert -p -n -O raw /mnt/pve/rackstation/template/iso/noble-server-cloudimg-amd64.img /dev/rackstation-iscsi-lvm-test2-vg/vm-999-disk-34
    (100.00/100%)