From owner-freebsd-questions@FreeBSD.ORG Mon Apr 9 17:27:23 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2F5DA16A405 for ; Mon, 9 Apr 2007 17:27:23 +0000 (UTC) (envelope-from rmarella@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.235]) by mx1.freebsd.org (Postfix) with ESMTP id E392C13C48C for ; Mon, 9 Apr 2007 17:27:22 +0000 (UTC) (envelope-from rmarella@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1421484wxc for ; Mon, 09 Apr 2007 10:27:22 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:from:to:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type:content-transfer-encoding; b=tcuUEfd3AZhapjwHigc1FRTjZBTiA528nfwlhjij8b94u59BklBCd6gGGUroGWKGlyl4FGQUWl1zSfAVFd+cXVJhIgGQb3boWieA5PhKd6JnEHKC8cTgsGrzHr+NyjwqqrsO4X7prRf6WDVsHZulIkYiS1hcbGO3uAR0g1sWiXw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type:content-transfer-encoding; b=QcBZ4Pi2upkcXPb7N0YAQbXy+i2PfRsUNIGp0YBeh99c+IJXrq3XdXu0mGcAFyGwcp/2asV+qoizYjiumMKT9rN4w9tTmIrZZby+oi7+0OJ2qS22iCDXpT8K8YOuG7740T+7AVZIDvRf7k3X7H4//1xNjxgRfN24dvgHJcUm+uA= Received: by 10.90.92.7 with SMTP id p7mr4326672agb.1176139640406; Mon, 09 Apr 2007 10:27:20 -0700 (PDT) Received: from p4 ( [66.75.108.47]) by mx.google.com with ESMTP id 5sm702894nzk.2007.04.09.10.27.11; Mon, 09 Apr 2007 10:27:17 -0700 (PDT) Date: Mon, 9 Apr 2007 07:27:01 -1000 From: Robert Marella To: "Dave" , freebsd-questions@freebsd.org Message-ID: <20070409072701.0687c6cd@p4> In-Reply-To: <000501c7797b$961a9010$0200a8c0@satellite> References: <000501c778a1$769989b0$0200a8c0@satellite> <20070407124555.3243bbcb@p4> <000501c7797b$961a9010$0200a8c0@satellite> X-Mailer: Claws Mail 2.8.1 (GTK+ 2.10.11; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: Re: locking down scsi device id's in 6.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Apr 2007 17:27:23 -0000 On Sat, 7 Apr 2007 21:16:50 -0400 "Dave" wrote: (Format recovered: Please do not top post) > > > On Fri, 6 Apr 2007 19:15:27 -0400 > > "Dave" wrote: > > > >> Hello, > >> I've got a situation where three devices, one a scsi tape drive and > >> the other two ide burners under scsi emulation with atapicam are > >> fighting for scsi id's and i'd like to lock them down to specific > >> id's. When the tape drive isn't plugged in the burners get 000 and > >> 010 scsi ids, but when the tape goes in it takes 050 and the > >> burners are on bus2 200 and 210 respectively. I hope this makes > >> sense. I've been over loader and device.hints as well and i'm > >> lost. I'd appreciate any info on this. Thanks. > >> Dave. > >> > > > > Hello Dave > > > > Have you looked at man scsi (4) for the correct way to > > edit /boot/device.hints to wire down devices? > > > > > > HTH > > > > Robert > > Hello, > Yes i have. I am confused as to bus, target, and the values i'm > suppose to use. > Dave. Dave, Not only is top posting frowned upon on the FreeBSD lists you also removed -questions from your reply. I didn't even check my email over the weekend. Had you kept -questions in the loop you might have received an answer a lot sooner. Also, since I am wrong about as often as I am right you would probably received a better answer. That said, I will try to help. IMHO the easiest way to find the values is to boot with your SCSI tape drive connected. When you are up you can run "camcontrol devlist" without the quotes. This will show you the values. Example: at scbus1 target 0 lun 0 (cd1,pass1) at scbus1 target 1 lun 0 (cd0,pass0) You should use dmesg to find the controller for the SCSI. It will be something like AHC0. you can then use all of these values in "/boot/device.hints" as shown in man scsi. I hope this helps. Remember to keep the list in the email. The archives will then have the final solution for the next person who needs it or when I forget :-) Robert