use 1.6.0
Gridfs+replSet+sharding
After configuring, the config statu is bellow
==================================
> db.printShardingStatus()
--- Sharding Status ---
sharding version: { "_id" : 1, "version" : 3 }
shards:
{
"_id" : "shard0000",
"host" : "youku_imag/b05_mongodb.yoqoo:27017,b06_mongodb.yoqoo:
27017,b07_mongodb.yoqoo:27017",
"maxSize" : NumberLong( 10000 )
}
{
"_id" : "shard0001",
"host" : "youku_imag2/b08_mongodb.yoqoo:
27018,b09_mongodb.yoqoo:27018,b10_mongodb.yoqoo:27018",
"maxSize" : NumberLong( 4000 )
}
databases:
{ "_id" : "admin", "partitioned" : false, "primary" :
"config" }
{ "_id" : "youkufile", "partitioned" : true, "primary" :
"shard0000" }
youkufile.fs.chunks chunks:
{ "files_id" : { $minKey : 1 } } -->>
{ "files_id" : { $maxKey : 1 } } on : shard0000 { "t" : 1000, "i" :
0 }
============================================
But mongos log:
============================================
Mon Aug 9 17:10:42 [Balancer] dist_lock unlock: { _id: "balancer",
process: "b02_mongodb.yoqoo:1281344269:1804289383", state: 0, ts:
ObjectId('4c5fc60850bfd59f97871dbb'), when: new Date(1281345032959),
who: "b02_mongodb.yoqoo:1281344269:1804289383:Balancer:846930886",
why: "doing balance round" }
Mon Aug 9 17:10:43 [Balancer] dist_lock lock gotLock: 1 now: { _id:
"balancer", process: "b02_mongodb.yoqoo:1281344269:1804289383", state:
1, ts: ObjectId('4c5fc61250bfd59f97871dbc'), when: new
Date(1281345042997), who: "b02_mongodb.yoqoo:
1281344269:1804289383:Balancer:846930886", why: "doing balance
round" }
Mon Aug 9 17:10:43 [Balancer] *** start balancing round
Mon Aug 9 17:10:43 [Balancer] no availalable shards to take chunks
Mon Aug 9 17:10:43 [Balancer] no need to move any chunk
Mon Aug 9 17:10:43 [Balancer] *** end of balancing round
=============================================
when I execute:
mongofiles put MongoGridfsGet -h
10.102.251.22:30000 -d youkufile
error returned:
connected to:
10.102.251.22:30000
assertion: 9008 filemd5 failed
what means is it???
thanks.