Hello,
I found out that after proxmox starts VMs which have their disks on iscsi storage and are expected to autostart fail to do this because their storage is not ready yet.
By the time I login to the web gui I can start the VMs by hand with no problem:
I set up the lvm-thin storage on iscsi following the official guide which otherwise seems to work quite well.
I can of course set a 200 second delay to the VM that should autostart first which completely solves the problem.
But may be there is something else I should correct in my installation?
I found out that after proxmox starts VMs which have their disks on iscsi storage and are expected to autostart fail to do this because their storage is not ready yet.
By the time I login to the web gui I can start the VMs by hand with no problem:
Bash:
...........
Aug 12 07:00:11 hv02 systemd[1]: Starting pve-guests.service - PVE guests...
Aug 12 07:00:13 hv02 pve-guests[1160]: <root@pam> starting task UPID:hv02:0000048B:000005A3:689ABC4D:startall::root@pam:
Aug 12 07:00:13 hv02 pvesh[1160]: Starting VM 102
Aug 12 07:00:13 hv02 pve-guests[1163]: <root@pam> starting task UPID:hv02:0000048C:000005A5:689ABC4D:qmstart:102:root@pam:
Aug 12 07:00:13 hv02 pve-guests[1164]: start VM 102: UPID:hv02:0000048C:000005A5:689ABC4D:qmstart:102:root@pam:
Aug 12 07:00:13 hv02 pve-guests[1164]: no such logical volume vg_iscsi/lv_thin_iscsi
Aug 12 07:00:14 hv02 pvesh[1160]: Starting VM 102 failed: no such logical volume vg_iscsi/lv_thin_iscsi
Aug 12 07:00:14 hv02 pvesh[1160]: Starting VM 100
Aug 12 07:00:14 hv02 pve-guests[1163]: <root@pam> starting task UPID:hv02:00000491:0000060A:689ABC4E:qmstart:100:root@pam:
Aug 12 07:00:14 hv02 pve-guests[1169]: start VM 100: UPID:hv02:00000491:0000060A:689ABC4E:qmstart:100:root@pam:
Aug 12 07:00:14 hv02 pve-guests[1169]: no such logical volume vg_iscsi/lv_thin_iscsi
Aug 12 07:00:15 hv02 pvesh[1160]: Starting VM 100 failed: no such logical volume vg_iscsi/lv_thin_iscsi
Aug 12 07:00:15 hv02 pve-guests[1160]: <root@pam> end task UPID:hv02:0000048B:000005A3:689ABC4D:startall::root@pam: OK
Aug 12 07:00:15 hv02 systemd[1]: Finished pve-guests.service - PVE guests.
...........
Aug 12 07:00:19 hv02 systemd[1]: Starting iscsid.service - iSCSI initiator daemon (iscsid)...
Aug 12 07:00:19 hv02 iscsid[1231]: iSCSI logger with pid=1233 started!
Aug 12 07:00:19 hv02 systemd[1]: Started iscsid.service - iSCSI initiator daemon (iscsid).
Aug 12 07:00:19 hv02 kernel: Loading iSCSI transport class v2.0-870.
Aug 12 07:00:19 hv02 kernel: iscsi: registered transport (tcp)
Aug 12 07:00:19 hv02 kernel: scsi host6: iSCSI Initiator over TCP/IP
Aug 12 07:00:19 hv02 kernel: scsi 6:0:0:0: RAID IET Controller 0001 PQ: 0 ANSI: 5
Aug 12 07:00:19 hv02 kernel: scsi 6:0:0:0: Attached scsi generic sg1 type 12
Aug 12 07:00:19 hv02 kernel: scsi 6:0:0:1: Direct-Access IET VIRTUAL-DISK 0001 PQ: 0 ANSI: 5
Aug 12 07:00:19 hv02 kernel: sd 6:0:0:1: Attached scsi generic sg2 type 0
Aug 12 07:00:19 hv02 kernel: sd 6:0:0:1: Power-on or device reset occurred
Aug 12 07:00:19 hv02 kernel: sd 6:0:0:1: [sdb] 2936012800 512-byte logical blocks: (1.50 TB/1.37 TiB)
Aug 12 07:00:19 hv02 kernel: sd 6:0:0:1: [sdb] 4096-byte physical blocks
Aug 12 07:00:19 hv02 kernel: sd 6:0:0:1: [sdb] Write Protect is off
Aug 12 07:00:19 hv02 kernel: sd 6:0:0:1: [sdb] Mode Sense: 69 00 10 08
Aug 12 07:00:19 hv02 kernel: sd 6:0:0:1: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
Aug 12 07:00:19 hv02 kernel: sdb: sdb1
Aug 12 07:00:19 hv02 kernel: sd 6:0:0:1: [sdb] Attached SCSI disk
Aug 12 07:00:19 hv02 kernel: netfs: FS-Cache loaded
Aug 12 07:00:19 hv02 lvm[1270]: PV /dev/sdb1 online, VG vg_iscsi is complete.
Aug 12 07:00:19 hv02 systemd[1]: Started lvm-activate-vg_iscsi.service - [systemd-run] /usr/sbin/lvm vgchange -aay --autoactivation event vg_iscsi.
Aug 12 07:00:19 hv02 kernel: NFS: Registering the id_resolver key type
...........
Aug 12 07:03:39 hv02 systemd[1]: Started session-1.scope - Session 1 of User root.
Aug 12 07:04:44 hv02 pvedaemon[2295]: start VM 102: UPID:hv02:000008F7:00006FC0:689ABD5C:qmstart:102:root@pam:
Aug 12 07:04:44 hv02 pvedaemon[1134]: <root@pam> starting task UPID:hv02:000008F7:00006FC0:689ABD5C:qmstart:102:root@pam:
Aug 12 07:04:45 hv02 systemd[1]: Created slice qemu.slice - Slice /qemu.
Aug 12 07:04:45 hv02 systemd[1]: Started 102.scope.
Aug 12 07:04:46 hv02 kernel: tap102i0: entered promiscuous mode
Aug 12 07:04:46 hv02 kernel: vmbr0: port 2(fwpr102p0) entered blocking state
Aug 12 07:04:46 hv02 kernel: vmbr0: port 2(fwpr102p0) entered disabled state
Aug 12 07:04:46 hv02 kernel: fwpr102p0: entered allmulticast mode
Aug 12 07:04:46 hv02 kernel: fwpr102p0: entered promiscuous mode
Aug 12 07:04:46 hv02 kernel: vmbr0: port 2(fwpr102p0) entered blocking state
Aug 12 07:04:46 hv02 kernel: vmbr0: port 2(fwpr102p0) entered forwarding state
Aug 12 07:04:46 hv02 kernel: fwbr102i0: port 1(fwln102i0) entered blocking state
Aug 12 07:04:46 hv02 kernel: fwbr102i0: port 1(fwln102i0) entered disabled state
Aug 12 07:04:46 hv02 kernel: fwln102i0: entered allmulticast mode
Aug 12 07:04:46 hv02 kernel: fwln102i0: entered promiscuous mode
Aug 12 07:04:46 hv02 kernel: fwbr102i0: port 1(fwln102i0) entered blocking state
Aug 12 07:04:46 hv02 kernel: fwbr102i0: port 1(fwln102i0) entered forwarding state
Aug 12 07:04:46 hv02 kernel: fwbr102i0: port 2(tap102i0) entered blocking state
Aug 12 07:04:46 hv02 kernel: fwbr102i0: port 2(tap102i0) entered disabled state
Aug 12 07:04:46 hv02 kernel: tap102i0: entered allmulticast mode
Aug 12 07:04:46 hv02 kernel: fwbr102i0: port 2(tap102i0) entered blocking state
Aug 12 07:04:46 hv02 kernel: fwbr102i0: port 2(tap102i0) entered forwarding state
Aug 12 07:04:46 hv02 pvedaemon[2295]: VM 102 started with PID 2317.
I can of course set a 200 second delay to the VM that should autostart first which completely solves the problem.
But may be there is something else I should correct in my installation?