当前位置: 首页 > 图文教程 > 服务器 > Linux服务器 > Linux系统无盘工作站架设实例

Linux服务器
在虚拟机RedhatLinux下安装Samba服务器
Linux系统下服务器硬件检查和文件传输
LinuxFtp服务器搭建支持Anonymous读写
Linux操作系统下Vsftp配置使用详细解析
Linux服务器的常用备份方法
SUSELinuxsubversion服务器自启动
RHEL下DHCP服务的配置与应用
linux自带的MAIL客户端用法
用NFS服务开发ARMLinux程序的方法
新手学堂:在Linux系统下mail命令的测试
UbuntuLinux系统下ApacheSSL配置方法
为Solaris服务器配置开源安全工具(下)
在Linux系统环境下配置WU-FTP服务器
Redhatlinux自动FTP传送备份
UbuntuLinux6.06LTS下安装Samba服务
在Centos5安装配置VNC的方法详细介绍
FedoraLinux8配置SAMBA服务的过程
Linux下成功安装和配置Sock5代理过程
实用技巧:Linux系统服务器快速登录
UbuntuServer系统用户安全优化方法

Linux服务器 中的 Linux系统无盘工作站架设实例


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-18   浏览: 77 ::
收藏到网摘: n/a

客户端是支持PXE方式启动的刀片,用Linux作为服务器,服务器配置如下:

1)安装DHCP服务器dhcpd

2)配置/etc/dhcpd.conf文件,下面是我机器上的文件

max-lease-time-1;default-lease-time-1;#注:IP地址永不过期optionsubnet-mask255.0.0.0;optionrouters10.0.0.1;optiondomain-name-servers10.10.10.10;#optionnetbios-name-servers10.10.10.10;optionbroadcast-address10.255.255.255;#optiondhcp-class-identifier"PXEClient";#optionvendor-encapsulated-options01:04:00:00:00:00:ff;#optionoption-135"start";subnet10.0.0.0netmask255.0.0.0{range10.10.12.13110.10.12.150;hostblade01{hardwareethernet00:e0:43:00:02:00;fixed-address10.10.12.131;filename"/tftpboot/pxelinux.0";#注:启动映象文件}hostblade02{hardwareethernet00:e0:43:00:02:02;fixed-address10.10.12.132;filename"/tftpboot/pxelinux.0";}hostblade03{hardwareethernet00:e0:43:00:02:04;fixed-address10.10.12.133;filename"/tftpboot/pxelinux.0";}hostblade04{hardwareethernet00:e0:43:00:02:06;fixed-address10.10.12.134;filename"/tftpboot/pxelinux.0";}hostblade05{hardwareethernet00:e0:43:00:02:08;fixed-address10.10.12.135;filename"/tftpboot/pxelinux.0";}}

说明:dhcp客户得到IP地址后用TFTP协议从服务器上下载启动映象文件。我用syslinux

工具包里边的pxelinux来作为远程启动的loder.

3)配置tftpserver

使用pxelinux作引导工具需要支持TSIZE参数的tftpserver。可从http://www.kernel.org/pub/software/network/tftp/下载。

通过xinetd来使用tftp服务,我的/etc/xinetd.conf文件如下

......servicetftp{socket_type=dgramprotocol=udpwait=yesuser=rootserver=/usr/sbin/in.tftpd}

4)配置PXELINUX

先安装syslinux软件包。可从http://www.kernel.org/pub/linux/uti……syslinux/下载。

将pxelinux.0拷贝到/tftpboot/目录下,然后建立/tftpboot/syslinux.cfg/目录。该目录下存放配置文件。

pxelinux使用ip地址的十六进制表示来作为该ip地址的配置文件的文件名。如blade01的

ip地址为10.10.12.131,配置文件名为0A0A0C83,内容为:

defaultlinuxlabellinuxkernelvmlinuzappendip=dhcproot=/dev/nfsrootnfsroot=10.10.11.120:/remote/blade01vga=normal

5)配置nfs

为每个刀片建立一个根目录,在该刀片的pxelinux配置文件里指定了从这个nfsexport的目录启动。

该根目录里应把标准的目录都建好,另外需要重新mount的usr,home,public等目录也要export。

我的/etc/exports文件:

#/etc/exports:theaccesscontrollistforfilesystemswhichmaybeexported#toNFSclients.Seeexports(5)./remote/blade01blade01(rw,async,no_root_squash)/remote/blade02blade02(rw,async,no_root_squash)/remote/blade03blade03(rw,async,no_root_squash)/remote/blade04blade04(rw,async,no_root_squash)/remote/blade05blade05(rw,async,no_root_squash)/remote/root*(rw,async,no_root_squash)/remote/home*(rw,async,no_root_squash)/usr*(ro,async,no_root_squash)/sbin*(ro,async,no_root_squash)/bin*(ro,async,no_root_squash)/lib*(ro,async,no_root_squash)/home*(ro,async,no_root_squash)

6)为每个刀片修改它的/etc/fstab文件,以blade01为例,它的nfsroot是/remote/blade01

/remote/blade01/etc/fstab文件如下:

#/etc/fstab:staticfilesysteminformation.##10.10.11.120:/remote/blade01/nfsdefaults,intr0110.10.11.120:/remote/root/rootnfsdefaults,intr0110.10.11.120:/remote/home/homenfsdefaults,intr0110.10.11.120:/bin/binnfsdefaults,intr0110.10.11.120:/usr/usrnfsdefaults,intr0110.10.11.120:/sbin/sbinnfsdefaults,intr0110.10.11.120:/lib/libnfsdefaults,intr01none/procprocdefaults,intr01

同时还要为每个刀片修改它的网络配置文件,配置ip地址,启动两块网卡等等……

7)编译内核

刀片用的内核,应该支持KernelLevelAutoConfiguration的DHCP协议,支持NFS,支持NFSROOT,

假设编译好的内核为vmlinuz,将它拷贝到/tftpboot/目录下。

上一页[1][2]