Consider, if I'm not wrong, that unfortunately the Proxmox installer creates ZFS root file system setup so you have VM image file on it, so forget snapsthots at zfs level (you have to use qcow2 format for that, and then you will have a COW fs upon a COW filesystem...), so some ZFS features are not available in any case (i.e. snapshot and use zfssend for instance)Thanks, I can add another 16GB of memory to the server. I like the features of zfs so I'd prefer to use it.
Consider, if I'm not wrong, that unfortunately the Proxmox installer creates ZFS root file system setup so you have VM image file on it, so forget snapsthots at zfs level (you have to use qcow2 format for that, and then you will have a COW fs upon a COW filesystem...)
Consider, if I'm not wrong
I mean, with a ZFS bare metal installation if I create a VM with RAW disk I can't have snapshot, I need to create as qcow2 file type, so then the snapshot is done through qcow2 mechanisms and not zfs (I guess). If instead I install proxmox as ext4 and add storage as ZFS type, when I create a VM AFAIR zfs volumes are created, and those are snapshotted through ZFS features, and I can use zfs commands to create snapshot.Sorry, but you are totally wrong... Such ZFS setup is fully functional, so I do not really know what you talk about here.
root@prox02:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 424G 475G 96K /rpool
rpool/ROOT 417G 475G 96K /rpool/ROOT
rpool/ROOT/pve-1 417G 475G 417G /
rpool/swap 7.44G 482G 308M -
root@prox02:~#
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
raid1poolzfs 5.01G 26.2G 30K /raid1poolzfs
raid1poolzfs/vm-100-disk-1 5.01G 26.2G 5.01G - <------------------------------
rpool 5.37G 25.9G 144K /rpool
rpool/ROOT 1.25G 25.9G 144K /rpool/ROOT
rpool/ROOT/pve-1 1.25G 25.9G 1.25G /
rpool/swap 4.12G 30.0G 228K -
If you create qcow2 VMs you have snapshot, AFAIU is provided by qcow2 and not ZFS, that is what I meant about "not all zfs features available"Now I'm confused, so if i use 2 x 2TB drives + ZFS for the root file system I can't use snapshots?
What happens if one of the 2TB drives dies? Will things 'just work' or do I have to boot into rescue and fix things manually?
I
But I'm really a newbie on ZFS, and how Proxmox uses it, so any clarification is welcomed!
You just need to configure the ZFS pool in /etc/pve/storage.cfg - thats all.
Oh, didn't know about it, thanks!or just use the GUI. no missing feature here.
http://pve.proxmox.com/wiki/ZFS#Using_ZFS_Storage_Plugin_via_Proxmox_VE_GUI
Even more confused! There is already a pool, "rpool", how can I create one more? Something like "zpool create tank" needs to specify one or more disks, should I specify the same disks already used by "rpool"? Could you please provide a sample, because telling a newbie general stuff without a concrete example is almost useless Thanks a lotI suggest you create a new pool for this (via CLI)
Now I've got it and thanks, works (this way if I select that storage a ZVOL is created for each disk, great!). But now I've 3 more questions: a) why should I create a new file system instead of using one of the already available? (and in doing so, which one is better among "rpool", "rpool/ROOT" or "rpool/ROOT/pve-1"?) b) I find the GUI misleading with the field "ZFS poool" while a "ZFS File System" is required instead. 3) why not having the installer set it up by default? I think using the FS and not ZVOL has only disadvantages, or am I wrong? (in any case I will edit the wiki about this topic as soon as I will have some free time).Sorry, I meant you can create a new file system inside your rpool.
> zfs create rpool/zfsdisks
now, you can add "rpool/zfsdisk" via GUI.
or just use the GUI. no missing feature here.
http://pve.proxmox.com/wiki/ZFS#Using_ZFS_Storage_Plugin_via_Proxmox_VE_GUI