Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Apr 2015 15:04:09 +0200
From:      Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= <trasz@freebsd.org>
To:        Aafak Mohammad <aafak.mohammad@cloudbyte.com>
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: Cannot create Pool on discovered iSCSI targets
Message-ID:  <20150411130409.GA9711@brick.home>
In-Reply-To: <CAC5dOin5_c5u-rs-r9iCEs=2tBsLtv0EeVy1-gLfThEFEjVdww@mail.gmail.com>
References:  <CAC5dOin5_c5u-rs-r9iCEs=2tBsLtv0EeVy1-gLfThEFEjVdww@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 0401T1054, Aafak Mohammad wrote:
> HI
> I have installed freebsd 10.1 and using iscsictl as initiator
> root@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@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC
> amd64
> root@freebsd-10:~ #
> Then i discovered iSCSI targate exist on Nexenta its connected and can see
> the devicenode in camcontrol devlist
> 
> *root@freebsd-10:~ # iscsictl -A -d 20.10.20.7 *
> root@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@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@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@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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150411130409.GA9711>