is it possible, to mount all default-mount-points from a nfs-server? could you
please explain, where i have to make changes in the config-files.
thanx a lot
peter
--
>>> www.FreeBSD.org is the be(a)st <<<
on the client side, you need to modify /etc/fstab.
Nick
Would you really mount swap over NFS?
That seems really dumb to me...
Sure, if you had a workstation with no hard-disk.
Swap-over-nfs has been around for donkeys years.
Nick
thats the point. the diskless client starts working for me. there are only some
things left i have to manage.
thanx
peter
hello nick,
have you got an idea how the line for the swap-mount via nfs have to look
like? the others are clear to me, but swap i dont know...
thanx
peter
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
Because swapon is run very early in the boot cycle, you'll have to enable this
using a script - it's not possible to enable it using fstab.
Nick
im sorry, but is that all to do on the clients side? do i have to do this the
first time without a swap-file? where could i insert the script for swapon?
The "dd" command needs to be run once in order to create the swap file in the
first place; the vnconfig and swapon commands should be put in a script and
executed on bootup by the clients.
Nick
And boy did it suck. <grin/>
(20+ 9k/400 (8 or 16MB, diskless), all mounting (everything, incl. swap)
over NFS over cheapernet to one 9k/433 (48MB), running HPsUX 9.x. Joy!)
--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
Yeah. It seems to me that you ought to be able to pull a 100MB disk
out of the trash to throw in for swap and it would still be faster
and more reliable than swapping over nfs.
Of course I have never tried it, so maybe it's great....
> The "dd" command needs to be run once in order to create the swap file in
the
> first place; the vnconfig and swapon commands should be put in a script
and
> executed on bootup by the clients.
hello again,
im so sorry, but im not so conform with the bootup-procedure on freebsd. i
think if i put the vnconfig and swapon commands in the rc or rc.local - its
maybe to late? where would you like to put them into?
thanx again :-)
peter
/usr/local/etc/rc.d
The system should boot up without swap, unless you're doing something pretty weird.
Nick
If the point is to have a diskless client, then putting in a (noisy) disk
would defeat its purpose, no?
> Of course I have never tried it, so maybe it's great....
No, but it works. And one client on a 100mbit switched link would be far
more doable than what I wrote above. Then again, depending on the purpose,
one could try to obtain and use a dedicated X terminal.
>If the point is to have a diskless client, then putting in a (noisy) disk
>would defeat its purpose, no?
Then use a very old computer. The current days CPU's fans are far more
noisy than most disks.
--
Bart.
> /usr/local/etc/rc.d
> The system should boot up without swap, unless you're doing something
pretty weird.
thanx a lot. works fine and fast...
peter