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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1

# /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