[zfs-discuss] best practice to pass zfs volume to qemu/kvm

João Carlos Mendes Luís jonny at jonny.eng.br
Mon Feb 15 20:45:35 EST 2016


Create a small ZVOL (or just a local file, although the ZVOL may have a 
little better performance) just to hold the boot and Operating System, 
and mount everything else through CIFS.

That's what I do, and have done even before ZFS.


On 02/15/2016 09:02 PM, thibaut noah via zfs-discuss wrote:
> The problem here is i don't have any zvol, nor the place to create one 
> the size of my dataset, basically i have a 6tB dataset with only 220g 
> available, will i have to destroy it and copy/paste all the datas 
> again ? :/
>
> 2016-02-16 0:00 GMT+01:00 Alex Braunegg <alex.braunegg at gmail.com 
> <mailto:alex.braunegg at gmail.com>>:
>
>     When I create a zvol to pass to Xen I use the following:
>
>     /sbin/zfs create -s -b 128K -V <size>
>     <pool_name>/<zvol_parent>/<guest_name>/disk_sda
>
>     This creates:
>
>     /dev/zvol/<pool_name>/<zvol_parent>/<guest_name>/disk_sda
>
>     Which can be used in the Xen configuration
>
>     I then create a disk label on this zvol to make it useable:
>
>     /sbin/parted -s
>     /dev/zvol/<pool_name>/<zvol_parent>/<guest_name>/disk_sda mklabel
>     msdos
>
>     Hope this helps.
>
>     Best regards,
>
>     Alex
>
>     *From:*zfs-discuss [mailto:zfs-discuss-bounces at list.zfsonlinux.org
>     <mailto:zfs-discuss-bounces at list.zfsonlinux.org>] *On Behalf Of
>     *thibaut noah via zfs-discuss
>     *Sent:* Tuesday, 16 February 2016 9:50 AM
>     *To:* zfs-discuss at kopka.net <mailto:zfs-discuss at kopka.net>
>     *Cc:* zfs-discuss at list.zfsonlinux.org
>     <mailto:zfs-discuss at list.zfsonlinux.org>
>     *Subject:* Re: [zfs-discuss] best practice to pass zfs volume to
>     qemu/kvm
>
>     I created my pool with zpool create mirror disk 1 disk2 mirror
>     disk3 disk4.
>     I checked if i had something at /dev/zvol and nothing shows up
>
>     2016-02-15 23:37 GMT+01:00 thibaut noah <thibaut.noah at gmail.com
>     <mailto:thibaut.noah at gmail.com>>:
>
>     I didn't create a zvol, i just created my pool with all the disks
>     and put all my datas in it, can i create a zvol on top of it or
>     will i have to move datas to do this?
>
>     2016-02-15 23:28 GMT+01:00 Gregor Kopka <zfs-discuss at kopka.net
>     <mailto:zfs-discuss at kopka.net>>:
>
>     just hand /dev/zvol/<poolname>/<path to zvol> to your VM manager
>     and be done with it.
>
>     Gregor
>
>     Am 15.02.2016 um 23:21 schrieb thibaut noah via zfs-discuss:
>
>         Hello, i have a 6tB zfs volume and i'm looking for the best
>         way to pass it to my guest os (which is windows 10).
>
>         I read the oracle documentation
>         http://docs.oracle.com/cd/E19604-01/821-0406/usingzfswithvirtualdisks/index.html
>         but i'm not sure if this is the best way to do this.
>         My main concern is if i'll have to do manipulations every time
>         i want to fire the vm.
>         Would like some advice on this please
>
>         _______________________________________________
>
>         zfs-discuss mailing list
>
>         zfs-discuss at list.zfsonlinux.org
>         <mailto:zfs-discuss at list.zfsonlinux.org>
>
>         http://list.zfsonlinux.org/cgi-bin/mailman/listinfo/zfs-discuss
>
>
>
>
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss at list.zfsonlinux.org
> http://list.zfsonlinux.org/cgi-bin/mailman/listinfo/zfs-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.zfsonlinux.org/pipermail/zfs-discuss/attachments/20160215/f6e3048f/attachment-0001.html>


More information about the zfs-discuss mailing list