Nexenta under KVM

kvm-virtualizationnexentazfs

I have an Ubuntu Server running KVM. I'd like to get the benefits of ZFS so I was thinking of installing a virtual machine under KVM running Nexenta (or NexentaStor), allowing that virtual machine to have raw access to a couple of physical hard disks, and then having it share its file system with NFS so that Ubuntu can access it.

I've never tried setting up KVM so that the virtual machine has access to physical drives. Does this sound feasible, and is there anything I need to watch out for? Has someone already documented something like this? Does Nexenta/ZFS function basically as well in the virtual environment as if they were running base bones? I can take a small performance hit, but I don't want it to not be as reliable because of the virtualization. Thanks.

Best Answer

Running Nexenta in a virtual environment is usually done as a strategy for consolidating existing storage. Say, for example, you had several iSCSI boxes that you wanted to bring under one management set and consolidate that storage into a contiguous namespace. You could run Nexenta in a VM and use the iSCSI initiator to connect to those various iSCSI targets in your infrastructure. You can then add those devices to a pool (even raid/mirror them for greater redundancy). Then you can carve up the storage in the pool and share it out however you like. I know that strategy works very well.