From owner-freebsd-questions@FreeBSD.ORG Fri Dec 19 17:53:53 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9EA9FE9 for ; Fri, 19 Dec 2014 17:53:53 +0000 (UTC) Received: from mail-ie0-x233.google.com (mail-ie0-x233.google.com [IPv6:2607:f8b0:4001:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6C63326D6 for ; Fri, 19 Dec 2014 17:53:53 +0000 (UTC) Received: by mail-ie0-f179.google.com with SMTP id rp18so1159604iec.10 for ; Fri, 19 Dec 2014 09:53:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsc.edu; s=ucsc-google; h=mime-version:date:message-id:subject:from:to:content-type; bh=q6imL7CjSLTaltZKjvLZpmq8pO35NV9AYfVJVL6DUn0=; b=cmhidMQTyOsGL40TFrBobLb6Ukiz5DWkk+c55N9z0HHzwVleCzQ+UN91fBQJRnB20R PP6BzEVxq9hKHY+V9FC8yJUt/3540hUL4QAm+8/OMA+5WGYkjR+uQTeooL32IuN26a+q wEtM/30LfnR5JDEbGNg9aaaCQQGL0UyLasDE4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=q6imL7CjSLTaltZKjvLZpmq8pO35NV9AYfVJVL6DUn0=; b=h4EBmc0uGwRPr8/vnacj+zH/5ocdBUALHReJ6O/gU4zscgwlKjDjccKVZma7+6UUmp DMX28+nawSfTQik11L2TelZfq2aandYAlsAlV6DMSvjOSXKYWGJkGBS0XwebOwP6J+4D JStsFFVefn1bakSw7DyszjgbRrr/KB04xJeIwVj8rOAHqZi+u+mMJbXftD7nZ9JU0r4k wgCs9WQS+aEVEc2yBsvVmyBv1GHnsN9yCWWsw1eOUNNyiyCETeXQhKqDcr+hoiSk6mzX Wfw2/NFQIp/5HNnI7KdOpJbc69AuYDqT5s+3uSEl028syeq+A5IN51/BVauKLJlRugCW uktQ== X-Gm-Message-State: ALoCoQmYEdBOuU7IyfcV42jvnx+aAvuSj+56Eu1WfRChAp/B+sPIJbQ2kGDNdCHoYcEnP3grneMa MIME-Version: 1.0 X-Received: by 10.50.25.166 with SMTP id d6mr4268405igg.41.1419011632733; Fri, 19 Dec 2014 09:53:52 -0800 (PST) Received: by 10.43.156.75 with HTTP; Fri, 19 Dec 2014 09:53:52 -0800 (PST) Date: Fri, 19 Dec 2014 09:53:52 -0800 Message-ID: Subject: mfiutil / foreign drives From: Tim Gustafson To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2014 17:53:53 -0000 I have a server with a 16-disk RAID controller. I have all the disks configured as RAID0 devices and then they are used to form a ZFS pool. One of my disks failed recently, and I swapped it out with a replacement. After that, mfiutil is showing the following: root@server: mfiutil -u 1 show drives mfi1 Physical Drives: 17 ( 0.0) ONLINE SATA E1:S0 18 ( 0.0) ONLINE SATA E1:S1 19 ( 0.0) UNCONFIGURED GOOD (FOREIGN) SATA E1:S4 21 ( 0.0) ONLINE SATA E1:S2 22 ( 0.0) ONLINE SATA E1:S3 23 ( 0.0) ONLINE SATA E1:S6 24 ( 0.0) ONLINE SATA E1:S7 When I try to do anything with the "foreign" drive, mfiutil reports: root@server: mfiutil -u 1 create raid0 E1:S4 mfiutil: Drive 19 is foreign I've tried to clear the foreign drive like this: root@server: mfiutil -u 1 foreign clear Are you sure you wish to clear ALL foreign configurations on mfi1? [y/N] y mfiutil: Command failed: Invalid parameter mfiutil: Failed to clear foreign configuration: Input/output error I even zero'd out the disk, like this: root@server: mfiutil -u 1 drive clear e1:s4 start That ran for several hours, but did not fix the "foreign" state of the drive. I even took the drive back out of the server, ran "dd if=/dev/zero of=/dev/whatever bs=1M count=1024" to overwrite the disk's partition table (and then some), and even that did not help. I installed the MegaCli port and was equally unsuccessful in fixing the problems. I've replaced drives in this server a dozen times over the years, and when it was a FreeBSD 9 box, it never once complained about foreign disks, despite the fact that this server has received a lot of hand-me-down disks over the years. This is the first disk I've had to replace since moving to FreeBSD 10, so I'm thinking that something changes between 9 and 10 to create this problem. Has anyone got any clues they can give me about how to get this disk configured to be a RAID-0 volume so that I can put it into the zpool? -- Tim Gustafson tjg@ucsc.edu 831-459-5354 Baskin Engineering, Room 313A