Cannot create Pool on discovered iSCSI targets

Edward Tomasz Napierała trasz at freebsd.org
Sat Apr 11 13:04:15 UTC 2015


On 0401T1054, Aafak Mohammad wrote:
> HI
> I have installed freebsd 10.1 and using iscsictl as initiator
> root at freebsd-10:~ # uname -a
> *FreeBSD freebsd-10.1 10.1-RC3* FreeBSD 10.1-RC3 #0 r273437: Tue Oct 21
> 23:55:15 UTC 2014
> root at releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC
> amd64
> root at freebsd-10:~ #
> Then i discovered iSCSI targate exist on Nexenta its connected and can see
> the devicenode in camcontrol devlist
> 
> *root at freebsd-10:~ # iscsictl -A -d 20.10.20.7 *
> root at freebsd-10:~ # iscsictl
> Target name                          Target portal    State
> iqn.1986-03.com.sun:02:b3031b28-29d1-40d5-9f02-a95a428d096e
> 20.10.20.7       Connected: da1
> root at freebsd-10:~ # iscsictl -v
> Session ID:       2
> Initiator name:   iqn.1994-09.org.freebsd:freebsd-10.1
> Initiator portal:
> Initiator alias:
> Target name:
> iqn.1986-03.com.sun:02:b3031b28-29d1-40d5-9f02-a95a428d096e
> Target portal:    20.10.20.7
> Target alias:
> User:
> Secret:
> Mutual user:
> Mutual secret:
> Session type:     Normal
> *Session state:    Connected*
> Failure reason:
> Header digest:    None
> Data digest:      None
> DataSegmentLen:   32768
> ImmediateData:    Yes
> iSER (RDMA):      No
> *Device nodes:     da1 *
> 
> *root at freebsd-10:~ # camcontrol devlist*
> <NECVMWar VMware IDE CDR10 1.00>   at scbus1 target 0 lun 0 (cd0,pass0)
> <VMware, VMware Virtual S 1.0>     at scbus2 target 0 lun 0 (da0,pass1)
> *<NEXENTA COMSTAR 1.0>              at scbus3 target 0 lun 0 (pass2,da1)*
> *root at freebsd-10:~ # zpool create pool1 /dev/da1*
> 
> getting hung........... making it as a kernel thread
> 
> *var/log/messages/*
> Apr  1 10:37:43 freebsd-10 kernel: WARNING: 20.10.20.7
> (iqn.1986-03.com.sun:02:b3031b28-29d1-40d5-9f02-a95a428d096e): connection
> error; reconnecting

First of all - do you see any errors on the target (Nexenta) side?
Second - instead of creating zpool, can you do some simple tests?
Do "diskinfo -t /dev/da1", "newfs /dev/da1", and 'fsck /dev/da1";
this will show you whether the basic functionality works.

If it does - try to set those in /boot/loader.conf:

vfs.zfs.vdev.trim_on_init=0
vfs.zfs.trim.enabled=0

then reboot and try to create zpool.



More information about the freebsd-scsi mailing list