Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Environment:

We are running multiple web, database, and application servers which usually share a pretty common installation (gentoo linux) and similar configuration in VMware ESXi 4. The differences are usually only some installed features or differing component versions. To create a new server, I usually choose the most similar (by features) running server, rsync a copy of it into freshly mounted filesystems, run grub, reconfigure and reboot.

Problem:

Over time this duplicates many on-disk data blocks which probably sums up to several 10's of gigabytes. I suppose if I could use a base system as template with the actual machines based on top of that, only writing changed blocks to some sort of "diff image", performance should improve (increased cache hit rate) and storage efficiency should increase (deduplicated storage space). This would be similar to what ESXi already supports for RAM deduplication (page sharing).

Question:

Is there any way to easily do this on ESXi 4? I already share the portage tree via NFS but this would not work for the rootfs.

share|improve this question

1 Answer 1

Not via ESX/i itself no - but you could choose to create your datastores on a SAN that does the dedupe itself of course.

share|improve this answer
    
What about shared disk images? I see I can set a scsi disk to shared mode in the vm setup. –  hurikhan77 May 19 '10 at 11:03
    
yes, but what's going to do the dedupe - it's not a function of ESX/i. –  Chopper3 May 19 '10 at 11:21
    
Well, we do not actually need a full dedupe, more sort of "incremental growth" would be sufficient. –  hurikhan77 Jun 3 '10 at 9:06
    
Well you can use 'Thin Provisioning' for your .vmdk's - basically you tell the VM that it has say 20GB but if it only uses 2GB then you only store 2GB, maybe this is what you want - be aware though that if you don't have enough space and the VM DOES want to use all 20GB then you can kill your VM. –  Chopper3 Jun 3 '10 at 9:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.