[sheepdog-users] Gateway only triggers recovery

Liu Yuan namei.unix at gmail.com
Mon Jun 17 10:23:45 CEST 2013


On 06/14/2013 09:51 PM, Valerio Pachera wrote:
> Hi, I added a node ad gateway only
>   sheep -h /mnt/sheep/dsk01
> 
> I noticed it triggered the cluster ad if it was a "normal" node
> 
> # collie node recovery
> Nodes In Recovery:
>   Id   Host:Port         V-Nodes       Zone
>    0   192.168.6.41:7000      64  688302272
>    1   192.168.6.42:7000      64  705079488
>    3   192.168.6.44:7000      64  738633920
> 
> I think it should not do that, or is there a specific reason?
> 

The reason is for code simplicity. But indeed we shouldn't generate a
recovery event for gateway node joining.

> 
> 
> PS:
> another thing I find strange is:
> 
> # collie node info
> Id      Size    Used    Avail   Use%
>  0      2.3 TB  1.5 TB  814 GB   64%
>  1      2.3 TB  1.3 TB  995 GB   56%
>  2      0.0 MB  0.0 MB  0.0 MB    0%
>  3      2.3 TB  1.3 TB  1023 GB  55%
> Total   6.8 TB  4.0 TB  2.8 TB   59%
> 
> Why is is using id 2?
> Before id 2 was used by the disk that now is id 3.

The node index is recalculated every time and the value depend its
binary string of IP.

Thanks,
Yuan




More information about the sheepdog-users mailing list