From owner-freebsd-scsi@FreeBSD.ORG Fri Jun 24 23:58:30 2011 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6944E106564A for ; Fri, 24 Jun 2011 23:58:30 +0000 (UTC) (envelope-from pz-freebsd-scsi@ziemba.us) Received: from ziemba.us (osmtp.ziemba.us [208.106.105.149]) by mx1.freebsd.org (Postfix) with ESMTP id 3F6398FC0C for ; Fri, 24 Jun 2011 23:58:29 +0000 (UTC) Received: from hairball.ziemba.us (localhost.ziemba.us [127.0.0.1]) by hairball.ziemba.us (8.14.4/8.14.4) with ESMTP id p5ONwTqM088266 for ; Fri, 24 Jun 2011 16:58:29 -0700 (PDT) (envelope-from pz-freebsd-scsi@ziemba.us) Received: (from mailnull@localhost) by hairball.ziemba.us (8.14.4/8.14.4/Submit) id p5ONwTSq088265 for freebsd-scsi@freebsd.org; Fri, 24 Jun 2011 16:58:29 -0700 (PDT) (envelope-from pz-freebsd-scsi@ziemba.us) X-Authentication-Warning: hairball.ziemba.us: mailnull set sender to pz-freebsd-scsi@ziemba.us using -f Received: (from news@localhost) by hairball.ziemba.us (8.14.4/8.14.4/Submit) id p5ONwTck088231 for treehouse-mail-freebsd-scsi@hairball.treehouse.napa.ca.us; Fri, 24 Jun 2011 16:58:29 -0700 (PDT) (envelope-from news) From: "G. Paul Ziemba" To: freebsd-scsi@freebsd.org Date: Fri, 24 Jun 2011 23:58:29 +0000 (UTC) Message-id: References: <4E04B7BC.6010707@dssgmbh.de> Errors-to: "G. Paul Ziemba" Subject: Re: making a predictable passX name X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: paul+usenet@w6yx.stanford.edu List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2011 23:58:30 -0000 bartsch@dssgmbh.de (Alfred Bartsch) writes: >Am 24.06.2011 16:57, schrieb G. Paul Ziemba: >> Is there another way to trigger on the attach/detach events for /dev/chX? >> Or a way to hard-wire assignment of the /dev/passX names? >> >You can achieve this behaviour via editing /boot/device.hints: >... ># SCSI tape peripherals ># >hint.scbus.0.at="mpt0" >hint.scbus.0.bus="0" ># ># Drive >hint.sa.0.at="scbus0" >hint.sa.0.target="4" >hint.sa.0.lun="0" >hint.pass.0.at="scbus0" >hint.pass.0.target="4" >hint.pass.0.lun="0" ># Changer >hint.ch.0.at="scbus0" >hint.ch.0.target="4" >hint.ch.0.lun="1" >hint.pass.1.at="scbus0" >hint.pass.1.target="4" >hint.pass.1.lun="1" ># >all You have to know is: >- - the SCSI driver (in our case mpt) with its associated bus number (0) >- - target and lun of drive and changer >it is then possible to freely choose a pass device number, in this example: >SCSI_ID 0:4:0 gets pass0 (drive), SCSI_ID 0:4:1 gets pass1 (changer) >changes take effect after reboot, HTH. Aha. I only looked at the man page for pass(4); I should have looked at scsi(4). Thanks! -- G. Paul Ziemba FreeBSD unix: 4:56PM up 41 days, 20:37, 32 users, load averages: 0.89, 0.77, 0.69