From owner-freebsd-virtualization@freebsd.org Tue Feb 12 01:31:08 2019 Return-Path: Delivered-To: freebsd-virtualization@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 9E2D514EC227 for ; Tue, 12 Feb 2019 01:31:08 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (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 92D0E948C5 for ; Tue, 12 Feb 2019 01:31:07 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=Tq3zoTscfpMmo0DhmcldIPqgVOZf7samQ97AZFPTV30=; b=elPBPSF8LFZOJQMzzbdvWUac/7 AaGaL2E2CccgCve+53MQDUfN7WUuD2faRYYUdFRHAQ9XQeMYVXRRXme4t9IB0dkw7BDzCqRKGPIxL MVuqB2mbcRkBfSdLJpErJ4u/zfrC0kCEMbBC0Ta0aLC9YwBXDJOVADUA/N99u/8Oll6g=; Received: from vas by admin.sibptus.ru with local (Exim 4.91 (FreeBSD)) (envelope-from ) id 1gtMug-0004Yd-8H for freebsd-virtualization@freebsd.org; Tue, 12 Feb 2019 08:31:06 +0700 Date: Tue, 12 Feb 2019 08:31:06 +0700 From: Victor Sudakov To: "freebsd-virtua." Subject: Re: mounting/exporting/importing a zfs volume Message-ID: <20190212013106.GA16801@admin.sibptus.ru> References: <20190211170312.GA76683@admin.sibptus.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Victor Sudakov X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 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: Tue, 12 Feb 2019 01:31:08 -0000 --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Paul Webster wrote: > mdconfig -a -t vnode -f afaik Sorry, this does not work.=20 root@newserv:~ # mdconfig -a -t vnode /dev/zvol/zroot/vm/mail/disk0 mdconfig: /dev/zvol/zroot/vm/mail/disk0 is not a regular file There must be some other way. > once they are mounted you could dd them=20 Indeed, I can dd the volume to a regular file: dd if=3D/dev/zvol/zroot/vm/mail/disk0 of=3D/var/tmp/rawimage bs=3D1m conv= =3Dsparse and then work with the /var/tmp/rawimage (I can mdconfig it) but it's a was= te of disk space. --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --BXVAT5kNtrzKuDFl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJcYiHaAAoJEA2k8lmbXsY0QLMH/iW5PrO2MPjmAfn/i1QDpMkH DRgJghpPRteLGALikK9YHPdShRKvTCha8vFKtBTu59cwfmN1szFZX/NyPKU2VEby IDVCwvLkDlxjjnE45MZ7ejW/Zr50JPftX4IskY19dZz3cMUy+hLlOBm7DJAL6ojz /79kVTgJOrE6DLRlEeNEiHIP81x/BVx0s7WugCE+mjtCINlg4KXg+YCgwFF0qFQf ZpuFT0jTw8XIApKFpZ1MCj1d+gaAlmVdsxzXVLRUn7Ajal7zQkIO5vJGE0OqyVdF Wcv0qH425wRb7hlccImGgqo2rXlxdGLSheoCGBcxUP4ZE04RZ1BfRJJvOggEBKQ= =AmnU -----END PGP SIGNATURE----- --BXVAT5kNtrzKuDFl--