linux-bcache.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Detaching a cachine device
@ 2013-09-15 15:07 Rolf Fokkens
       [not found] ` <5235CD22.8000507-6w2rdlBuEQTpMFipWq+H6g@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Rolf Fokkens @ 2013-09-15 15:07 UTC (permalink / raw)
  To: linux-bcache-u79uwXL29TY76Z2rM5mHXA

Hi,

I'm probably overlooking the obvious, but (as part of a test) I want to 
replace my caching device with a bigger one. So I think the first step 
should to detach the current caching device. I can find instructions 
about detaching a backing device, but that's not wat I want (the backing 
device holds the (slow) data, the important data). I can't figure out 
though how to detach a caching the device.

Any suggestions would be welcome,

Thanks,

Rolf

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Detaching a cachine device
       [not found] ` <5235CD22.8000507-6w2rdlBuEQTpMFipWq+H6g@public.gmane.org>
@ 2013-09-15 15:20   ` Gabriel de Perthuis
       [not found]     ` <5235D578.8020406@rolffokkens.nl>
  0 siblings, 1 reply; 5+ messages in thread
From: Gabriel de Perthuis @ 2013-09-15 15:20 UTC (permalink / raw)
  To: Rolf Fokkens; +Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA

> I'm probably overlooking the obvious, but (as part of a test) I want
> to replace my caching device with a bigger one. So I think the first
> step should to detach the current caching device. I can find
> instructions about detaching a backing device, but that's not wat I
> want (the backing device holds the (slow) data, the important data).
> I can't figure out though how to detach a caching the device.

Cache sets have an 'unregister' action: /sys/fs/bcache/<uuid>/unregister
The reference docs are in bcache.txt.
http://atlas.evilpiepirate.org/git/linux-bcache.git/tree/Documentation/bcache.txt?h=bcache-dev#n367

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Detaching a caching device
       [not found]       ` <5235D578.8020406-6w2rdlBuEQTpMFipWq+H6g@public.gmane.org>
@ 2013-09-15 16:54         ` Rolf Fokkens
       [not found]           ` <5235E637.10008-6w2rdlBuEQTpMFipWq+H6g@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Rolf Fokkens @ 2013-09-15 16:54 UTC (permalink / raw)
  To: Gabriel de Perthuis; +Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA

Yep, works indeed.

Dispite the alarming description :-)

Suggestion for alternative text:  "Detaches all caching devices and 
closes them; if any data is present in the caching devices it will ..."

On 09/15/2013 05:42 PM, Rolf Fokkens wrote:
> On 09/15/2013 05:20 PM, Gabriel de Perthuis wrote:
>> Cache sets have an 'unregister' action: 
>> /sys/fs/bcache/<uuid>/unregister The reference docs are in 
>> bcache.txt. 
>> http://atlas.evilpiepirate.org/git/linux-bcache.git/tree/Documentation/bcache.txt?h=bcache-dev#n367 
>
> I noteced that one, but it looks kind of scary to me:
> |"Detaches all backing devices and closes the cache devices; if dirty data is present it will disable writeback caching and wait for it to be flushed.|
> Sounds like one of these:
> - the /dev/cache* devices are gone; if so: that's definitely not what 
> I want.
> - or at least the the baching devices are detached; that also sounds 
> bad. I don't want to detacht the backing devices at all, I want to 
> detacht the caching device.
>
> The text is somewhat confusing to me. I'll give it a try, it's only a VM.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bcache-status shows now output when caching device detached
       [not found]           ` <5235E637.10008-6w2rdlBuEQTpMFipWq+H6g@public.gmane.org>
@ 2013-09-15 17:34             ` Rolf Fokkens
       [not found]               ` <5235EFB6.2060008-6w2rdlBuEQTpMFipWq+H6g@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Rolf Fokkens @ 2013-09-15 17:34 UTC (permalink / raw)
  Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA, Darrick J. Wong

When no caching devices are connected, bcache-status shows nothing. 
Although actually no caching happens, it's confusing.

