From owner-freebsd-questions@FreeBSD.ORG Wed Oct 3 22:52:04 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 469A116A477 for ; Wed, 3 Oct 2007 22:52:04 +0000 (UTC) (envelope-from lists@codeangels.com) Received: from mail.codeangels.com (mail.codeangels.com [80.238.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id A969513C4C1 for ; Wed, 3 Oct 2007 22:52:03 +0000 (UTC) (envelope-from lists@codeangels.com) Received: (qmail-ldap/ctrl 632 invoked from network); 3 Oct 2007 22:52:02 -0000 Received: from monkey.codeangels.com (HELO www.codeangels.com) (rlwlrx@[192.168.5.6]) (envelope-sender ) by monkey.codeangels.com (qmail-ldap-1.03) with SMTP for ; 3 Oct 2007 22:52:02 -0000 Message-ID: <4532.192.168.2.137.1191451922.squirrel@www.codeangels.com> Date: Thu, 4 Oct 2007 00:52:02 +0200 (CEST) From: "Kirill Ponazdyr" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/Codeangels_GEN MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal Subject: Re: SAN LUN masking and LUNs over 7 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lists@codeangels.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Oct 2007 22:52:04 -0000 Allright, Will answer myself. > a) FreeBSD never scan the LUNs on the san storage device if lun 0 is masked (hidden) there Apparently this is normal. http://lists.freebsd.org/pipermail/freebsd-scsi/2003-July/000363.html So I have to create "placeholder" slice on raid array with lun 0, this will not be used by any host for anything, just be there and visible to anyone as Read Only. > b) FreeBSD never scan any LUNs over lun 7 on the san storage device Two ways to change this: sysctl kern.cam.cam_srch_hi=1 This produces some wierd behaviour though, some of the raid arrays delivered hundreds of luns, even though they only had couple of them. Second, better and safer way: edit sys/cam/cam_xpt.c, adjust CAM_SCSI2_MAXLUN to maximum lun number you wish to scan by default. In our case: 32 Recompile Kernel. Kirill