Problem with ISCSI and KVM

afrugone

Renowned Member
Nov 26, 2008
106
0
81
:D I was playing with ISCSI, I guess I kill :mad: something, and now when I try to open the hardware TAB of any KVM guest I get this error:

:eek: [4751]ERR: 24: Error in Perl code: command '/sbin/vgchange -aly ISCSI_Group' failed with exit code 5

:confused: How can I fix this
 
enter the same command via the CLI?
what do you get?

try :
# vgs => what do you see?
 
Thanks for your soon answer, I get this:

#/sbin/vgchange -aly ISCSI_Group
Volume group "ISCSI_Group" not found

# vgs
VG #PV #LV #SN Attr VSize VFree
pve 1 3 0 wz--n- 465.26G 4.00G
 
so you can't see the VG (volum group) created on your iSCSI target.

are you sure you're connected?
# iscsiadm -m node session

if not : reconnect
iscsiadm -m node -l ALL

rescan the VG's :
# vgscan

# vgs => should now show you the VG
 
I did it, but still same problem, thanks

~# iscsiadm -m node session
172.27.110.128:3260,1 iqn.2006-01.com.openfiler:tsn.086ad18522fe

# iscsiadm -m node -l ALL
Logging in to [iface: default, target: iqn.2006-01.com.openfiler:tsn.086ad18522fe, portal: 172.27.110.128,3260]
iscsiadm: Could not login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.086ad18522fe, portal: 172.27.110.128,3260]:
iscsiadm: initiator reported error (15 - already exists)

# vgs
VG #PV #LV #SN Attr VSize VFree
pve 1 3 0 wz--n- 465.26G 4.00G
 
# vgscan
Reading all physical volumes. This may take a while...
Found volume group "pve" using metadata type lvm2
 
hmmm


# aptitude update ; aptitude install lsscsi
# lsscsi

what do you get?
 
lsscsi
[0:0:0:0] disk ATA WDC WD5000AAKS-0 01.0 /dev/sda
[1:0:0:0] cd/dvd HL-DT-ST DVD+-RW GSA-H31L W616 /dev/sr0
 
so your Proxmox machine sees no disk from your iSCSI target.

Code:
# dmesg | grep  SCSI
should show you something like :
Code:
scsi6 : iSCSI Initiator over TCP/IP
sd 6:0:0:0: [sdc] Attached SCSI disk

maybe try :
Code:
# isciadm -m node -R
 
Many thanks, but Same problem

# dmesg | grep SCSI
SCSI subsystem initialized
sd 0:0:0:0: [sda] Attached SCSI disk
Loading iSCSI transport class v2.0-724.
scsi4 : iSCSI Initiator over TCP/IP

isciadm -m node -R
-bash: isciadm: command not found
 
iscsiadm -m node -R
Rescanning session [sid: 1, target: iqn.2006-01.com.openfiler:tsn.086ad18522fe, portal: 172.27.110.128,3260]

But same problem

I'm currently don't have any guest using ISCSI drives, so could I remove any configuration for ISCSI? so PVE don't look for it.
 
If I try to delete or disable it I get the same error;

Error: command '/sbin/vgchange -aln ISCSI_Group' failed with exit code 5

But instead of direct deleting or disable it, I edited it, the select disable and save, it works, now I can open

Thanks for your help.

Regards from Chile
 
If I try to delete or disable it I get the same error;

Error: command '/sbin/vgchange -aln ISCSI_Group' failed with exit code 5

But instead of direct deleting or disable it, I edited it, the select disable and save, it works, now I can open

Thanks for your help.

Regards from Chile
Hi,
delete the lines directly in /etc/pve/storage.cfg

Udo