[sheepdog-users] different size of sheepdog storage discs

Jens WEBER jweber at tek2b.org
Tue Jul 10 06:58:45 CEST 2012


> On Fri, Jul 06, 2012 at 01:09:09PM +0200, Jens WEBER wrote:
> > > On Fri, Jul 06, 2012 at 11:44:23AM +0200, Jens WEBER wrote:
> > > > How I do that?
> > > 
> > > That -v <num> argument sets that number of vnodes, which balances how
> > > much data goes onto each node.  I'd really love to automate this based
> > > on statvfs or similar output, but that'll need some more work.
> > >
> > What is the number of vnodes? vnode = virtual guest / vnode = vdi disc image 
> / vnode = ?
> 
> Right now it's really just a relative unit - the default is 64, and by
> assigning more or less to a daemon you change it's weight.  I'd really
> love to make the correlate to actual storage capacity by default.
> 
> > Test setup, 2 sheep in different zones, 1 copy. I create a vdi size 1G. 
> collie node info show that the vdi is balanced between the two sheep.
> > collie vdi object test tell that vdi test is only on node 1 - ? How can I see 
> where my data is balanced in the cluster?
> 
> What were the exact test commands and the exact output?
> 
Test Setup:
SHEEPDOG_START_SEQUENCE="_1 _2"
SHEEPDOG_DEAMON_ARGS_1="-p 7000 -v 32 -z 1"
SHEEPDOG_DEAMON_ARGS_2="-p 7001 -v 32 -z 2"
SHEEPDOG_PATH_1="/var/lib/sheepdog/disc1"
SHEEPDOG_PATH_2="/var/lib/sheepdog/disc2"

root at sheep01:~# collie cluster format -c 1
using backend farm store
root at sheep01:~# collie node list
M   Id   Host:Port         V-Nodes       Zone
-    0   172.30.0.80:7000    	32          1
-    1   172.30.0.80:7001    	32          2
root at sheep01:~# collie node info
Id	Size	Used	Use%
 0	238 MB	0.0 MB	  0%
 1	238 MB	0.0 MB	  0%
Total	475 MB	0.0 MB	  0%

Total virtual image size	0.0 MB

now:

root at sheep01:~# collie vdi create -P test 400M
root at sheep01:~# collie node info
Id	Size	Used	Use%
 0	238 MB	200 MB	 84%
 1	238 MB	204 MB	 85%
Total	475 MB	404 MB	 85%

Total virtual image size	400 MB
# shows perfect balanced 50%/50%
root at sheep01:~# collie vdi object test
Looking for the inode object 0x7c2b25 with 2 nodes

172.30.0.80:7000 has the object (should be 1 copies)
172.30.0.80:7001 doesn't have the object
# vdi object says object only on node 0
root at sheep01:~# collie vdi tree
test---(you are here)
# means what
root at sheep01:~# collie vdi track test
Tracking the inode object 0x7c2b25 with 2 nodes

obj 807c2b2500000000 locations at epoch 1, copies = 1
---------------------------------------------------
172.30.0.80:7000
# like object only node 0
where can I see that test is spread over two nodes, specially node 0 and 1?
Thanks Jens



More information about the sheepdog-users mailing list