Post by h***@gmail.comI might try this in another group, as this looks like almost 100% spam.
Can an NFS client mount a file, instead of a directory?
I am trying to get diskless SunOS to work, with either a FreeBSD or Linux server.
It looks like when the client mounts its swap space, it does a mount request on the file name.
As far as I can tell, FreeBSD doesn't like that. I don't have a Sun server running to test.
heh, it's been a while since I did anything with SunOS but this was from
something I saved from a man page all these years, not sure if there is any
portability to it...
--------------------------------------------------------------------------
To use an NFS or local file system swapname, you should
first create a file using mkfile(1M). A local file sys-
tem swap file can now be added to the running system by
just running the swap -a command. For NFS mounted swap
files, the server needs to export the file. Do this by
performing the following steps:
1. Add the following line to /etc/dfs/dfstab:
share -F nfs -o \
rw=clientname,root=clientname path-to-swap-file
2. Run shareall(1M).
3. Have the client add the following line to
/etc/vfstab:
server:path-to-swap-file - local-path-to-swap-file nfs \
--- local-path-to-swap-file -- swap ---
4. Have the client run mount:
# mount local-path-to-swap-file
5. The client can then run swap -a to add the swap
space:
# swap -a local-path-to-swap-file
--------------------------------------------------------------------
So it looks like it could be done, but I think (not sure) that swap used
to hang off the root directory (/swap) so it sort of was a directory, not
a file. What did they call it, a tmpfs or something like that.
Have you tried to just create a /swap on the server (linux or bsd) and just
export it? There may not be anything magical about it.
One lead otherwise, there is a guy named Don Nicolas (probably spelled
wrong) that hangs out occassionaly in the sun and solaris groups that seems
to maintain a small collection of older sun hardware, he might know something
about doing what you want to do.
I still have some of the sparc pizza boxes buried in the basement but haven't
touched them since the late 90's. I think the 1+ and a 5 needed the network
boot but the 10 and 20 had drives in them. Was neat to watch all of them
boot up but really prehistoric these days.
-bruce
***@ripco.com