




免费预览已结束,剩余21页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
RedHat Linux双机配置文档一 双机规划图二IP规划 主机名称接口ip地址/掩码node1eth01/24eth11/24IMM管理口(用于fence设备)1/24node2eth02/24eth12/24IMM管理口(用于fence设备)2/24vip-3/24三存储规划光纤存储系统规划:存储名称卷名称/LUN存储容量文件系统(EXT3/GFS)是否使用LVM管理(是/否)挂载点FastT200ha_data1/150GBEXT3否/data1FastT200ha_data2/250GBGFS是/data2服务器磁盘规划:服务名称卷名称/分区名称文件系统(EXT3/GFS/SWAP)是否使用LVM管理(是/否)挂载点node1-EXT3否/boot-EXT3是/-SWAP否-node2EXT3否/bootEXT3是/SWAP否-四、双机相关脚本脚本对应的服务名称脚本功能脚本存放位置 apptest管理apptest服务/ha/apptest.sh五RHCS双机规划(1)服务器名称规划规划项目名称是否加入/etc/hosts文件node1主机名(*)node1是node2主机名(*)node2是node1的fence设备(*)node1_fence否node2的fence设备(*)node2_fence否服务名称(*)apptest否(2)测试服务规划服务名称资源资源相关参数apptestip地址3文件系统挂载点:/data1挂载设备:?脚本/ha/apptest.sh(3)fence设备规划服务名称采用fence方法资源相关参数node1_fenceIPMIIP地址:1用户名:USERID密码:PASSW0RDnode2_fenceIPMIIP地址:2用户名:USERID密码:PASSW0RD(4)网络规划主机名功能网络接口IP地址node1 公共访问eth01心跳eth11node1 公共访问eth02心跳eth12六双机配置1硬件系统连接2配置服务器IMM IP启动服务器按F1进入BIOS设置在System setting-Integrated Management Module-Network configerration-DHCP Control(一定是static IP)修改-Save network setting(将node1IMM IP修改为1,node2 IMM IP修改为2)3.安装操作系统以及注意事项(两台机同做)(1)swap分区(内存大小,一般是内存的两倍,推荐8GB以上1.5倍SWAP达到32GB为最高)root分区(随意)(2)关闭两个网卡可以重速启动安装群集软件(包括两个部分,Clusting,Cluster Storage)(3)关闭防火墙()service iptables stopchkconfig iptables off (4)关闭selinux()vi /etc/selinux/selinux.confdisenable4配置两个服务器的网络接口更改网卡配置文件(第一台)vi /etc/sysconfig/network-script/ifcfg-eth0(第一块网卡)DEVICE=eth0BOOTPROTO=staticONBOOT=yesIPADDR=1MASK=GATEWAY=54或用gedit /etc/sysconfig/network-script/ifcfg-eth0vi /etc/sysconfig/network-script/ifcfg-eth1第二块网卡DEVICE=eth1BOOTPROTO=staticONBOOT=yesIPADDR=1MASK=更改网卡配置(第二台)vi /etc/sysconfig/network-script/ifcfg-eth0(第一块网卡)DEVICE=eth0BOOTPROTO=staticONBOOT=yesIPADDR=2MASK=GATEWAY=54或用gedit /etc/sysconfig/network-script/ifcfg-eth0vi /etc/sysconfig/network-script/ifcfg-eth1第二块网卡DEVICE=eth1BOOTPROTO=staticONBOOT=yesIPADDR=2MASK=或用system-config-network(ip地址,主机名)(图形画面配置网卡)service network restart(重起网卡)ethtool eth0ethtool eth1ip add listifconfig eth0用ping检测两个服务器的网络连通性和IMM的连通性5配置主机名称(两台同做)vi /etc/hosts1 node12 node2vi /etc/sysconfig/networkhostname6配置存储(1)配置光纤存储查看hba卡的wwncat /sys/class/fc_host/host5/port_name cat /sys/class/fc_host/host6/port_name(2)安装rdac驱动/rdac选择ds4000/ds5000或是ds3000(ds3500/ds3400/ds3200)uname rtar zxvf .make cleanmake make installvi /boot/grub/grub.conftitle Red Hat Enterprise Linux Server MPP(2.6.18-164.el5) root (hd0,0) kernel /vmlinuz-2.6.18-164.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /mpp-2.6.18-164.el5.imgtitle Red Hat Enterprise Linux Server (2.6.18-164.el5) root (hd0,0) kernel /vmlinuz-2.6.18-164.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.18-164.el5.imgrebootmount /dev/cdrom-hda /mntcd /mnt/Server/ls |grep i kernelrpm ivh kernel-devel-2.6.18-164.el5.x86_64.rpmrootnode2 etc# vi yum.repos.d/rhel.repo basebasename=Serverbaseurl=file:/mnt/Server/enable=1gpgcheck=0yum clean allyum install gcc.x86_64rootnode1 # lsmod | grep -i mppmppVhba 165888 0 mppUpper 165532 1 mppVhbascsi_mod 196697 9 scsi_dh,mppVhba,lpfc,scsi_transport_fc,libata,megaraid_sas,mppUpper,sg,sd_modrootnode1 # cat /proc/scsi/scsi | grep -i virtual Vendor: IBM Model: VirtualDisk Rev: 0520 Vendor: IBM Model: VirtualDisk Rev: 0520(3)创建文件系统rootnode1 # fdisk /dev/sdbThe number of cylinders for this disk is set to 13054.There is nothing wrong with that, but this is larger than 1024,and could in certain setups cause problems with:1) software that runs at boot time (e.g., old versions of LILO)2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK)Command (m for help): pDisk /dev/sdb: 107.3 GB, 107374182400 bytes255 heads, 63 sectors/track, 13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/sdb1 1 13054 104856191 fb VMware VMFSCommand (m for help): m Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partitions system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only)Command (m for help): dSelected partition 1Command (m for help): pDisk /dev/sdb: 107.3 GB, 107374182400 bytes255 heads, 63 sectors/track, 13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id SystemCommand (m for help): c DOS Compatibility flag is not setCommand (m for help): nCommand action e extended p primary partition (1-4)pPartition number (1-4): 1First cylinder (1-13054, default 1): Using default value 1Last cylinder or +size or +sizeM or +sizeK (1-13054, default 13054): Using default value 13054Command (m for help): wThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.rootnode1 # fdisk -lDisk /dev/sda: 583.9 GB, 583998111744 bytes255 heads, 63 sectors/track, 71000 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/sda1 * 1 13 104391 83 Linux/dev/sda2 14 71000 570203077+ 8e Linux LVMDisk /dev/sdb: 107.3 GB, 107374182400 bytes255 heads, 63 sectors/track, 13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/sdb1 1 13054 104856254+ 83 LinuxDisk /dev/sdc: 112.7 GB, 112721416192 bytes255 heads, 63 sectors/track, 13704 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/sdc1 2 13704 110069347+ f W95 Extd (LBA)/dev/sdc5 2 13704 110069316 7 HPFS/NTFSrootnode1 # fdisk /dev/sdcThe number of cylinders for this disk is set to 13704.There is nothing wrong with that, but this is larger than 1024,and could in certain setups cause problems with:1) software that runs at boot time (e.g., old versions of LILO)2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK)Command (m for help): dPartition number (1-5): 2 Warning: partition 2 has empty typeCommand (m for help): dPartition number (1-5): 1Command (m for help): Command (m for help): Command (m for help): pDisk /dev/sdc: 112.7 GB, 112721416192 bytes255 heads, 63 sectors/track, 13704 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id SystemCommand (m for help): nCommand action e extended p primary partition (1-4)pPartition number (1-
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 帆船拖网改造工程方案(3篇)
- 安全教育技能培训课件
- 辽宁农信面试题库及答案
- 口腔机构面试题库及答案
- 金融领域CRM系统数字化转型升级路径研究报告
- 安全教育培训证明课件
- 智慧农业大数据平台在农业智能化种植中的应用建议
- 仿制药一致性评价2025年对医药行业专利布局策略影响报告
- 安全教育培训观后课件
- 安全教育培训考评报告课件
- 影视中的人工智能
- GB/T 27043-2025合格评定能力验证提供者能力的通用要求
- 中职口腔生理基础教学课件
- 2025年“学宪法讲宪法”知识竞赛题库含答案
- 气瓶检验人员考试题题库及答案
- 胰腺超声标准切面
- 上饶市市级机关选调真题2024
- 高一学生手册考试试题及答案
- 妊娠滋养细胞肿瘤护理查房
- 廉政参观活动方案
- 律师事务所客户数据安全管理制度
评论
0/150
提交评论