From owner-freebsd-stable@FreeBSD.ORG Tue Jun 14 14:47:00 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A73B10656A3 for ; Tue, 14 Jun 2011 14:47:00 +0000 (UTC) (envelope-from alp@rsu.ru) Received: from mail.r61.net (mail.r61.net [195.208.245.249]) by mx1.freebsd.org (Postfix) with ESMTP id 00C138FC0A for ; Tue, 14 Jun 2011 14:46:59 +0000 (UTC) Received: from pyhalov.cc.rsu.ru (pyhalov.cc.rsu.ru [195.208.252.128]) (authenticated bits=0) by mail.r61.net (8.14.4/8.14.4) with ESMTP id p5EEDQeb073069 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT) for ; Tue, 14 Jun 2011 18:13:26 +0400 (MSD) (envelope-from alp@rsu.ru) Message-ID: <4DF76C86.2030101@rsu.ru> Date: Tue, 14 Jun 2011 18:13:26 +0400 From: Alexander Pyhalov User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.14) Gecko/20110306 Thunderbird/3.1.8 MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: boot0 bug? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2011 14:47:00 -0000 Hello. I have IBM blade, which is connected to EMC Clarion disk storage (2 FC adapters connected to 2 FC switches, so system sees 4 paths to storage). One lun is provided to the system. The problem is that FreeBSD doesn't boot randomly (at least 1 attempt from 5 boots is unsuccessful). The blade stalls and I see only blank screen. I've tried other operating systems - OpenIndiana b148 and Ubuntu 10.10 - each of them has booted perfectly 10 times without any issues. I don't see any messages from boot1 stage and system is logged in to EMC storage with only one path. When the system boots successfully, I can see on EMC Clarion that it is connected with all paths. I've tried to use boot0 from CURRENT - results are the same (boot fails randomly). How can I debug this issue? I have several FreeBSD servers with the same configuration which boot perfectly. I tried different tricks to to achieve normal boot and all of them worked randomly (or didn't work): some bios and FC adapter settings, labeling all 4.2BSD partitions as unused and so on. This time I noticed the following: if I leave my system stalling with blank screen for ten minutes or more, it boots successfully... Does someone have any ideas? Additional info: # uname -a FreeBSD fbsdhost-STABLE.mgmt.r61.net 8.2-STABLE FreeBSD 8.2-STABLE #2 r222809M: Tue Jun 7 12:35:22 MSD 2011 alp@os.test.rsu.ru:/usr/obj/usr/src-stable-8/sys/ibm-hs-21xm-vnet-amd64.releng-8.2 amd64 # camcontrol devlist -v scbus0 on isp0 bus 0: at scbus0 target 0 lun 0 (da0,sg0,pass0) at scbus0 target 1 lun 0 (da1,sg1,pass1) <> at scbus0 target -1 lun -1 () scbus1 on isp1 bus 0: at scbus1 target 0 lun 0 (da2,sg2,pass2) at scbus1 target 1 lun 0 (da3,sg3,pass3) <> at scbus1 target -1 lun -1 () scbus-1 on xpt0 bus 0: <> at scbus-1 target -1 lun -1 (xpt0) # gmultipath status Name Status Components multipath/fbsdhost-STABLE N/A da0 da1 da2 da3 # gpart show => 63 33554367 multipath/fbsdhost-STABLE MBR (16G) 63 33543657 1 freebsd [active] (16G) 33543720 10710 - free - (5.2M) => 0 33543657 multipath/fbsdhost-STABLEs1 BSD (16G) 0 16 - free - (8.0k) 16 18863577 1 !0 (9G) 18863593 4194304 2 freebsd-swap (2.0G) 23057897 2097152 4 !0 (1.0G) 25155049 8388608 5 !0 (4.0G) # boot0cfg -v /dev/multipath/fbsdhost-STABLE # flag start chs type end chs offset size 1 0x80 0: 1: 1 0xa5 39:254:63 63 33543657 version=2.0 drive=0x80 mask=0xf ticks=182 bell=# (0x23) options=packet,update,nosetdrv volume serial ID 9090-9090 default_selection=F1 (Slice 1) # df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/multipath/fbsdhost-STABLEs1a 9129786 517594 7881810 6% / devfs 1 1 0 100% /dev /dev/multipath/fbsdhost-STABLEs1d 1012974 12 931926 0% /tmp /dev/multipath/fbsdhost-STABLEs1e 4058062 2902 3730516 0% /var -- Best regards, Alexander Pyhalov, system administrator of Computer Center of Southern Federal University