Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Feb 2019 08:31:06 +0700
From:      Victor Sudakov <vas@mpeks.tomsk.su>
To:        "freebsd-virtua." <freebsd-virtualization@freebsd.org>
Subject:   Re: mounting/exporting/importing a zfs volume
Message-ID:  <20190212013106.GA16801@admin.sibptus.ru>
In-Reply-To: <CADdqeiOQ=CoLPfB7f1uXG5yf9Ea86eKKQhMXGro-1xkNsLfnxg@mail.gmail.com>
References:  <20190211170312.GA76683@admin.sibptus.ru> <CADdqeiOQ=CoLPfB7f1uXG5yf9Ea86eKKQhMXGro-1xkNsLfnxg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Paul Webster wrote:
> mdconfig -a -t vnode -f <path> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190212013106.GA16801>