[tahoe-dev] Rebalancing shares?

Humberto Ortiz-Zuazaga humberto at hpcf.upr.edu
Fri May 8 20:14:10 UTC 2009



Zooko Wilcox-O'Hearn wrote:
> On May 8, 2009, at 4:58 AM, Humberto Ortiz-Zuazaga wrote:
> 
>> I created a test grid at the office, and some files I uploaded are  
>> only
>> stored on 1 server (it was the first one up).
>>
>> Is there a way to rebalance those files now?
> 
> Ticket #699 (optionally rebalance during repair or upload) is to  
> implement this.  In the meantime there are a few ways you can do it  
> manually:
> 
>   * cd into the storage server's storage directory and remove all but  
> three of the shares and then repair.  Those three will stay on that  
> server and the others will go to other servers.

That worked perfectly. Sample file storage index 7h62fkbotvic3b6w2pqh4v7tla

$ ls -l .tahoe/storage/shares/7h/7h62fkbotvic3b6w2pqh4v7tla
total 343080
-rw------- 1 humberto humberto 35150340 May  1 15:16 0
-rw------- 1 humberto humberto 35150340 May  1 15:16 1
-rw------- 1 humberto humberto 35150340 May  1 15:16 2
-rw------- 1 humberto humberto 35150340 May  1 15:16 3
-rw------- 1 humberto humberto 35150340 May  1 15:16 4
-rw------- 1 humberto humberto 35150340 May  1 15:16 5
-rw------- 1 humberto humberto 35150340 May  1 15:16 6
-rw------- 1 humberto humberto 35150340 May  1 15:16 7
-rw------- 1 humberto humberto 35150340 May  1 15:16 8
-rw------- 1 humberto humberto 35150340 May  1 15:16 9

$ rm .tahoe/storage/shares/7h/7h62fkbotvic3b6w2pqh4v7tla/[56789]

Then check and repair.

The 5 deleted shares are now distributed across the servers.




More information about the tahoe-dev mailing list