[sheepdog-users] problem with cluster recover

Valerio Pachera sirio81 at gmail.com
Wed Mar 13 11:56:10 CET 2013


2013/2/27 MORITA Kazutaka <morita.kazutaka at gmail.com>:
> I think you can recover cluster correctly with the latest master
> branch.

Is it version 0.5.5_186_gf9c15bc ?
I just updated sheepdog and I'm running
  QEMU emulator version 1.3.50, Copyright (c) 2003-2008 Fabrice Bellard

I've been repeating the same test but it didn't give good resaults.
I attached a file with the info.

Thank you.
-------------- next part --------------



Before shutting down the cluster (4 nodes) e run sheep only on 3 nodes.

collie vdi list
  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
  win2003      0   60 GB  3.4 GB  0.0 MB 2013-03-06 15:01    64c5e     3              
  wheezy       0   10 GB  1.8 GB  0.0 MB 2013-03-06 15:06   9533ed     3              
s squeeze      1   10 GB  1.7 GB  0.0 MB 2013-03-06 14:47   a34c67     3              
s squeeze      2   10 GB  188 MB  1.6 GB 2013-03-13 09:51   a34c68     3              
s squeeze      3   10 GB  180 MB  1.6 GB 2013-03-13 09:53   a34c69     3              
  squeeze      0   10 GB  212 MB  1.6 GB 2013-03-13 09:54   a34c6a     3 

---
Sheep is now running only on 3 nodes (sheepdog004 is off).


collie  cluster info
Cluster status: Waiting for other nodes to join cluster

Cluster created at Wed Mar  6 14:45:58 2013

Epoch Time           Version
2013-03-12 15:40:07      3 [192.168.2.41:7000, 192.168.2.42:7000, 192.168.2.43:7000, 192.168.2.44:7000]
1970-01-01 01:00:00      2 []
2013-03-06 14:45:59      1 [192.168.2.41:7000, 192.168.2.42:7000, 192.168.2.43:7000, 192.168.2.44:7000]

---

collie  cluster recover force

---

collie node recovery
Nodes In Recovery:
  Id   Host:Port         V-Nodes       Zone
   0   192.168.2.41:7000      50  688040128
   1   192.168.2.42:7000      50  704817344
   2   192.168.2.43:7000      92  721594560

---

collie  cluster info
Cluster status: running

Cluster created at Wed Mar  6 14:45:58 2013

Epoch Time           Version
2013-03-13 11:26:38      4 [192.168.2.41:7000, 192.168.2.42:7000, 192.168.2.43:7000]
2013-03-12 15:40:07      3 [192.168.2.41:7000, 192.168.2.42:7000, 192.168.2.43:7000, 192.168.2.44:7000]
2013-03-10 00:10:35      2 [192.168.2.41:7000, 192.168.2.43:7000, 192.168.2.44:7000]
2013-03-06 14:45:59      1 [192.168.2.41:7000, 192.168.2.42:7000, 192.168.2.43:7000, 192.168.2.44:7000]

---
NOTE: node 2 is not showing the same vdi

collie vdi list

sheepdog001
  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
  win2003      0   60 GB  3.4 GB  0.0 MB 2013-03-06 15:01    64c5e     3              
  wheezy       0   10 GB  1.8 GB  0.0 MB 2013-03-06 15:06   9533ed     3              
s squeeze      1   10 GB  1.7 GB  0.0 MB 2013-03-06 14:47   a34c67     3              
s squeeze      2   10 GB  188 MB  1.6 GB 2013-03-13 09:51   a34c68     3              
s squeeze      3   10 GB  180 MB  1.6 GB 2013-03-13 09:53   a34c69     3              
  squeeze      0   10 GB  212 MB  1.6 GB 2013-03-13 09:54   a34c6a     3     


sheepdog002
  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
  win2003      0   60 GB  3.4 GB  0.0 MB 2013-03-06 15:01    64c5e     3              
s squeeze      2   10 GB  188 MB  1.6 GB 2013-03-13 09:51   a34c68     3              
s squeeze      3   10 GB  180 MB  1.6 GB 2013-03-13 09:53   a34c69     3   


sheepdog003
  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
  win2003      0   60 GB  3.4 GB  0.0 MB 2013-03-06 15:01    64c5e     3              
  wheezy       0   10 GB  1.8 GB  0.0 MB 2013-03-06 15:06   9533ed     3              
s squeeze      1   10 GB  1.7 GB  0.0 MB 2013-03-06 14:47   a34c67     3              
s squeeze      2   10 GB  188 MB  1.6 GB 2013-03-13 09:51   a34c68     3              
s squeeze      3   10 GB  180 MB  1.6 GB 2013-03-13 09:53   a34c69     3              
  squeeze      0   10 GB  212 MB  1.6 GB 2013-03-13 09:54   a34c6a     3   

---
collie vdi object squeeze

sheepdog001
Looking for the inode object 0xa34c6a with 3 nodes
192.168.2.41:7000 has the object (should be 3 copies)
192.168.2.42:7000 doesn't have the object
192.168.2.43:7000 has the object (should be 3 copies)

sheepdog002
Looking for the inode object 0xa34c69 with 3 nodes
192.168.2.41:7000 has the object (should be 3 copies)
192.168.2.42:7000 has the object (should be 3 copies)
192.168.2.43:7000 has the object (should be 3 copies)

sheepdog003
Looking for the inode object 0xa34c6a with 3 nodes
192.168.2.41:7000 has the object (should be 3 copies)
192.168.2.42:7000 doesn't have the object
192.168.2.43:7000 has the object (should be 3 copies)

---
collie vdi object win2003

sheepdog001
Looking for the inode object 0x64c5e with 3 nodes
192.168.2.41:7000 has the object (should be 3 copies)
192.168.2.42:7000 has the object (should be 3 copies)
192.168.2.43:7000 has the object (should be 3 copies)

sheepdog002
Looking for the inode object 0x64c5e with 3 nodes
192.168.2.41:7000 has the object (should be 3 copies)
192.168.2.42:7000 has the object (should be 3 copies)
192.168.2.43:7000 has the object (should be 3 copies)

sheepdog003
Looking for the inode object 0x64c5e with 3 nodes
192.168.2.41:7000 has the object (should be 3 copies)
192.168.2.42:7000 has the object (should be 3 copies)
192.168.2.43:7000 has the object (should be 3 copies)

---
collie vdi object wheezy

sheepdog001
Looking for the inode object 0x9533ed with 3 nodes
192.168.2.41:7000 has the object (should be 3 copies)
192.168.2.42:7000 doesn't have the object
192.168.2.43:7000 has the object (should be 3 copies)

sheepdog002
VDI not found

sheepdog003
Looking for the inode object 0x9533ed with 3 nodes
192.168.2.41:7000 has the object (should be 3 copies)
192.168.2.42:7000 doesn't have the object
192.168.2.43:7000 has the object (should be 3 copies)



More information about the sheepdog-users mailing list