From owner-freebsd-fs@freebsd.org Mon Nov 12 22:43:32 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 198CB1125CDA for ; Mon, 12 Nov 2018 22:43:32 +0000 (UTC) (envelope-from wingairak@gmail.com) Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) (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 BBBCF88D31 for ; Mon, 12 Nov 2018 22:43:30 +0000 (UTC) (envelope-from wingairak@gmail.com) Received: by mail-lf1-x132.google.com with SMTP id c16so7382886lfj.8 for ; Mon, 12 Nov 2018 14:43:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=yKsaoXgS6A/+DgC8/s6hnkLJ3ohSHKsJJlUlwAKQbo4=; b=PgF0lz4ENMmZnou37HxlHiEi/x/76oFPQJybZ5rDijp3VIvzxBr06wJEGlHjmp5g9W ZMSPd1HegG9k/1q+IV6awFIy9wQJjYhu574u1eX8LZMqJ1MDltzEK9bZbOB/ctp7PVId isZZ3KeMtAECucQnzOz3sMHagyOZ6n2jt2ZXdyGFb8DMfYzZGUUXexViK3JvvxcM3gUY pNpTu/QK7XCPAcDvMgHTs5JDXRvSTRwKcO+N+1Pf4j6l81EGZtiWF95SFZPw3gevO1u0 zzopqyvwR/yYv2GnL+4KaLU1Za6ZaYqZZBGTkEC7Rq7wUVv2OJpcZHJGynBM2UDxo2Pr Y3HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=yKsaoXgS6A/+DgC8/s6hnkLJ3ohSHKsJJlUlwAKQbo4=; b=tqbO3w57Ikwzq5eQtcQqdzvA3Zab9Cj7MKzUBMMKdh1JWkUCNXAawMG8K5gvV3WztL qA/SXpC8RFlkHP+gNJByKlN41zLtuamgNMHrcgpJeCnHcruDsy7dSC3WDFRmykrtWmqR bnUAnKABof7OWDf3hLVqPIVRl0Id2l2RsRgp8Vr+NBG8rFJ6ecZtfYQ0KLUcZ9Fjft0M k2DchQudbdmxI53ILPsl/BypMdexpZ6IzO9nu+6gIss86jZJDrwn96bVkXOzQjjPMwnZ UqRwiEA9dn9zD2+HYNQvKB81oQkyBWIQXuVBmJCazsxY6BFhN3IMKruFmgRqS0gJbukQ EJew== X-Gm-Message-State: AGRZ1gLw0w1P7Y8pcio1iZZQZ/BL30hyAQfcg/1BnsNOfKiO52695HBR HQdWIGVgwITtEwQYCj5YBbq6WAvZ5/cB+VfxQCZNTw== X-Google-Smtp-Source: AJdET5ch99ZoI5//C7lBhpSz4uEh9oh6iJniCDG3229XB4qg4i+8TeBEXgcAdMYqacssMTGwD7IHrPbe2wnzMcCPAOE= X-Received: by 2002:a19:d70f:: with SMTP id o15mr1731392lfg.134.1542062608974; Mon, 12 Nov 2018 14:43:28 -0800 (PST) MIME-Version: 1.0 From: Robert Wing Date: Mon, 12 Nov 2018 12:43:29 -0900 Message-ID: Subject: mount zpool from a zfs volume To: freebsd-fs@freebsd.org X-Rspamd-Queue-Id: BBBCF88D31 X-Spamd-Result: default: False [-4.68 / 200.00]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MIME_BASE64_TEXT(0.10)[]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.96)[-0.965,0]; 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]; IP_SCORE(-0.81)[ipnet: 2a00:1450::/32(-1.99), asn: 15169(-1.94), country: US(-0.09)]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2.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]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 22:43:32 -0000 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