[Linux-cachefs] FS-Cache for NFS-root ?
Eli Stair
estair at ilm.com
Fri Jan 19 01:01:24 UTC 2007
I actually refrain from running 'cachefilesd' until the system is
running in the NFS root filesystem, and start it at the end of a
runlevel. I don't know that you can work around the issue you're having
short of launching it that way, or stopping the daemon while in your
initramfs but before doing your switch_root(). You may be able to work
around it if you /really/ want to cache those files during boot (I
understand), if you ditch your bind mount and to a --move instead.
After all, you don't want the filesystem available in two places, just
in a /new/ one.
In fact, I'm not entirely sure that move trick will work with the
running daemon, but let us know?
/eli
Wilhelm Meier wrote:
> The cache is originally mounted on /fscache in the initramfs, then the
> nfsroot
> is mounted and after that the cache is bind-mounted to /local/fscache on the
> nfsroot. After that the switch_root happens.
>
> Additionally I create a mount-point /fscache in the nfsroot. Then df shows
> also /fscache (and not the "/fscache not found" anymore), but with wrong
> numbers, since it is an empty mountpoint on nfsroot.
>
> Do you have a solution for that. Would you mind share your initramfs
> with me?
>
> Filesystem 1K-blocks Used Available Use% Mounted on
> 192.168.39.10:/tftproot/gentoo_A
> 8256608 5785600 2471008 71% /
> /dev/hda1 8256608 5785600 2471008 71% /fscache
> /dev/hda1 473084 184006 264652 42% /local/fscache
> udev 30876 156 30720 1% /dev
> shm 30876 0 30876 0% /dev/shm
>
>
> >
> >
> >
> > /eli
> >
> > --
> > Linux-cachefs mailing list
> > Linux-cachefs at redhat.com
> > https://www.redhat.com/mailman/listinfo/linux-cachefs
>
> --
> Wilhelm Meier
>
More information about the Linux-cachefs
mailing list