当前位置: > Linux集群 > 负载均衡SLB >

解析RHCS高可用集群HA及负载均衡集群LB的实现方法(6)

时间:2015-03-14 21:42来源:linux.it.net.cn 作者:IT

  [root@node1 root]# service nfs stop

  Shutting down NFS mountd: [ OK ]

  Shutting down NFS daemon: [ OK ]

  Shutting down NFS quotas: [ OK ]

  Shutting down NFS services: [ OK ]

  [root@node1 root]# service smb stop

  Shutting down SMB services: [ OK ]

  Shutting down NMB services: [ OK ]

  [root@node1 root]# chkconfig nfs off

  [root@node1 root]# chkconfig smb off

  结点安装完成后需配置共享存储设备,共享存储设备多为SCSI设备或光纤设备,请按照相关的硬件厂商文档进行安装。硬件正常安装后需要对共享存储设备进行分区,共享存储设备用于存放服务所需使用的数据。

  在对共享存储进行分区时需要首先分两个10M大小的分区做为裸设备供高可用集群使用,另外建议每服务的数据使用一个分区来存放数据,具体分区如下所示。该配置只需要在一台成员服务器上执行。

  [root@node1 root]# fdisk /dev/sdb

  Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

  Building a new DOS disklabel. Changes will remain in memory only,

  until you decide to write them. After that, of course, the previous

  content won't be recoverable.

  Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

  Command (m for help): n

  Command action

  e extended

  p primary partition (1-4)

  p

  Partition number (1-4): 1

  First cylinder (1-522, default 1):

  Using default value 1

  Last cylinder or +size or +sizeM or +sizeK (1-522, default 522): +10M

  Command (m for help): n

  Command action

  e extended

  p primary partition (1-4)

  p

  Partition number (1-4): 2

  First cylinder (3-522, default 3):

  Using default value 3

  Last cylinder or +size or +sizeM or +sizeK (3-522, default 522): +10M

  Command (m for help): n

  Command action

  e extended

  p primary partition (1-4)

  p

  Partition number (1-4): 3

  First cylinder (5-522, default 5):

  Using default value 5

  Last cylinder or +size or +sizeM or +sizeK (5-522, default 522): +1000M

  Command (m for help): n

  Command action

  e extended

  p primary partition (1-4)

  p

  Selected partition 4

  First cylinder (128-522, default 128):

  Using default value 128

  Last cylinder or +size or +sizeM or +sizeK (128-522, default 522): +100M

  Command (m for help): w

  The partition table has been altered!

  Calling ioctl() to re-read partition table.

  Syncing disks.

  在上述示例中我们共分了四个分区,其中sdb1、sdb2为两个10M的分区需配置为裸设备,sdb3、sdb4分别为两个1G的分区,分别供NFS及SAMBA服务存放数据使用。分区完成后重启计算机并在每台服务器上执行fdisk –l以确定各结点能够正确识别磁盘及其分区设备。 (责任编辑:IT)

------分隔线----------------------------
栏目列表
推荐内容