From owner-freebsd-current@FreeBSD.ORG Sun May 24 19:21:50 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E54081065693 for ; Sun, 24 May 2009 19:21:50 +0000 (UTC) (envelope-from triosoft@triosoft.com.ua) Received: from a64.ic.uz.ua (a64.ic.uz.ua [212.1.100.5]) by mx1.freebsd.org (Postfix) with ESMTP id 9AB728FC13 for ; Sun, 24 May 2009 19:21:50 +0000 (UTC) (envelope-from triosoft@triosoft.com.ua) Received: from a64.ic.uz.ua with esmtp (Exim 4.69) (envelope-from ) id 1M8IdM-000BnT-RX for freebsd-current@freebsd.org; Sun, 24 May 2009 21:41:20 +0300 Received: from 94.179.103.64 (SquirrelMail authenticated user triosoft@triosoft.com.ua) by webmail.ic.uz.ua with HTTP; Sun, 24 May 2009 21:41:20 +0300 (EEST) Message-ID: <1d05d65670fbc0f7e84d8b42351c63aa.squirrel@webmail.ic.uz.ua> Date: Sun, 24 May 2009 21:41:20 +0300 (EEST) From: triosoft@triosoft.com.ua To: freebsd-current@freebsd.org User-Agent: SquirrelMail/1.4.15 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: ATA_STATIC_ID and AHCI bug or /dev/hands ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 May 2009 19:21:51 -0000 Hello! I found some odd behavior of ata device numbering. It seems, that there is no effect of option ATA_STATIC_ID in CURRENT. What I have: supermicro server with 4 sata ports onto Intel ICH7 SATA300 controller recent CURRENT sata mode in BIOS is Enhanced ahci support in BIOS in Enabled option ATA_STATIC_ID in KERNCONF So, if I boot with 4 HDD connected to sata i found ad4,ad6,ad8,ad10 as disks. but when I detach disk, which "was" ad8 in last case, and then reboot - I see ad4,ad6,ad8! and not ad4,ad6,ad10! atacontrol list doesn't show an empty ata channel. Only channels with HDDs connected. I check 6.x 7.x on the same server with _the same configuration in bios_ - and all works as suspected - there are empty ata channels, there are really static device numbers. when I set AHCI to Disabled I have just two ata channels (with AHCI - I have four, one for each sata disk) and with or without HDDs connected I see empty channels and have really static dev nums in the same CURRENT. So my question is - is it my fault? does I miss something? Or it is a bug? Yes ;) I know about glabel, but my setup is complicated enough without them ( gpart-ed disks with zfs-only setup) so I do not want to make it more complicated. And with such behavior I cannot add disks on the fly, if there is no empty ata channels. -- With best regards, AVR39-RIPE