Hi, all

 

As everyone known, the host id is the essential of sanlock. It identifies all the servers with different offset in the shared disk.

 

Could the host id be self-organization by the servers themselves ? In this condition, the manager node that generated the unique host id would be useless.

 

My thought lists here:

 

1.       Get the system uuid with dmidecode.  

 

2.       System uuid maps into a uint32 integer.

 

3.       Calculate the host id with the hash function with the uint32 integer. Hash function f(x) = value % MAX_HOST_ID

a)         Once the conflict occurs, choose its neighbor id.

b)         The detection of conflict can use the bitmap in the delta lease.

 

Is this idea feasibility?

 

Thank you.

 

Qi