Re: [Nbd] wishlist: read-only bcache for nbd / LTSP devices
- To: Goswin von Brederlow <goswin-v-b@...186...>
- Cc: nbd-general@lists.sourceforge.net
- Subject: Re: [Nbd] wishlist: read-only bcache for nbd / LTSP devices
- From: Juan Antonio Martinez <jantonio@...1345...>
- Date: Tue, 02 Sep 2014 13:44:03 +0200
- Message-id: <1409658243.6027.4.camel@...1717...>
- In-reply-to: <20140828153814.GC4682@...1266...>
- References: <1409231393.17946.41.camel@...1717...> <20140828153814.GC4682@...1266...>
El jue, 28-08-2014 a las 17:38 +0200, Goswin von Brederlow escribió:
> On Thu, Aug 28, 2014 at 03:09:53PM +0200, Juan Antonio Martinez wrote:
> > Hi all,
> >
> > Short question: how to use bcache with read-only devices such as
> > CD's or read-only NBD devices?
> > [...]
> Can't you use the device mapper caching support? You probably want to
> destroy all cache on reboot, which means you can just set this up
> fresh on every boot without persistent metadata.
Your suggestion did the work. NBD + dm-cache works fine
A (not so) little problem persist: nbd device should be connected
_before_ resume device mapper operations. This means that no easy way to
use a NBD root filesystem (as LTSP does) without hard re-working at
initramfs
Juan Antonio
Reply to: