From owner-freebsd-fs@FreeBSD.ORG Sun Dec 28 18:15:27 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1378B629 for ; Sun, 28 Dec 2014 18:15:27 +0000 (UTC) Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com [IPv6:2a00:1450:400c:c05::234]) (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 95ADF2850 for ; Sun, 28 Dec 2014 18:15:26 +0000 (UTC) Received: by mail-wi0-f180.google.com with SMTP id n3so20420621wiv.1 for ; Sun, 28 Dec 2014 10:15:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=6HIzF27w1Qvqjwkh4qJxQWfkXHICx2VIY+urIV/7NkA=; b=RwSU6H+J5uIVbNw04OsL24ZvPF7RoAUHECCoFebxbBAvrGsYvyJdjHiYz6H+PSjXH1 LrsN9vDVxA+o07HInLKLYFZtYwNXpx5JyVe4ImjHLJf7UqvYjRtguwiiyMMp8JwZfLco 2T2c1ry4PWPNl8vopfT00RerSY2pyVwkkNlI1WM2+yV0v07qK++v68IqeXIuI0eH8EiL DqzBhKDQkyZSaVEs11pe0XSaPUiwVplzisM5RZfvw2EjSj2FB8m5GDwY2iFXDIenTtY8 /q5uOMtWG+LYIDq3Xh4yXG9m49RnbnPVSffclgkMhHEVexUPFhwgX8YOUGZZKpEkLWEu wRSg== X-Received: by 10.180.23.104 with SMTP id l8mr81416780wif.64.1419790525011; Sun, 28 Dec 2014 10:15:25 -0800 (PST) Received: from [10.0.1.108] (cpc15-stav13-2-0-cust197.17-3.cable.virginm.net. [77.100.102.198]) by mx.google.com with ESMTPSA id l9sm36428888wic.21.2014.12.28.10.15.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 28 Dec 2014 10:15:23 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Subject: Re: ZFS: Mount partition from ZVOL with volmode=dev From: Paul Chakravarti In-Reply-To: <32BEFAB7-936E-42F0-AE75-FB978C13885C@gmail.com> Date: Sun, 28 Dec 2014 18:15:22 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <53312533-1A45-4BCF-9841-B9CA2E48578B@gmail.com> References: <91E1211B-7E84-472B-8098-630AE8C97251@gmail.com> <32BEFAB7-936E-42F0-AE75-FB978C13885C@gmail.com> To: freebsd-fs@freebsd.org X-Mailer: Apple Mail (2.1993) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2014 18:15:27 -0000 > > Sorry - I should have been clearer. The zvol shows up on the host > > system but the partitions aren=E2=80=99t exposed to geom. > > That's exactly what volmode=3Ddev does, if you want geom ones don't > specify volmode. OK, that make sense > > Using volmode=3Ddefault (geom - vfs.zfs.vol.mode=3D1) causes the = installer to fail > > when you try to create a UFS filesystem under bhyve - it is possible = to get > > round this by creating the partitions manually but my preference = would be to > > use volmode=3Ddev. >=20 > What error do you get? If you try a UFS install on a device with volmode=3Dgeom you get the = following error message (zfs install or creating partitions manually = outside the VM works fine): Error mounting partition /mnt: mount: /dev/vtbd0p2: Invalid argument This has been discussed on freebsd-virtualisation = (https://lists.freebsd.org/pipermail/freebsd-virtualization/2014-August/00= 2748.html) where they recommend setting volmode=3Ddev I actually think I have solved my immediate problem (though it is a bit = cumbersome)- if I create my template vol with volmode=3Ddev I can = send/recv a snapshot to create a clone with volmode=3Dgeom, mount the = partition on the host system and edit the contents, and then send/recv a = second clone with volmode=3Ddev. Thanks, Paul