At KAT, we netboot 16 boards too...

/etc/exports:
/srv/nfs          192.168.0.0/16(rw,subtree_check,no_root_squash)

On the roaches:
/etc/fstab
==========
proc            /proc         proc    defaults           0  0
sysfs           /sys          sysfs   defaults           0  0
devpts          /dev/pts      devpts  mode=620,noexec    0  0
usbfs           /proc/bus/usb usbfs   noexec,nodev       0  0
/dev/mtdblock3  /mnt/flash    jffs2   defaults           0  0



Then, we mount a bit of swapspace using 
/etc/rcSimple:
==============
#!/bin/sh

mount -n -a
mount -n -o remount,ro,noatime /
mount -o size=32M -t tmpfs tmpfs0 /var/tmp
mkdir -p /var/tmp/{run,log,lock,dhcp,tmp}
mount -o size=16M -t tmpfs tmpfs1 /tmp

ifconfig lo 127.0.0.1 netmask 255.0.0.0 up



After boot:
===========
root@roach030276:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type nfs 
(ro,noatime,vers=2,rsize=4096,wsize=4096,hard,nolock,proto=udp,timeo=11,retrans=2,sec=sys,addr=192.168.64.1)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,noexec,mode=620)
usbfs on /proc/bus/usb type usbfs (rw,nodev,noexec)
/dev/mtdblock3 on /mnt/flash type jffs2 (rw)
tmpfs0 on /var/tmp type tmpfs (rw,size=32768k)
tmpfs1 on /tmp type tmpfs (rw,size=16384k)
root@roach030276:~# 


On 06 Jul 2011, at 13:52, Soriano, Melissa (335J) wrote:

> Hi,
> 
> We install a different root file system for each roach.  We mount shared
> directories (/software or /data, for example) for common files that we
> want to access from all roach boards.  This setup has worked reliably for
> us for over a year.
> 
> Regards,
> Melissa
> 
> On 7/6/11 12:37 PM, "Tom Downes" <[email protected]> wrote:
> 
>> I'm debating doing that. It's 16 boards, but guaranteed not to grow
>> much beyond that. And one could symlink boffiles or something so you
>> don't need to have 16 copies of that, too.
>> 
>> It seems as though the boot-up complaints about not being able to
>> write to disk are relatively harmless.
>> 
>> Tom
>> 
>> On Wed, Jul 6, 2011 at 12:57 PM, John Ford <[email protected]> wrote:
>>>> For those who care, you are just not supposed to enable eth0 in
>>>> /etc/network/interfaces. I thought it wasn't showing up in ifconfig
>>>> without doing that, but I must have been mistaken.
>>>> 
>>>> Another question: what is the best way of making the NFS filesystem
>>>> read-only so that the N ROACH boards do not conflict with one another?
>>>> I modified fstab to have this line:
>>>> 
>>>> rootfs          /             rootfs  ro                 0  0
>>>> 
>>>> There are a number of complaints along the way in bootup, however.
>>>> Would it be better to edit /etc/rcSimple to remount read-only after
>>>> boot?
>>> 
>>> We install a different root file system for each roach.  Not elegant,
>>> but
>>> it works if you only have a few roaches to serve!
>>> 
>>> John
>>> 
> 
> 
> 


Reply via email to