[sheepdog] [PATCH] add dog vdi object exist command to check which objects are lost.

Liu Yuan namei.unix at gmail.com
Thu May 22 15:33:30 CEST 2014


On Thu, May 22, 2014 at 09:30:01PM +0800, Liu Yuan wrote:
> On Thu, May 22, 2014 at 07:56:06PM +0800, Ruoyu wrote:
> > Sometimes we want to quickly check whether some of the vdi objects
> > or data objects are lost due to unexpected issue.
> > 
> > Although dog vdi check will do, it spends a lot of time because of
> > too many client-server communication. And the probability of
> > triggering data auto fixing is quite low since the writing process
> > is strong consistency.
> > 
> > Therefore, the new command check whether all the objects related to
> > the vdi are existed or not. It is fast because it submit the
> > batched object id only one time per node. I think this is enough
> > for the situation.
> > 
> > Usage: dog vdi object exist <vdiname>
> 
> This would be confusing with 'dog vdi object location'. I think
> 
> 'dog vdi check --light' is a better interface.

Seems 'vdi check --exist' is better. Overall the idea looks good to me.

Thanks
Yuan



More information about the sheepdog mailing list