Debian – KVM guest storage difference with NBD and NFS

debiankvm-virtualizationnfs

I am setting up my own little private cloud for my own use maybe for a project or to. I am using linux kvm on debian 6. I have 3 servers 2 of them for compute nodes and 1 storage node. I would I have already installed kvm made a few test machines got my networking setup. I have 2 nics on each server 1 nic is for web traffic other nic is for network traffic.

My first Idea was to use NFS for storing the guest machines which can range in size, maybe 8gb maybe 100gb, it just depends. I was doing have heard of nbd before seems like it could work but I dont know what the performance differences are and if it will effect my enviroment, nfs looks like it will be easier to use.

Best Answer

NFS is pretty easy, and NFS4 makes things even better if you can leverage that. It's definitely easier than block-devices like NBD or iSCSI.

That said, block-devices should provide a bit of an edge over file-backed stores, though that's less true with NFS4 than it was with NFS3. Of the block-devices, I'd definitely with with iSCSI versus NBD because the toolchain and code-paths are much deeper and better tested, not to mention getting help with it is a lot easier as a result.

Related Topic