[sheepdog] [PATCH v3 05/10] sheep: store the VDI copies data in disk in case of sheep restarts

Liu Yuan namei.unix at gmail.com
Tue Aug 7 14:24:01 CEST 2012


On 08/07/2012 07:20 PM, levin li wrote:
> If we only store the copies data in memory, then after restart the
> copies data is lost, and we can only try to read the inode data to
> get the copies data, which is expensive

Is this really necessary? We need a lot of code to manage the local vdi copy number.
This code open a window that we need a lot of more code to do it right:
 - should also handle vdi deletion on EVERY node.
 - should maintain the consistency of local vdi cp_nr against cluster. For e.g, after
restart, some vdi has already been deleted when the node is down, how do you handle it?

I don't like this idea, it seems that bring much more trouble than it solves.

-- 
thanks,
Yuan



More information about the sheepdog mailing list