* Can't enable writeback
@ 2013-08-17 12:00 Nick Payne
2013-08-17 12:56 ` Gabriel de Perthuis
0 siblings, 1 reply; 3+ messages in thread
From: Nick Payne @ 2013-08-17 12:00 UTC (permalink / raw)
To: linux-bcache-u79uwXL29TY76Z2rM5mHXA
I've installed kernel 3.10.7 on Ubuntu 13.04 amd64, and bcache-tools
from
https://launchpad.net/~mighost/+archive/ppa/+build/4767454/+files/bcache-tools_1.0-1ppa1%7Eraring_amd64.deb.
I can create a bcache volume and mount and use it without any problems
using writethrough (120GB Intel 330 SSD caching a WD 2GB HDD), but when
I try to enable writeback:
sudo echo writeback > /sys/block/bcache0/cache_mode
it returns the error
bash: /sys/block/bcache0/cache_mode: No such file or directory
/sys/block/bcache0 exists as a link:
ls -l /sys/block/bc*
lrwxrwxrwx 1 root root 0 Aug 17 15:58 /sys/block/bcache0 ->
../devices/virtual/block/bcache0
Suggestions on how to enable writeback?
Nick Payne
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can't enable writeback
2013-08-17 12:00 Can't enable writeback Nick Payne
@ 2013-08-17 12:56 ` Gabriel de Perthuis
2013-08-17 21:39 ` Nick Payne
0 siblings, 1 reply; 3+ messages in thread
From: Gabriel de Perthuis @ 2013-08-17 12:56 UTC (permalink / raw)
To: linux-bcache-u79uwXL29TY76Z2rM5mHXA
> I try to enable writeback:
>
> sudo echo writeback > /sys/block/bcache0/cache_mode
>
> it returns the error
>
> bash: /sys/block/bcache0/cache_mode: No such file or directory
You're confusing bcache0 with bcache0/bcache
echo writeback |sudo tee -a /sys/block/bcache0/bcache/cache_mode
will work.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can't enable writeback
2013-08-17 12:56 ` Gabriel de Perthuis
@ 2013-08-17 21:39 ` Nick Payne
0 siblings, 0 replies; 3+ messages in thread
From: Nick Payne @ 2013-08-17 21:39 UTC (permalink / raw)
To: Gabriel de Perthuis; +Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA
On 17/08/13 22:56, Gabriel de Perthuis wrote:
>> I try to enable writeback:
>>
>> sudo echo writeback > /sys/block/bcache0/cache_mode
>>
>> it returns the error
>>
>> bash: /sys/block/bcache0/cache_mode: No such file or directory
> You're confusing bcache0 with bcache0/bcache
>
> echo writeback |sudo tee -a /sys/block/bcache0/bcache/cache_mode
>
> will work.
Thanks, that works. The command I was originally trying to use is what
is shown in the documentation at
http://evilpiepirate.org/git/linux-bcache.git/tree/Documentation/bcache.txt.
It has
# echo writeback > /sys/block/bcache0/cache_mode
as the command to run.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-08-17 21:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-17 12:00 Can't enable writeback Nick Payne
2013-08-17 12:56 ` Gabriel de Perthuis
2013-08-17 21:39 ` Nick Payne
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox