From owner-freebsd-fs@freebsd.org Mon Nov 12 23:27:03 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B05B51126A22 for ; Mon, 12 Nov 2018 23:27:03 +0000 (UTC) (envelope-from tommyj27@gmail.com) Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E3DB889F68 for ; Mon, 12 Nov 2018 23:27:02 +0000 (UTC) (envelope-from tommyj27@gmail.com) Received: by mail-lf1-x135.google.com with SMTP id p17so7456805lfh.4 for ; Mon, 12 Nov 2018 15:27:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ySQIIU4vv7LFzzutV4FJeLAR8XPPi5/BaE/lRXkJL5g=; b=oAmvEnSt+J07CCoD4c0PC1g2uVwYiQe5jVuvr19zlz5FcMWM+ss9MK2shKmw7FNiec fFlZfMg85sgGN54gTjwg2O5x5ZD9/RmUq4dkf6vsk8jdY9fxCa8jluRE2wMwEBYLiw8/ VdYe1ZwU2kFM72+ipuH+FEynNz6KSKLRRbk0QLaBZX4sQXSmuCqPR4AKRNPI/lAx+Ff0 xagkXNXol8UF05N3Feyxd4zaJUZ3oQ324q8ptYZ+8kWdaw5bk7X1wfIdygpn3hK84WPN 3dcY6C2VivKSBJ1EAPyjTAyt+lpFbf8lu25ht0LiK1FDnHqNOCh+eBafNiltjYjx1F4Q FkZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ySQIIU4vv7LFzzutV4FJeLAR8XPPi5/BaE/lRXkJL5g=; b=H1IVBKz7upxjPFiAhDhrLC1yCS5v24GgGY8IlgGbihGPhnp7ufeTqzOx2ywmxN4WdL hAfn26mWm51/7NG3HOoOH00BZh0AOtAQktogErzu4ZTGeMMTwOM19tjLVKlUCq01K6sV AjSu1oHJzCgskdNlMHzVriGn6b0tnt4JvbfEUtJXEibEoAYpYUJYH+oZFXhlq3yLDdeF rezIgbjQUTgrvUL/52zXvHb3Xh1omtK2QFBMpWbDXsLblTnRgWAdIXf8Jq54ZjT4n5zE y78xQKxOX6mumzSll/c6UDvtlVmn4fdriQDlneO+am1fdMWLL94a4SSxfoxzbLui5Vvf NVSA== X-Gm-Message-State: AGRZ1gKmRjatOPLg6x85D3MzTp7SWVZtw6xZDSwtmBvscmpgow+Gz69E 4LEwnKTJ+zACIZryfwgeXiiDwC/e5shHR8edPQ== X-Google-Smtp-Source: AJdET5dxTeTvMnO78vdVVKbTNKQsxgEWJ3z7fU6CBqyulxh/sPqxSxo72zO5VbWRBu9ZMpbyjsE42vEJqA4PyUxzDRI= X-Received: by 2002:a19:9dd1:: with SMTP id g200mr1625176lfe.127.1542065221136; Mon, 12 Nov 2018 15:27:01 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Thomas Johnson Date: Mon, 12 Nov 2018 17:26:49 -0600 Message-ID: Subject: Re: mount zpool from a zfs volume To: wingairak@gmail.com Cc: freebsd-fs@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: E3DB889F68 X-Spamd-Result: default: False [-4.68 / 200.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.86)[-0.857,0]; RCVD_IN_DNSWL_NONE(0.00)[5.3.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-0.81)[ipnet: 2a00:1450::/32(-2.00), asn: 15169(-1.95), country: US(-0.09)] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2018 23:27:03 -0000 >From UPDATING... 20160129: Building ZFS pools on top of zvols is prohibited by default. That feature has never worked safely; it's always been prone to deadlocks. Using a zvol as the backing store for a VM guest's virtual disk will still work, even if the guest is using ZFS. Legacy behavior can be restored by setting vfs.zfs.vol.recursive=1. That said, I was using it with good results in 11.1. Not so much in 11.2; I get an immediate deadlock. My workaround on 11.2 has been to configure the zvol as an iscsi target and import it that way. If there is a better way, I would love to hear it too. On Mon, Nov 12, 2018 at 4:44 PM Robert Wing wrote: > > I want to import a zpool from a freebsd-zfs partition that is backed by a > zfs volume. Is this possible? The sequence of commands that result in > success are eluding me. > > gpart show: > => 40 33554352 zvol/zroot/vol GPT (16G) > 40 1024 1 freebsd-boot (512K) > 1064 984 - free - (492K) > 2048 2097152 2 freebsd-swap (1.0G) > 2099200 31453184 3 freebsd-zfs (15G) > 33552384 2008 - free - (1.0M) > > zfs list (relevant parts): > ... zroot datasets ... > zroot/vol 16.5G 367G 672M - > > I've tried 'zpool import' which produces no results, also tried explicitly > with the -d option. The results of this command lead me to believe that the > pool from the zfs volume is not being exported. > > I tried using 'zfs mount zroot/vol', failed with: operation not applicable > to datasets of this type. > > The zfs volume is the backer for a VM, this is what I'm trying to acheive: > 1) shutdown the VM > 2) import zpool from the VM > 3) make changes to the VM zfs datasets > 4) export the zpool > 5) re-boot the VM. > > Anyone point me in the direction of enlightenment? > > -Rob > _______________________________________________ > freebsd-fs@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"