Date: Sun, 10 Mar 1996 16:33:24 +0100 (MET) From: Gabriele Cecchetti <gabriele@studenti.ing.unipi.it> To: smp@clem.systemsix.com Cc: questions@freebsd.org, msmith@atrad.adelaide.edu.au, clary@s4.elec.uq.edu.au, hackers@freebsd.org Subject: DISKLESS.HOWTO Message-ID: <Pine.BSF.3.91.960310152114.18238A-100000@studenti.ing.unipi.it>
next in thread | raw e-mail | index | archive | help
I'm setting up a diskless workstation for clients running X with netscape; server is a Pentium 100 with 16Mb RAM and several Gb of Disk and clients are Pentium 100 with 8 Mb RAM or 486DX4-100. My clients boot well but when I try to start X or with some other (more trivial) operation the system reboot. Probably my problems come from 'swap'. I think that at this time FreeBSD documentation is quite poor about this (i think) important operation mode, and I'm serching more estensive documentation about DISKELESS.HOWTO. Anyway, my /etc/bootptab file is: .clients:\ :ht=ethernet:sm=255.255.255.0:\ :hn:hd=/:bf=/kernel:\ :sa=10.1.1.1:sw=10.1.1.1:ds=10.1.1.1:gw=10.1.1.1:\ :dn=bibliolan:lp=10.1.1.1: WAISBiblio2:tc=.clients:ha=0000E8C84C4E:ip=10.1.1.22: ... my /tftpboot/cfg.10.1.1.22 file is: rootfs 10.1.1.1:/usr/diskless_root swapfs 10.1.1.1:/usr/swapfs swapsize 32768 kernel /kernel hostname WAISBiblio2.bibliolan I've added these lines to exports file: /usr/diskless_root /usr/swapfs -maproot=root:wheel 10.1.1.22 /usr -ro -network 10.1.1 -mask 255.255.255.0 -maproot=0:0 /usr/local -ro -network 10.1.1 -mask 255.255.255.0 -maproot=0:0 I' modified a /usr/diskless/etc/rc in this way DISKLESS=NO swapon -a if [ $1x = autobootx ] ... fi ... if [ "x`hostname`" = "x" ]; then mount -a -t nonfs else DISKLESS=YES mount -a -t nomfs vnconfig -ev /dev/vn0c /swapfs/swap.10.1.1.22 swap mount -a -t mfs (cd / ; tar xfz files.tgz ) # In this way I can use multiple clients # sharing / and /usr (files.tgz # contains /dev /root and /var files ...) fi ... where /usr/disk_less/etc/fstab is: 10.1.1.1:/usr/diskless_root / nfs rw 0 0 10.1.1.1:/usr /usr nfs ro 1 1 10.1.1.1:/usr/local /usr/local nfs ro 1 1 10.1.1.1:/usr/swapfs /swapfs nfs rw 0 0 /dev/null /var mfs rw,-T=myformat 0 0 and myformat is defined in disktab as: myformat:\ :dt=ST506:ty=winchester:se#512:nt#256:nc#1:\ :pa#12288:oa#12288:ta=4.2BSD:ba=4096:sa=512: \ :pb#12888:ob#0:tb=swap: \ :pc#24576:oc#0: Kernel settings for Diskless clients are: options DISKLESS config kernel root on wd0 (or it would be more correct with: config kernel root on wd0 swap on wd0 and vn0 dumps on wd0 ??? ) In this way seems to be ok... but it does not work well. In fact swapinfo say: Device 1K-blocks Used Avail Capacity Type /dev/?? 32768 2260 30444 7% Interleaved /dev/vn0c 96 32 0 100% Interleaved Total 32736 2292 30444 7% I've tryed to create an swap file of rigth size but that make system unstable (It reboot almost immediately due page fault). So, in which way I've to initialise the swap file ? Why /dev/?? (setup'ed by netboot or nb8390 ) and /dev/vn0c (setup'ed by vnconfig) are not the same ? Any suggestion and ideas or a full documentation (DISKLESS.HOWTO) will be appreciated. Thanks in advanced Gabriele ============================================================================ Gabriele Cecchetti Off. C.I.S.I.D. email: gabriele@www.ing.unipi.it via Giunta da Pisano http://www.ing.unipi.it/~gabriele +39-50-553594 Abitazione: e Centro Bibliotecario Via Lenin 127 Facolta` di Ingegneria 56010 Pappiana, PISA (Italy) Via Diotisalvi 2 Tel: +39-50-862316 +39-50-553604 =============================================================================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960310152114.18238A-100000>