On 09/15/2013 06:54 PM, Rolf Fokkens wrote:
> Yep, works indeed.
>
> Dispite the alarming description :-)
>
> Suggestion for alternative text:  "Detaches all caching devices and 
> closes them; if any data is present in the caching devices it will ..."
>
> On 09/15/2013 05:42 PM, Rolf Fokkens wrote:
>> On 09/15/2013 05:20 PM, Gabriel de Perthuis wrote:
>>> Cache sets have an 'unregister' action: 
>>> /sys/fs/bcache/<uuid>/unregister The reference docs are in 
>>> bcache.txt. 
>>> http://atlas.evilpiepirate.org/git/linux-bcache.git/tree/Documentation/bcache.txt?h=bcache-dev#n367 
>>
>>
>> I noteced that one, but it looks kind of scary to me:
>> |"Detaches all backing devices and closes the cache devices; if dirty 
>> data is present it will disable writeback caching and wait for it to 
>> be flushed.|
>> Sounds like one of these:
>> - the /dev/cache* devices are gone; if so: that's definitely not what 
>> I want.
>> - or at least the the baching devices are detached; that also sounds 
>> bad. I don't want to detacht the backing devices at all, I want to 
>> detacht the caching device.
>>
>> The text is somewhat confusing to me. I'll give it a try, it's only a 
>> VM.
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: bcache-status shows now output when caching device detached
       [not found]               ` <5235EFB6.2060008-6w2rdlBuEQTpMFipWq+H6g@public.gmane.org>
@ 2013-09-18 23:53                 ` Darrick J. Wong
  0 siblings, 0 replies; 5+ messages in thread
From: Darrick J. Wong @ 2013-09-18 23:53 UTC (permalink / raw)
  To: Rolf Fokkens; +Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA

On Sun, Sep 15, 2013 at 07:34:46PM +0200, Rolf Fokkens wrote:
> When no caching devices are connected, bcache-status shows nothing.
> Although actually no caching happens, it's confusing.

Aha, I didn't quite understand what you were getting at until I broke one of my
cachesets.

Yes, it would be useful to have it report orphaned cache / backing devices,
since right now it only prints full sets in /sys/fs/bcache/$uuid/.

--D
> 
> On 09/15/2013 06:54 PM, Rolf Fokkens wrote:
> >Yep, works indeed.
> >
> >Dispite the alarming description :-)
> >
> >Suggestion for alternative text:  "Detaches all caching devices
> >and closes them; if any data is present in the caching devices it
> >will ..."
> >
> >On 09/15/2013 05:42 PM, Rolf Fokkens wrote:
> >>On 09/15/2013 05:20 PM, Gabriel de Perthuis wrote:
> >>>Cache sets have an 'unregister' action:
> >>>/sys/fs/bcache/<uuid>/unregister The reference docs are in
> >>>bcache.txt. http://atlas.evilpiepirate.org/git/linux-bcache.git/tree/Documentation/bcache.txt?h=bcache-dev#n367
> >>
> >>
> >>I noteced that one, but it looks kind of scary to me:
> >>|"Detaches all backing devices and closes the cache devices; if
> >>dirty data is present it will disable writeback caching and wait
> >>for it to be flushed.|
> >>Sounds like one of these:
> >>- the /dev/cache* devices are gone; if so: that's definitely not
> >>what I want.
> >>- or at least the the baching devices are detached; that also
> >>sounds bad. I don't want to detacht the backing devices at all,
> >>I want to detacht the caching device.
> >>
> >>The text is somewhat confusing to me. I'll give it a try, it's
> >>only a VM.
> >
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-09-18 23:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-15 15:07 Detaching a cachine device Rolf Fokkens
     [not found] ` <5235CD22.8000507-6w2rdlBuEQTpMFipWq+H6g@public.gmane.org>
2013-09-15 15:20   ` Gabriel de Perthuis
     [not found]     ` <5235D578.8020406@rolffokkens.nl>
     [not found]       ` <5235D578.8020406-6w2rdlBuEQTpMFipWq+H6g@public.gmane.org>
2013-09-15 16:54         ` Detaching a caching device Rolf Fokkens
     [not found]           ` <5235E637.10008-6w2rdlBuEQTpMFipWq+H6g@public.gmane.org>
2013-09-15 17:34             ` bcache-status shows now output when caching device detached Rolf Fokkens
     [not found]               ` <5235EFB6.2060008-6w2rdlBuEQTpMFipWq+H6g@public.gmane.org>
2013-09-18 23:53                 ` Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).