[sheepdog-users] clear object cache

Maxim Terletskiy terletskiy at emu.ru
Tue Aug 19 10:08:17 CEST 2014


Hi!

I'm using this settings:

-g -c 
zookeeper:10.255.255.251:2181,10.255.255.252:2181,10.255.255.253:2181,timeout=30 
-w dir=/mnt/sheep_objcache,size=112G,directio -y 172.16.0.14 -D 
/var/lib/sheepdog

So I need to remove all data from metadata dir and objcache dir?
rm -rf /var/lib/sheep/*
rm -rf /mnt/sheep_objcache/*



19.08.2014 10:58, Liu Yuan пишет:
> On Tue, Aug 19, 2014 at 08:41:08AM +0200, Valerio Pachera wrote:
>> 2014-08-19 5:57 GMT+02:00 Liu Yuan <namei.unix at gmail.com>:
>>
>>>> VMs were restarted and working now on other
>>>> hosts.
>>> 2. dog vdi cache flush xxx
>>> 3. dog vdi cache delete xxx
>>> Then you can restart your VM anywhere you like.
>> Wait, vm are running!
> Ah, yes, we can't flush the dirty cache back.
>
>> Even if Maxim shut them down is better not to flush the cache.
>> He probably get an inconsistent vdi!
>>
>> I would delete the whole metadata dir (and cache dir if elsewere).
>> Considering
>>
>> If sheep was running with these options on the disconnecter node
>>
>> sheep -n /var/lib/sheepdog,/mnt/sheep/0,/mnt/sheep1
>>
>> then
>>
>> rm -r /var/lib/sheepdog/*
>>
>> All the object in /mnt/sheep/0 and /mnt/sheep/1 are anyway going to be
>> reused.
> Sounds good.
>
> Yuan

-- 
С уважением,
Терлецкий Максим
ООО "ТБ"
+7(499)917-0115
http://www.emu.ru




More information about the sheepdog-users mailing list