- 論壇徽章:
- 0
|
需求:需要多個系統(tǒng)同運行同樣的服務,如j2ee模塊、memcached等,這些服務不與硬盤相關,只運行在內存中,并且多個系統(tǒng)同時運行,為了規(guī)避單點故障以及實現(xiàn)高效。
下面步驟是centos5.4系統(tǒng)的無盤服務端配置步驟,客戶端只要選擇從網絡啟動,即可在無干預情況下啟動系統(tǒng)。
一,新建主要目錄
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.
七,添加無盤工作站節(jié)點
即配置無盤節(jié)點的鏡像版本和網絡接口。
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.
本文來自ChinaUnix博客,如果查看原文請點:http://blog.chinaunix.net/u3/109111/showart_2132318.html |
|