[Gllug] Convertng a disk (regular) file to a named pipe

Simon A. Boggis simon at dcs.qmul.ac.uk
Wed Apr 30 22:07:24 UTC 2003


On Wed, 2003-04-30 at 22:35, Adrian McMenamin wrote:
> This is what I want to replicate:
> 
> http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=0Jda9.11393%24zX3.18982%40news.indigo.ie&rnum=4&prev=/groups%3Fq%3Dmounting%2Bswap%2Bover%2Bnfs%26hl%3Den%26lr%3D%26ie%3DUTF-8%26selm%3D0Jda9.11393%2524zX3.18982%2540news.indigo.ie%26rnum%3D4

Oh I see - there seems to be a recipe there for freebsd (which doesn't
involve any named pipes at all):

  You have to create a large swapfile on an nfs partition using dd or
something:
  # dd if=/dev/zero bs=1024 count=<size-in-megs> /whatever/swapfile
  Then turn that into a block device:
  # vnconfig -e vn0c /whatever/swapfile
  Then just tell the kernel to use the vnode device as a swapfile:
  # swapon /dev/vn0c

I'm no expert in such matters, but for linux a quick google on "
A quick google on "swap over nfs linux" returned things which look quite
old (2.2 kernel) such as:
  http://www.linux.org/docs/ldp/howto/Network-boot-HOWTO/x542.html
There is also:
http://www.linux.org/docs/ldp/howto/Diskless-root-NFS-other-HOWTO-3.html
which also says it isn't supported, but suggests a hack to get it to
work (ab)using loopback devices. 
There were also lots of pages saying stuff about how it is easy to get
deadlocked (not to mention very insecure).

Simon



-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list