Wednesday, 6 November 2013

Setting up Beowulf cluster with ubuntu 12.10 tutorial

1. install ubuntu 12.10 server 64bit to master/nodes with SSH(USB drives)
2. login to recovery mode (grub), get root, adduser mpiuser --uid 999, adduser mpiuser sudo, reboot
3. login to mpiuser, fix network delay, sudo nano /etc/init/failsafe.conf, reduce sleep time, save
3a. sudo nano /etc/network/interfaces
auto wlan0
iface wlan0 inet dhcp
  wpa-ssid nameofwireless
  wpa-psk passphrase

auto eth0
iface eth0 inet dhcp
3b.  sudo nano /etc/hosts #set names for the master and nodes
192.168.x.1    master
192.168.x.2    node1
192.168.x.3    node2

4. sudo nano /etc/rc.local, add service networking restart before exit 0, save
4a. if can not access network adapter, sudo ifconfig eth0 up, sudo ifconfig wlan0 up, sudo iwconfig wlan0 essid 'wirelessname', sudo ifconfig eth0 192.168.x.1, sudo ifdown wlan0 && sudo ifup wlan0

5. restart -> now the server will automatically connect to network, SSH opens

 now get rid of cdrom sources
sudo nano /etc/apt/sources.list #comment out deb cdrom:

 6. sudo apt-get install nfs-kernel-server #for the master, sudo apt-get install nfs-common #for all other nodes

7. share /home/mpiuser #of master, using /etc/exports,
sudo nano/etc/exports #add line
/home/mpiuser *(rw,sync,no_subtree_check), save
sudo service nfs-kernel-server restart
#change in /etc/exports -> sudo exportfs -a
sudo ufw allow from 192.168.x.0/24 # allow connection from local





sources
http://byobu.info/article/Building_a_simple_Beowulf_cluster_with_Ubuntu/

No comments:

Post a Comment