动态网站制作指南 [  QQ表情  ]
[ 投票调查 ]
[ 企业邮箱 ]
[ 网站空间 ]
网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
ASP源码 | .Net源码 | PHP源码 | JSP源码 | JAVA源码 | CGI源码 | VB源码 | C++源码 | Delphi源码 | PB源码 | VF源码 | 汇编 | 服务器
电脑书籍下载:程序设计书籍 | 数据库教程书籍 | 平面与多媒体书籍 | 网络通讯书籍 | 系统管理书籍 | 网络安全书籍 | 认证考试书籍
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > 数据库 > Oracle教程
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
数据库:数据库教程,数据库技巧,Oracle教程,MySQL教程,Sybase教程,Access教程,DB2教程,数据库安全,数据库文摘
文章搜索服务
邮件订阅
输入你的邮件地址,
你将不会错过任何关于:
[ Oracle教程 ]的信息



本月文章推荐
.Oracle分页新招.
.循序渐进讲解Oracle 9i数据库的迁.
.深入分析Oracle数据库日志文件(.
.Statspack使用存在的几个误区.
.用Forms编写的数字时钟.
.使Oracle能同时访问多个SQL Serv.
.在RedHat7.0下安装Oracle的经历.
.9i新特性之——在线表格重定义研.
.详细讲解Oracle数据库的数据迁移.
.启动postfix的时候提示unsupport.
.存储过程应注意的几个问题.
.在Solaris 10 X86上安装Oracle 1.
.使用crs_stat工具查看资源状态.
.Oracle中的Merge函数(批量更新/删.
.关于冷备份与热备份的对比.
.Oracle中管理物化视图变得更加容.
.在复杂应用环境下监控ORACLE数据.
.Oracle8i与MS SQL SERVER之比较.
.Oracle 的位图索引.
.说一说如何配置Oracle的MTS part2.

LVS的配置详解配置

发表日期:2008-2-9 |



  Red Hat Cluster Manager
  安装操作系统,选择组件advance server,安装LVS部分。
  两台主机,主机名为haha和hehe
  主机haha的本地ip地址为net0:192.168.2.11,net1:192.168.2.14
  主机hehe的本地ip地址为net0:192.168.2.12,net1:192.168.2.16
  (主机网络连线只能用直连线进行连接,不能用交叉线连接,否则双机不能进行监控)
  修改/etc/hosts文件,封掉localhost行的内容,写入本地主机、对方主机和虚拟主机相应的ip地址和主机名:(两台主机配置相同)
  192.168.2.11 haha
  192.168.2.12 hehe
  192.168.2.13 xixi
  进入/etc/sysconfig/rawdevices文件,增加两行内容:(两台主机设置相同)
  /dev/raw/raw1 /dev/sdb1
  /dev/raw/raw2 /dev/sdb2
  以上两行是LVS需要的两个裸设备作为系统监控使用,每个裸设备的空间不能小于10M。当然需要fdisk建立两个两个相应的设备。
  然后从起主机,进入/sbin下,./clUConfig进行cluster的配置:
  Red Hat Cluster Manager Configuration Utility (running on haha) --haha为本地主机名
  Enter cluster name [Red Hat Cluster Manager]:xixi --xixi为虚拟主机名
  Enter IP address for cluster alias [NONE]:192.168.2.13 --地址为虚拟地址
  --------------------------------
  Information for Cluster Member 0
  --------------------------------
  Enter name of cluster member [haha]: --本地成员,回车即可
  Enter number of heartbeat channels (minimum = 1) [1]: 2 --两块网卡心跳线(也可串口心跳)
  Channel type: net or serial [net]: --第一块网卡做心跳
  Enter hostname of the cluster member on heartbeat channel 0 [haha]: --心跳线成员名称
  Channel type: net or serial [net]: --第二块网卡做心跳线
  Enter hostname of the cluster member on heartbeat channel 1:hehe --另外一个成员名称
  Information about Quorum Partitions
  Enter Primary Quorum Partition [/dev/raw/raw1]:
  Enter Shadow Quorum Partition [/dev/raw/raw2]:
  Information About the Power Switch That Power Cycles Member 'haha'
  Choose one of the following power switches:
  o NONE
  o RPS10
  o BAYTECH
  o APCSERIAL
  o APCMASTER
  o WTI_NPS
  o SW_WATCHDOG
  Power switch [NONE]:
  --------------------------------
  Information for Cluster Member 1
  --------------------------------
  Enter name of cluster member:hehe --对方成员名
  Enter hostname of the cluster member on heartbeat channel 0: hehe
  Enter hostname of the cluster member on heartbeat channel 1: haha
  Information about Quorum Partitions
  Enter Primary Quorum Partition [/dev/raw/raw1]:
  Enter Shadow Quorum Partition [/dev/raw/raw2]:
  Information About the Power Switch That Power Cycles Member 'hehe'
  Choose one of the following power switches:
  o NONE
  o RPS10
  o BAYTECH
  o APCSERIAL
  o APCMASTER
  o WTI_NPS
  o SW_WATCHDOG
  Power switch [NONE]:
  Save the cluster member information?
yes/no [yes]: --对配置信息进行保存
  Save the cluster member information? yes/no [yes]:
  Writing to configuration file...done
  Configuration information has been saved to /etc/cluster.conf.
  ----------------------------
  Setting up Quorum Partitions
  ----------------------------
  Running cludiskutil -I to initialize the quorum partitions: done
  Saving configuration information to quorum partitions: done
  Do you wish to allow remote monitoring of the cluster? yes/no [yes]: --是否答应远程主机进行cluster监视访问
  Configuration on this member is complete.
  To configure the next member, invoke the following command on that system:
  # /sbin/cluconfig --init=/dev/raw/raw1
  Refer to the Red Hat Cluster Manager Installation and Administration Guide
  for details.
  本地主机配置完成
  进入对方主机的/sbin目录,执行cluconfig –init=/dev/raw/raw1显示信息如下:
  Information about Channel 0
  /sbin/cluconfig: [: haha: unary operator eXPected
  Looking for host haha (may take a few seconds)...
  Information about Channel 1
  /sbin/cluconfig: [: hehe: unary operator expected
  Looking for host hehe (may take a few seconds)...
  Information about Quorum Partitions
  Information About the Power Switch That Power Cycles Member 'haha'
  Note: Operating a cluster without a remote power switch does not pr
  maximum data integrity guarantees.
  --------------------------------
  Information for Cluster Member 1
  --------------------------------
  /sbin/cluconfig: [: hehe: unary operator expected
  Looking for host hehe (may take a few seconds)...
  Information about Channel 0
  /sbin/cluconfig: [: hehe: unary operator expected
  Looking for host hehe (may take a few seconds)...
  Information about Channel 1
  /sbin/cluconfig: [: haha: unary operator expected
  Looking for host haha (may take a few seconds)...
  Hostname does not map to any interface. Keep your selection? [yes]:
  Information about Quorum Partitions
  Information About the Power Switch That Power Cycles Member 'hehe'
  Note: Operating a cluster without a remote power switch does not provide
  maximum data integrity guarantees.
  Press to continue. --按回车继续
  Cluster name: xixi
  Cluster alias IP address: 192.168.2.13
  --------------------
  Member 0 Information
  --------------------
  Name: haha
  Primary quorum partition: /dev/raw/raw1
  Shadow quorum partition: /dev/raw/raw2
  Heartbeat channels: 2
  Channel type: net, Name: haha
  Channel type: net, Name: hehe
  Power switch IP address or hostname: haha
  Identifier on power controller for member haha: un
  --------------------
  Member 1 Information
  --------------------
  Name: hehe
  Primary quorum partition: /dev/raw/raw1
  Shadow quorum partition: /dev/raw/raw2
  Heartbeat channels: 2
  Channel type: net, Name: hehe
  Channel type: net, Name: haha
  Power switch IP address or hostname: hehe
  Identifier on power controller for member hehe: un
  --------------------------
  Power Switch 0 Information
  --------------------------
  Power switch IP address or hostname: haha
  Type: NONE
  Login or port: unused
  PassWord: unused
  --------------------------
  Power Switch 1 Information
  --------------------------
  Power switch IP address or hostname: hehe
  Type: NONE
  Login or port: unused
  Password: unused
  Save the cluster member information?
yes/no [yes]: --是否进行保存
  Writing to configuration file...done
  Configuration information has been saved to /etc/cluster.conf.
  Saving configuration information to quorum partitions: done
  Do you wish to allow remote monitoring of the cluster? yes/no [yes]:
  ----------------------------------------------------------------
  Configuration on this member is complete.
  Execute "/sbin/service cluster start" to start the cluster software.
  这时,双机软件基本配置已经完成,在两台主机上分别运行service cluster start启动服务
  通过cluadmin进行治理,如下所示:
  cluadmin> cluster status
  Cluster Status Monitor (xixi) 11:16:11
  Cluster alias: xixi
  ========================= M e m b e r S t a t u s ==========================
  Member Status Node Id Power Switch
  -------------- ---------- ---------- ------------
  haha Up 0 Good
  hehe Up 1 Good
  ========================= H e a r t b e a t S t a t u s ====================
  Name Type Status
  ------------------------------ ---------- ------------
  haha <--> hehe network ONLINE
  ============
上一篇:Linux着作权须知 人气:319
下一篇:让quake3在linux下顺利运行 人气:415
浏览全部Oracle教程的内容 Dreamweaver插件下载 常用网页广告代码全集
  最新网站源码 最新软件下载
2008-7-24 Sablog-X v2.0 预览版
2008-7-24 帝国备份王EmpireBak 2008 正式版
2008-7-24 网趣网上购物系统时尚版 v8.2
2008-7-24 纵横B2B电子商务系统XYECS!B2B v
2008-7-24 e路小说小偷 v1.2.0723
2008-7-24 凌风美女图片站程序 v2.2
2008-7-24 TOM15电影收索程序
2008-7-24 清风信息自动采集生成系统 v1.0
2008-7-24 QQ邮箱编辑器 v1.0 (小小菜刀ASP
2008-7-19 UltraEdit 简体中文增强版 14.10
2008-7-19 CentOS 5.2 i386 LiveCD
2008-7-19 Snapture多功能相机 v1.4
2008-7-19 iAcces中文输入法 v1.0Build016
2008-7-19 Cookbook烹饪秘籍 v2.5
2008-7-19 苹果专用DVD转换工具 v1.1.59汉化
2008-7-19 Modem修复软件ZiPhone修改版04.0
2008-7-19 AgileMessenger即时通讯工具美化
2008-7-19 Sketches画图软件 v0.7b6破解版


  发表评论
姓 名: 验证码:
内 容:
[ 汉字翻译拼音 ] [ 广告代码 ] [ 符号对照表 ] [ 进制转换 ] [ 经典小工具 ] [ 个税计算 ] [ 汉字简繁转换 ] [ 普通单位换算 ] [ 公制单位换算 ]
[ 生辰老黄历 ] [ 国内电话区号 ] [ 国家代码与域名缩写 ] [ 文字加密解密 ] [ 健康查询 ] [ 万年历 ] [ 手机号码查询 ] [ ip搜索 ] [ Google PR查询 ]
业务联系 | 广告刊登 | 频道合作 | 投稿荐稿 | 联系方式 | 加入收藏 | RSS订阅
Copyright © 2000-2008 www.knowsky.com All rights reserved | 网络实名:动态网站制作指南 | 沪ICP备05001343号
ホームページ制作 不動産検索システム 求人情報
防水工事·改修工事 フットサル大会 探偵