Am Freitag, 19. Januar 2007 02:01 schrieb Eli Stair: > 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? Well, now I split the task in two halfs: i) initramfs: mounting the nfsroot(fsc), perhaps initialising the cache, switch_root ii) mounting the cache-filesystem, starting cachefilesd, aufs-mounting stuff, exec /sbin/init That seems to be the clearest way. > > > /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@xxxxxxxxxx > > > https://www.redhat.com/mailman/listinfo/linux-cachefs > > > > -- > > Wilhelm Meier -- Wilhelm Meier email: wilhelm.meier@xxxxxxxx