Date: Wed, 26 Sep 2012 19:02:37 +0300 From: Nikolay Denev <ndenev@gmail.com> To: Chuck Tuffli <ctuffli@gmail.com> Cc: "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org> Subject: Re: CAM Target Layer, Linux and camcontrol readcap Message-ID: <0546BF68-44E0-4048-AA70-2BD4F707AE06@gmail.com> In-Reply-To: <CAKAYmMJrDKpu_wBtpywEmgaCRhdh2th_wrjHzZP26FDSGtui8g@mail.gmail.com> References: <057A94AC-3CBC-4E91-8816-74EE2E4C8420@gmail.com> <CAKAYmMJrDKpu_wBtpywEmgaCRhdh2th_wrjHzZP26FDSGtui8g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sep 26, 2012, at 5:29 PM, Chuck Tuffli <ctuffli@gmail.com> wrote: > On Wed, Sep 26, 2012 at 1:33 AM, Nikolay Denev <ndenev@gmail.com> = wrote: >> Hi, >>=20 >> I'm running RELENG_9 and I'm trying to play with CTL. >> Initially I've setup an isp(4) interface in TARGET mode and tried to = export a LUN to a directly connected >> Linux RHEL host, but for some reason that failed with the block = backend (ramdisk was exported properly) : >>=20 >> This is how I export the volume : >>=20 >> zfs create -V1000G tank/oracle >> ctladm create -b block -o file=3D/dev/zvol/tank/oracle -S = ZFSSERIAL001 -d ZFSLUN001 >> ctladm port -o on >> ctladm realsync off >=20 > This is similar to what I do, but you might try turning off realsync > before turning the port on and only turning on the FC ports. I.e. >=20 > ctladm realsync off > ctladm port -o on -t fc >=20 > If that doesn't help, it would be interesting to see if something is = stuck via >=20 > ctladm dumpooa >=20 > ---chuck I've did ctladm dumooa : Dumping OOA queues LUN 0 tag 0x000d RTR: SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 = (91807313 ms) LUN 0 tag 0x0011 BLOCKED: READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 = (35411180 ms) LUN 0 tag 0x0012 BLOCKED: READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 = (35228663 ms) LUN 0 tag 0x0013 BLOCKED: START STOP UNIT. CDB: 1b 0 0 0 1 0 (34721150 = ms) OOA queues dump done And if I'm reading this right the other commands blocked because of the = sync cache. I will try now to set realsync to off before enabling the ports and = retest. Thanks for the suggestions!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0546BF68-44E0-4048-AA70-2BD4F707AE06>