From owner-freebsd-fs@FreeBSD.ORG Thu May 6 22:27:03 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D1AC21065670 for ; Thu, 6 May 2010 22:27:03 +0000 (UTC) (envelope-from dnewman@networktest.com) Received: from mail3.networktest.com (mail3.networktest.com [69.55.234.60]) by mx1.freebsd.org (Postfix) with ESMTP id B5BDA8FC0A for ; Thu, 6 May 2010 22:27:03 +0000 (UTC) Received: from localhost (localhost [69.55.234.60]) by mail3.networktest.com (Postfix) with ESMTP id 3D3B59592D for ; Thu, 6 May 2010 15:10:09 -0700 (PDT) Received: from mail3.networktest.com ([69.55.234.60]) by localhost (mail3.networktest.com [69.55.234.60]) (amavisd-maia, port 10024) with ESMTP id 95081-03 for ; Thu, 6 May 2010 15:10:09 -0700 (PDT) Received: from dhcp130.eng.networktest.com (ns.networktest.com [216.240.60.130]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: dnewman@networktest.com) by mail3.networktest.com (Postfix) with ESMTPSA id 0DD21958C9 for ; Thu, 6 May 2010 15:10:09 -0700 (PDT) Message-ID: <4BE33E40.6080905@networktest.com> Date: Thu, 06 May 2010 15:10:08 -0700 From: David Newman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Aligning VMware VMFS on ZFS X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2010 22:27:03 -0000 Greetings. I am trying to use 8.0-RELEASE, ZFS and the istgt port as an iSCSI target for VMware ESX virtual machines. A vSphere client (the management box that looks after VMware hosts and VMs) sees the target just fine, but the FreeBSD machine returns alignment error messages like these after the vSphere box formats a VMFS datastore: May 6 14:29:15 bettini kernel: GEOM: zvol/tank/bettini0: partition 1 does not start on a track boundary. May 6 14:29:15 bettini kernel: GEOM: zvol/tank/bettini0: partition 1 does not end on a track boundary. These errors occur only after formatting the VMFS datastore from the VMware vSphere 4 client. The errors occur on bootup and on restarting istgt. Steps I've already tried: - using this guide for ZFS setup: http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/RAIDZ1 - rebuilding so that ZFS partition starts on block 128 and ZFS partition size is a multiple of 512 and 8192, e.g.: bettini# gpart show da0 => 34 1953103805 da0 GPT (931G) 34 94 1 freebsd-boot (47K) 128 1944584192 2 freebsd-zfs (927G) 1944584320 8388608 3 freebsd-swap (4.0G) 1952972928 130911 - free - (64M) - defining different volume sizes in ZFS ranging from 512G to 2T. I'm currently using a 1-Tbyte ZFS filesystem as the iSCSI target. (There are 8 disks using raidz1 on this system, so available space is much higher than the 927G shown above.) - contacted the maintainer of istgt port, who suggests a possible VMFS and GEOM problem such as GEOM not recognizing the VMFS format. Thanks in advance for clues on getting VMFS aligned on ZFS. dn