Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

iSCSI initiator problems



I have a NetBSD/amd64 5.0 host running Xen 3.3.1 dom0 and I'd like to connect to my iSCSI target (Debian 5.0 with IET) in order to start my domUs. I'd like to make all disks available as /dev/iscsi/virtualhostNN.

I've installed pkgsrc/devel/netbsd-iscsi-initiator but I can't figure out how to use it correctly. Can anyone give a working example of his setup?

In CentOS 5.2 (with some udev magic), I simply do

# iscsiadm -m discovery -t sendtargets -p 172.16.17.1
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost01
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost02
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost03
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost04
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost05
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost06
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost07
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost08
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost09
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost10
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost11
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost12
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost13
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost14
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost15
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost16
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost17
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost18
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost19
172.16.17.1:3260,1 iqn.2001-04.com.mydomain:virtualhost20

# /etc/init.d/iscsi restart

# ls /dev/iscsi/virtualhost*
/dev/iscsi/virtualhost01  /dev/iscsi/virtualhost08  /dev/iscsi/virtualhost15
/dev/iscsi/virtualhost02  /dev/iscsi/virtualhost09  /dev/iscsi/virtualhost16
/dev/iscsi/virtualhost03  /dev/iscsi/virtualhost10  /dev/iscsi/virtualhost17
/dev/iscsi/virtualhost04  /dev/iscsi/virtualhost11  /dev/iscsi/virtualhost18
/dev/iscsi/virtualhost05  /dev/iscsi/virtualhost12  /dev/iscsi/virtualhost19
/dev/iscsi/virtualhost06  /dev/iscsi/virtualhost13  /dev/iscsi/virtualhost20
/dev/iscsi/virtualhost07  /dev/iscsi/virtualhost14

# parted /dev/iscsi/virtualhost01 print

Model: IET VIRTUAL-DISK (scsi)
Disk /dev/sds: 4295MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos


Home | Main Index | Thread Index | Old Index