iscsi Base Volume not selectable

udo

Distinguished Member
Apr 22, 2009
5,977
199
163
Ahrensburg; Germany
Hi,
i make a iscsi test and are not able to add a LVM Group on a iscsi-device.
The iscsitarget runs on an opensolaris, so i can use zfs.
Code:
@iscsi1:~# iscsitadm list target
Target: daten/sata/iscsi/iscsi1-vol1
    iSCSI Name: iqn.1986-03.com.sun:02:78114813-2ac2-ef0f-c018-b04a5360f3fc
I can add the Volume, but in the storage list apears only n/a under "Used" and "Capacity".
Code:
Nov  2 14:28:56 proxmox1 kernel: scsi7 : iSCSI Initiator over TCP/IP
Nov  2 14:28:56 proxmox1 kernel: scsi 7:0:0:0: Direct-Access     SUN      SOLARIS          1    PQ: 0 ANSI: 5
Nov  2 14:28:56 proxmox1 kernel: sd 7:0:0:0: [sdf] 1048576000 512-byte hardware sectors (536871 MB)
Nov  2 14:28:56 proxmox1 kernel: sd 7:0:0:0: [sdf] Write Protect is off
Nov  2 14:28:56 proxmox1 kernel: sd 7:0:0:0: [sdf] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Nov  2 14:28:56 proxmox1 kernel: sd 7:0:0:0: [sdf] 1048576000 512-byte hardware sectors (536871 MB)
Nov  2 14:28:56 proxmox1 kernel: sd 7:0:0:0: [sdf] Write Protect is off
Nov  2 14:28:56 proxmox1 kernel: sd 7:0:0:0: [sdf] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Nov  2 14:28:56 proxmox1 kernel: sdf: sdf1
Nov  2 14:28:56 proxmox1 kernel: sd 7:0:0:0: [sdf] Attached SCSI disk
Nov  2 14:28:56 proxmox1 kernel: sd 7:0:0:0: [sdf] 1048576000 512-byte hardware sectors (536871 MB)
Nov  2 14:28:56 proxmox1 kernel: sd 7:0:0:0: [sdf] Write Protect is off
Nov  2 14:28:56 proxmox1 kernel: sd 7:0:0:0: [sdf] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Nov  2 14:29:16 proxmox1 kernel: sd 7:0:0:0: [sdf] 1048576000 512-byte hardware sectors (536871 MB)
Nov  2 14:29:16 proxmox1 kernel: sd 7:0:0:0: [sdf] Write Protect is off
Nov  2 14:29:16 proxmox1 kernel: sd 7:0:0:0: [sdf] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Nov  2 14:29:34 proxmox1 kernel: sd 7:0:0:0: [sdf] 1048576000 512-byte hardware sectors (536871 MB)
Nov  2 14:29:34 proxmox1 kernel: sd 7:0:0:0: [sdf] Write Protect is off
Nov  2 14:29:34 proxmox1 kernel: sd 7:0:0:0: [sdf] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Nov  2 14:33:25 proxmox1 kernel: sd 7:0:0:0: [sdf] 1048576000 512-byte hardware sectors (536871 MB)
Nov  2 14:33:25 proxmox1 kernel: sd 7:0:0:0: [sdf] Write Protect is off
Nov  2 14:33:25 proxmox1 kernel: sd 7:0:0:0: [sdf] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
But, if i want to add a lvm group, i can't select anything in "Base Volume"!

With fdisk i can see the disk. I have also wipe the disklabel, but it's the same.
Has anybody experience with iscsi-targets under opensolaris?

pve ist uptodate (pve-manager/1.4/4390).

Udo
 
I can add the Volume, but in the storage list apears only n/a under "Used" and "Capacity".

that is expected behaviour.

But, if i want to add a lvm group, i can't select anything in "Base Volume"!

There is no 'Base Volume' setting. You need to set "Base Storage", and then select the volume group name.
 
Hi Dietmar,
Beginnerfailure...

but if i leave "Base Volume" empty and give an new name for the Storage and Volumegroup i got also an error:
Code:
Fehler: command '/sbin/vgchange -aly i1svg' failed with exit code 5

If i try a pvcreate form the console, i got an
Code:
pvcreate /dev/sdf
  Can't open /dev/sdf exclusively.  Mounted filesystem?

And the problem is multipath!
Code:
# fuser /dev/sdf
/dev/sdf:             4248
proxmox1:/etc/pve# ps aux | grep 4248
root      4248  0.0  0.0  85420  3572 ?        SLl  Oct30   0:10 /sbin/multipathd

Now its up to me to find how disable iscsidevices from multipath.

Thanks

Udo