1 2 3 4 5 6 7 8 9 10 11
22、创建客户端的/mfs目录:
mkdir /opt/ltsp/i386/mfs
23、修改客户端文件系统配置文件,加入mfs的配置:
cd /opt/ltsp/i386/etc
vi fstab
 
none /mfs mfs dfsa = 1 0 0
24、修改客户端启动进程脚本,加入启动openmosix的配置,禁止客户端提交集群计算的设置,和装载/mfs文件系统的配置。
vi /opt/ltsp/i386/etc/rc.local
 
# OpenMosix startup section
# we don't want any terminal processes to migrate
echo 1 > /proc/mosix/admin/lstay
# start mosix
/etc/rc.openmosix start
# mount mfs filesystem. doesn't work when done earlier
mount /mfs
# End OpenMosix Startup Section
25、配置完成后准备软盘制作以太启网启动盘。访问www.Rom-O-matic.net网站,选择网卡类型生成以太网启
动芯片的映象,保存到Linux上,使用cat生成启动软盘。本例中使用3C905B。放入一张空白三吋软盘。
cat eb-5[1].0.7-3c905b-tpo100.lzdsk > /dev/fd0
26、修改LTSP客户端启动配置文件/opt/ltsp/i386/etc/lts.conf,禁止启动X Windows,修改参数X_USBMOUSE_BUTTONS = 3,
即启动文本界面。
27、确认/etc/exports文件包含共享客户端根文件系统和交换区内容:
more /etc/exports
 
/opt/ltsp/i386    192.168.0.0/255.255.255.0(ro,no_root_squash)
/var/opt/ltsp/swapfiles    192.168.0.0/255.255.255.0(rw,no_root_squash)
28、将以太启动软盘放入客户端,开机并确认正常启动,正常获得动态地址,加载内核成功,初始化脚本正常运行,主机名自动
生成,openmosix正常初始化,没有任何错误提示。
29、回到服务器,通过检查/mfs文件系统来检查mfs文件系统。
30、启动mosmon监控程序来检查通讯是否有效,这是刚加入3个节点时,启动setiathome计算的状态。将下载的应用展开在/dw
目录下,注意命令的格式。
mosrun -j1-3 /mfs/1/dw/setiathome -nolock
31、制作启动盘,陆续加入节点,MOSIX集群就创建完了。
 
典型的配置文件
/etc/mosix.map
1 192.168.0.254 1
2 192.168.0.1 253
 
/etc/dhcpd.conf
default-lease-time  21600;
max-lease-time  21600;
ddns-update-style none;
allow booting;
allow bootp;
 
option subnet-mask  255.255.255.0;
option broadcast-address  192.168.0.255;
option routers  192.168.0.254;
option domain-name-servers  192.168.0.254;
option domain-name  "mosix";
option root-path  "192.168.0.254:/opt/ltsp/i386";
 
shared-network NODES {
 subnet 192.168.0.0 netmask 255.255.255.0 {
  range dynamic-bootp 192.168.0.100 192.168.0.253;
  use-host-decl-names on;
  option log-servers  192.168.0.254;
 
  if substring (option vendor-class-identifier, 0, 9) = "PXEClient"

  {

   filename "/lts/pxe/pxelinux.bin";
  }

  else

  {
   filename "/lts/vmlinuz-2.4.18-mosix";
   option host-name = concat("node" , binary-to-ascii( 10, 8, "", substring(reverse( 1, leased-   address), 0, 1)));
  }
 }
}
group {
  use-host-decl-names  on;
  option log-servers  192.168.0.254;
 
  host node001 {

   hardware ethernet  00:E0:06:E8:00:84;

   fixed-address  192.168.0.1;
   filename  "/lts/boot/bootp/vmlinuz.eepro100.bootp";
  }
  host node002 {
   hardware ethernet  00:D0:09:30:6A:1C;
   fixed-address  192.168.0.2;
   filename  "/lts/boot/bootp/vmlinuz.tulip.bootp";
  }
  host node003 {
   hardware ethernet  00:D0:09:30:28:B2;
   fixed-address  192.168.0.3;
   # kernels are specified in /tftpboot/lts/boot/pxe/pxelinux.cfg/
   filename  "/lts/boot/pxe/pxelinux.bin
  }
}
 
/etc/exports
/opt/ltsp/i386   192.168.0.0/255.255.255.0(ro,no_root_squash)
/var/opt/ltsp/swapfiles   192.168.0.0/255.255.255.0(rw,no_root_squash)
 
/etc/hosts 和 /opt/ltsp/i386/etc/hosts
192.168.0.254 mosix
192.168.0.1 node001
192.168.0.2 node002
192.168.0.3 node003
192.168.0.4 node004
省略一部分
192.168.0.253 node253
127.0.0.1  localhost.localdomain localhost
 
/opt/ltsp/i386/etc/fstab
none   /mfs       mfs     dfsa=1 0 0
 
/opt/ltsp/i386/etc/lts.conf

[Default]

   SERVER = 192.168.0.254
   XSERVER = off
   X_MOUSE_PROTOCOL = "PS/2"
   X_MOUSE_DEVICE = "/dev/psaux"
   X_MOUSE_RESOLUTION = 400
   X_MOUSE_BUTTONS = 3
   X_USBMOUSE_PROTOCOL= "PS/2"
   X_USBMOUSE_DEVICE = "/dev/input/mice"
   X_USBMOUSE_RESOLUTION = 400
   X_USBMOUSE_BUTTONS = 3
   USE_XFS = N
   LOCAL_APPS = N
   RUNLEVEL = 3
   SOUND = Y
   VOLUME = 75
上一页 下一页
1 2 3 4 5 6 7 8 9 10 11
Copyright© 2000 d2grid.com All Right Resvered 版权所有:北京蓝潮志诚网络技术有限责任公司