From owner-freebsd-questions@freebsd.org Sat Apr 1 13:43:29 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 04E55D27B36 for ; Sat, 1 Apr 2017 13:43:29 +0000 (UTC) (envelope-from technical@at-hacker.in) Received: from mail.at-hacker.in (mail.at-hacker.in [82.146.54.71]) by mx1.freebsd.org (Postfix) with ESMTP id 69545D57 for ; Sat, 1 Apr 2017 13:43:28 +0000 (UTC) (envelope-from technical@at-hacker.in) Received: from [192.168.1.14] (unknown [46.242.11.161]) by mail.at-hacker.in (Postfix) with ESMTPSA id D497C2ADCE7 for ; Sat, 1 Apr 2017 16:43:10 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=at-hacker.in; s=mail; t=1491054190; bh=i9XzqpSRTbPOxxjesal4+U8/PnNnvgSJk9wgtE5RRIQ=; h=Subject:To:References:From:Date:In-Reply-To; b=d4AEhJ396i9jO2uenIqjbciiYqn0sVDU7jZqIeTbgzWtS/zEUZ1f2BBHE9+ISMkVl RoAwCzsYzArJqxkz+pDpWDkzl//t94KGxugq+Dc/lvDycwnnAgFKFYN5IOxZt3K7Gh XhMKMjlRpWy8LCMLNkJqjHYVWqzQDKJx0ACLaAqc= Subject: Re: Can't replace disk on LSI HBA To: freebsd-questions@freebsd.org References: <013e2507-dbc5-8d75-d68d-ac139ed0b0bb@at-hacker.in> <20170401151424.56b44a2c.freebsd@edvax.de> From: Alexey Pereklad Message-ID: <9682cbdf-6d9a-59c1-e836-0967a094534c@at-hacker.in> Date: Sat, 1 Apr 2017 16:41:06 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170401151424.56b44a2c.freebsd@edvax.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Apr 2017 13:43:29 -0000 Hi. The same thing -- after "camcontrol stop da16" all the disks detached :-( 01.04.2017 16:14, Polytropon пишет: > On Sat, 1 Apr 2017 15:42:09 +0300, Alexey Pereklad wrote: >> I have FreeBSD 11.0 (11.0-RELEASE-p1 #1 r312693) here. Trying to test >> hot disk replacement on LSI 9341-8i >> >> Put disk into offline state does not work: >> >> # MegaCli -pdoffline -physdrv\[29:23\] -a1 -NoLog >> Adapter: 1: Failed to change PD state at EnclId-29 SlotId-23. >> Exit Code: 0x01 >> >> I've tried to remove da9 device without putting it offline. Here is the >> log: >> >> # grep detach /var/log/messages >> >> Apr 1 14:31:02 dc1-nfs-06 kernel: da9: s/n >> WD-WMC6N0D3S29A detached >> Apr 1 14:31:03 dc1-nfs-06 kernel: ses0: detached >> Apr 1 14:31:03 dc1-nfs-06 kernel: da2: s/n >> WD-WMC5C0D72CZC detached >> Apr 1 14:31:03 dc1-nfs-06 kernel: da4: s/n >> WD-WMC5C0D18DVW detached >> Apr 1 14:31:03 dc1-nfs-06 kernel: da6: s/n >> WD-WMC5C0D366LH detached >> Apr 1 14:31:03 dc1-nfs-06 kernel: ses1: detached >> Apr 1 14:31:03 dc1-nfs-06 kernel: da11: s/n >> WD-WMC1P0F4DY9M detached >> Apr 1 14:31:03 dc1-nfs-06 kernel: ses0: detached >> Apr 1 14:31:03 dc1-nfs-06 kernel: da3: s/n >> WD-WMC5C0D20R1C detached >> Apr 1 14:31:03 dc1-nfs-06 kernel: s/n WD-WCC1P5ZVVPTD0): detached >> Apr 1 14:31:03 dc1-nfs-06 kernel: da7: s/n >> WD-WMC6N0D11C71 detached >> Apr 1 14:31:03 dc1-nfs-06 kernel: da15: s/n >> WD-WMC6N0D9F2KA detached >> Apr 1 14:31:03 dc1-nfs-06 kernel: da8: s/n >> WD-WMC6N0D3PJDS detached >> Apr 1 14:31:03 dc1-nfs-06 kernel: da10: s/n >> WD-WMC6N0E30R5D detached >> Apr 1 14:31:03 dc1-nfs-06 kernel: da12: s/n >> WD-WMC6N0D97TPZ detached >> Apr 1 14:31:58 dc1-nfs-06 kernel: ses0: detached >> Apr 1 14:31:58 dc1-nfs-06 kernel: da4: s/n >> WD-WMC5C0D18DVW detached >> Apr 1 14:31:58 dc1-nfs-06 kernel: da2: s/n >> WD-WMC5C0D72CZC detached >> Apr 1 14:31:58 dc1-nfs-06 kernel: da6: s/n >> WD-WMC5C0D366LH detached >> Apr 1 14:31:58 dc1-nfs-06 kernel: da8: s/n >> WD-WMC6N0D3PJDS detached >> Apr 1 14:31:58 dc1-nfs-06 kernel: ses1: detached >> Apr 1 14:31:58 dc1-nfs-06 kernel: da5: s/n >> WD-WCC1P5ZVVPTD detached >> Apr 1 14:31:58 dc1-nfs-06 kernel: da3: s/n >> WD-WMC5C0D20R1C detached >> Apr 1 14:31:58 dc1-nfs-06 kernel: da9: s/n >> WD-WMC1P0F4DY9M detached >> Apr 1 14:31:58 dc1-nfs-06 kernel: da7: s/n >> WD-WMC6N0D11C71 detached >> Apr 1 14:31:58 dc1-nfs-06 kernel: da10: s/n >> WD-WMC6N0E30R5D detached >> Apr 1 14:31:58 dc1-nfs-06 kernel: da12: s/n >> WD-WMC6N0D97TPZ detached >> Apr 1 14:31:58 dc1-nfs-06 kernel: da11: s/n >> WD-WMC6N0D9F2KA detached >> >> As you can see, all the drives has been detached. So is there any way to >> replase failed drives on FreeBSD with LSI HBAs without reboot? > Did you try to use "camcontrol"? As the devices are represented > to regular "da" devices to the system by the HBA, maybe you could > use "camcontrol stop" to detach the disk from the system prior > to physically removing it? Check "camcontrol devlist" for the > correct LUN of the disk you wish to replace. > > I haven't tested this approach, though. See "man camcontrol" for > details and examples. > >