免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1478 | 回复: 0
打印 上一主题 下一主题

linux下的无盘工作站配置(centos) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-12-27 22:27 |只看该作者 |倒序浏览
   需求:需要多个系统同运行同样的服务,如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.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/109111/showart_2132318.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP