martedì 21 dicembre 2010

NFS and VMware ESX

ehy..

Who use a Linux machine as a repository for vmware?
I try it for a LAB environment. I create a LVM logical volume and than I share it through NFS. I connect it to the ESX and than I try to create a VM. On NFS datastore you cannot create a thin disk, but just thick disk!
I use RedHat Ent 5.5 with local disk formatted in ext3 filesystem.

I create a machine with 4GB HDU and all goes fine. Than I want to create a 40GB vm: Error.!
Oh.....
What's that?

After a little brain storming with me and I.... I find the problem: I create the ext3 filesystem with the default block size : mke2fs -j /dev/...
With this command the filesistem use the default block size 1024 and a max file size 16GB. A VM with a 16GB hdu is too little.

For resolution I reformat the filesystem with the command mke2fs -b 4096 -j /dev/... and now I can create a file of 2TB!!!

Remember the option when you want a repository for a VM.

aLex