From owner-freebsd-virtualization@FreeBSD.ORG Thu Feb 19 15:41:36 2015 Return-Path: Delivered-To: freebsd-virtualization@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 D5FDC285 for ; Thu, 19 Feb 2015 15:41:36 +0000 (UTC) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [203.13.68.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8DA91769 for ; Thu, 19 Feb 2015 15:41:36 +0000 (UTC) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id 386ED28110C for ; Fri, 20 Feb 2015 01:41:33 +1000 (EST) X-Amavis-Modified: Mail body modified (using disclaimer) - iredmail.onthenet.com.au X-Virus-Scanned: amavisd-new at iredmail.onthenet.com.au Received: from iredmail.onthenet.com.au ([127.0.0.1]) by localhost (iredmail.onthenet.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IRQXIdfjYw9M for ; Fri, 20 Feb 2015 01:41:33 +1000 (EST) Received: from Peters-MacBook-Pro.local (c-76-126-65-88.hsd1.ca.comcast.net [76.126.65.88]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id 793362810BD; Fri, 20 Feb 2015 01:41:30 +1000 (EST) Message-ID: <54E60428.3090306@freebsd.org> Date: Thu, 19 Feb 2015 07:41:28 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Ashutosh Kumar Subject: Re: AHCI disks have same serial number on Bhyve References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2015 15:41:36 -0000 Hi Ashutosh, > FreeNAS uses disk serial number as identifier. We found that > on Bhyve all AHCI controllers return common disk serial number i.e. ‘123456’. > See attached screenshot. Due to this FreeNAS is not able to uniquely identify > an AHCI disk when encryption support is enabled. Kindly let us know if an > update to AHCI driver is in work to fix this issue. Known problem. The fix is to do what the virtio-blk emulation does, which is to use an md5 hash of the backing file/device name, and improve on that with an optional override similar to how MAC addresses are handled. It's on the todo list. later, Peter.