需求:需要多个系统同运行同样的服务,如j2ee模块、memcached等,这些服务不与硬盘相关,只运行在内存中,并且多个系统同时运行,为了规避单点故障以及实现高效。
下面步骤是centos5.4系统的无盘服务端配置步骤,客户端只要选择从网络启动,即可在无干预情况下启动系统。
一,新建主要目录
mkdir -p /diskless/x86_64/centos5.4/root mkdir /diskless/x86_64/centos5.4/snapshot
|
二,拷贝预置模板到/diskless/x86_64/centos5.4/root目录
rsync -auv -e ssh --delete --exclude='/proc/*' --exclude='/sys/*' --exclude='/tmp/*'--exclude='/var/log/*' root@10.0.70.72:/ /diskless/x86_64/centos5.4/root/
|
三,配置所需tftp服务
yum -y install tftp tftp-server yum -y install busybox vi /etc/xinetd/tftp diskable=no chkconfig --level 345 xinetd on chkconfig --level 345 tftp on service xinetd start
|
四,配置dhcp服务
yum -y install dhcp-server chkconfig --level 345 dhcpd on
vi /etc/dhcpd.conf allow booting; allow bootp; class "pxeclients" { match if substring(option vendor-class-identifier, 0, 9) = "PXEClient"; next-server <server-ip>; filename "linux-install/pxelinux.0"; } service dhcpd start
|
五,配置nfs服务
yum -y install portmap nfs vi /etc/exports /diskless/x86_64/centos5.4/root *(ro,sync,no_root_squash) /diskless/x86_64/centos5.4/snapshot/ *(rw,sync,no_root_squash) service portmap start service nfs start
|
六,利用桌面工具配置服务端
大致步骤如下:打开“Network Booting Tool “ ,选择添加无盘,配置nfs地址以及目录。
If starting the Network Booting Tool for the first time, select Diskless from the First Time Druid. Otherwise, select Configure => Diskless from the pull-down menu, and then click Add. A wizard appears to step you through the process: 1、Click Forward on the first page. 2、On the Diskless Identifier page, enter a Name and Description for the diskless environment. Click Forward. 3、Enter the IP address or domain name of the NFS server configured in Section 4.3 Configuring the NFS Server as well as the directory exported as the diskless environment. Click Forward. 4、The kernel versions installed in the diskless environment are listed. Select the kernel version to boot on the diskless system. 5、Click Apply to finish the configuration.
|
七,添加无盘工作站节点
即配置无盘节点的镜像版本和网络接口。
1、Hostname or IP Address/Subnet — Specify the hostname or IP address of a system to add it as a host for the diskless environment. Enter a subnet to specify a group of systems. 2、Operating System — Select the diskless environment for the host or subnet of hosts. 3、Serial Console — Select this checkbox to perform a serial installation. 4、Snapshot name — Provide a subdirectory name to be used to store all of the read/write content for the host. 5、Ethernet — Select the Ethernet device on the host to use to mount the diskless environment. If the host only has one Ethernet card, select eth0.
|
阅读(2212) | 评论(0) | 转发(0) |