Groups | Search | Server Info | Login | Register
Groups > comp.protocols.nfs > #31
| From | Bruce Esquibel <bje@ripco.com> |
|---|---|
| Newsgroups | comp.protocols.nfs |
| Subject | Re: Mounting files instead of directories? |
| Date | 2016-09-16 10:47 +0000 |
| Organization | Ripco Communications Inc. |
| Message-ID | <nrgijd$8n1$1@remote5bge0.ripco.com> (permalink) |
| References | <57788725-e7aa-474c-91f8-b7768c6f2e30@googlegroups.com> |
herrmannsfeldt@gmail.com wrote:
> I 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
bje@ripco.com
Back to comp.protocols.nfs | Previous | Next — Previous in thread | Next in thread | Find similar
Mounting files instead of directories? herrmannsfeldt@gmail.com - 2016-09-15 09:59 -0700
Re: Mounting files instead of directories? "J.O. Aho" <user@example.net> - 2016-09-15 23:19 +0200
Re: Mounting files instead of directories? herrmannsfeldt@gmail.com - 2016-09-15 14:32 -0700
Re: Mounting files instead of directories? "J.O. Aho" <user@example.net> - 2016-09-16 07:56 +0200
Re: Mounting files instead of directories? Bruce Esquibel <bje@ripco.com> - 2016-09-16 10:47 +0000
Re: Mounting files instead of directories? Casper H.S. Dik <Casper.Dik@OrSPaMcle.COM> - 2016-09-16 11:02 +0000
Re: Mounting files instead of directories? herrmannsfeldt@gmail.com - 2016-09-16 06:22 -0700
Re: Mounting files instead of directories? Casper H.S. Dik <Casper.Dik@OrSPaMcle.COM> - 2016-09-16 13:28 +0000
Re: Mounting files instead of directories? herrmannsfeldt@gmail.com - 2016-09-16 12:56 -0700
Re: Mounting files instead of directories? herrmannsfeldt@gmail.com - 2016-09-16 13:28 -0700
Re: Mounting files instead of directories? herrmannsfeldt@gmail.com - 2016-09-16 14:39 -0700
csiph-web