From owner-freebsd-bugs@FreeBSD.ORG Thu Sep 23 20:48:34 2010 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1926B106566B for ; Thu, 23 Sep 2010 20:48:34 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta03.westchester.pa.mail.comcast.net (qmta03.westchester.pa.mail.comcast.net [76.96.62.32]) by mx1.freebsd.org (Postfix) with ESMTP id B8C798FC12 for ; Thu, 23 Sep 2010 20:48:33 +0000 (UTC) Received: from omta07.westchester.pa.mail.comcast.net ([76.96.62.59]) by qmta03.westchester.pa.mail.comcast.net with comcast id AJpL1f0081GhbT853LbJTX; Thu, 23 Sep 2010 20:35:18 +0000 Received: from koitsu.dyndns.org ([98.248.41.155]) by omta07.westchester.pa.mail.comcast.net with comcast id ALbH1f00F3LrwQ23TLbHD7; Thu, 23 Sep 2010 20:35:18 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id D886A9B425; Thu, 23 Sep 2010 13:35:15 -0700 (PDT) Date: Thu, 23 Sep 2010 13:35:15 -0700 From: Jeremy Chadwick To: Shteryana Shopova Message-ID: <20100923203515.GA45830@icarus.home.lan> References: <201009221141.o8MBfugI024802@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-bugs@freebsd.org, mav@FreeBSD.org Subject: Re: bin/150723: bsnmpd(1): add knowledge of "ada" disks (ATA via SCSI CAM) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2010 20:48:34 -0000 On Thu, Sep 23, 2010 at 07:11:35PM +0300, Shteryana Shopova wrote: > I am seeing a similar problem with removable USB disks - libdevinfo(3) > reports that the name of the device is umass0 and as a result the disk > name da0 does not match the device entry. Thus I also see the same > "snmpd[3632]: disk_OS_get_disks: device 'da0' not in device list" > messages in the system log. In addition two entries are present for > the disk in the hrDeviceTable - > > hrDeviceDescr[57] = umass0: Kingston DataTraveler 2.0, clas > hrDeviceDescr[154] = da0: > > As I don't have an "ada" disk to test with, could you please show me > the output of > > #devinfo -v > #camcontrol devlist -v > > and also the complete output when walking the hrDeviceTable on your system. No problem. Due to the amount of output, I felt it'd be prudent to put them up on the web for easier review. Here you go: http://jdc.parodius.com/freebsd/150723/camcontrol.txt http://jdc.parodius.com/freebsd/150723/devinfo.txt http://jdc.parodius.com/freebsd/150723/snmpwalk.txt It's interesting that the adaX disks don't show up in devinfo. On a different system where ahci.ko and SCSI CAM *is not* in use, devinfo shows the disks (ad4 and ad6) under their appropriate ataX devices. Sadly I don't have any native SCSI (non-AHCI) systems, so I can't see if disks there appear correctly -- but from your experience, it sounds like they don't. Furthermore, it appears the FreeNAS folks also see this problem (scroll down near the bottom): http://sourceforge.net/apps/phpbb/freenas/viewtopic.php?f=57&t=1001 I'm adding mav@ to the CC list since he might have some ideas regarding the issue. It sounds like CAM(4) might not be doing something it should (maybe with devclass(9)? I'm just guessing). -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |