歡迎您光臨本站 註冊首頁

請高手指點:AS2.1集群的安裝問題

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

請高手指點:AS2.1集群的安裝問題

我的環境是2台IBM X335,1台EXP300盤櫃。
在安裝linux AS2.1的時候沒有問題。
在配置集群的時候,我在另外一台主機上無法看到盤櫃。
安裝過程是按照一篇文檔做的,但是在執行cluconfig的最後一不出錯,報DiskLseekRawReadChecksum:bad check sum等錯。
過程如下:
環境說明:
1. 硬體:


伺服器:IBM X335
網卡:3個*2
RAID:兩塊 IBM 4L
Storage:4*72GB的EXP300和SCSI cable

2. 軟體:
OS:RedHat Advance Server 2.1
Kernel: 2.4.9-e.40smp

配製分配:
IP: node1: 100.1.1.1/24 WEB1
200.1.1.1/24 WEB
node2: 100.1.1.2/24 ORA1
200.1.1.2/24 ORA
Cluster IP: 100.1.1.3


基本步驟:

一、配置盤櫃
ORA主機:
用IBM SERVERRAID 6.10啟動,進入安裝配置界面。
在管理工具中將4塊硬碟配置成RAID1。
在管理工具中將controller2配置成cluster方式,並共享。

WEB主機:
用IBM SERVERRAID 6.10啟動,進入安裝配置界面。
在管理界面上可以看到這4塊物理硬碟。

二、安裝OS

按照通常的步驟安裝OS,完成後:

a. 編輯 /etc/modules.conf文件,同時增加下面內容到文件內容中

alias scsi_hostadapter megaraid
options scsi_mod max_scsi_luns=255


b. 執行

mkinitrd initrd-2.4.9-e.3smp.img 2.4.9-e.3smp à這行的內容主要還是由內核來決定。

例:
/etc/modules.conf:

alias scsi_hostadapter megaraid

options scsi_mod max_scsi_luns=255



三、安裝和配製分區

1.建立分驅
說明:建議在此時只開一個節點。在系統啟動后,系統可以識別在磁碟柜上新建的LUN。設備名通常是在本地硬碟后順序編排。例如:當本地是/dev/sda,那麼新的設備是/dev/sdb

分區的原則和要求:Quorum分區的要求:不能小於10M,必須是裸設備,不能有文件系統。
Quorum分區只能用於Cluster的狀態和配製信息。
Quorum要求兩個分區,一個為primary,另一個為slave
Cluster 應用服務的分區:要求一個cluster服務一個分區。例如:你想有SQL、NFS、SAMBA三個Cluster應用服務,那麼你必須為三個服務各建一個分區。

例:fdisk /dev/sdb 創建新的分區

/dev/sdb1 àQuorum primary partition
/dev/sdb2 àQuorum slave partition
/dev/sdb3 àSql partition
/dev/sdb4 àNFS partition
/dev/sdb5 àsamba partition

注意:在創建完分驅后,一定要重啟主機,建議重啟所有設備。

2.建立文件系統――即格式化分區

3ed說明:Quorum 必須是裸設備,所以不需要格式化。但其他分區必須格式化,同時將默認的Block塊大小增大到4096,默認為1024。


例:
mkfs –t ext2 –j –b 4096 /dev/sdbx –-》X代表分區

3.為Cluster 創建Quorum分區
說明:使用命令 cat /proc/devices 確認系統是否支持裸設備,如果你看到下面的輸出,說明系統可以支持裸設備。

162 raw

在兩台伺服器上分別編輯/etc/sysconfig/rawdevices文件,以便將分區綁定到裸設備。

例: /etc/sysconfig/rawdevices
# format:
#
# example: /dev/raw/raw1 /dev/sda1
# /dev/raw/raw2 8 5
/dev/raw/raw1 /dev/sdb1
/dev/raw/raw2 /dev/sdb2

重啟服務 service rawdevices restart


4.檢查和驗證Quoram分區

在兩個節點上分別cludiskutil –p 確保兩個節點都能有以下輸出:

----- Shared State Header ------
Magic# = 0x39119fcd
Version = 1
Updated on Thu Sep 14 05:43:18 2000
Updated by node 0

結果是沒有這些輸出,返回值是無法打開cluster的config文件。


四、建立Cluster服務

說明:確保所有網卡正常工作。同時,設置基本的網路要求。

1.編輯/etc/hosts 文件

127.0.0.1 localhost.localdomain localhost
10.0.0.1 node1.test.com node1
10.0.0.2 node2.test.com node2
10.0.0.3 Clusteralias.test.com Clusteralias

2.運行/sbin/cluconfig

說明:系統將自動生成cluster的配製文件/etc/cluster.conf,這一步只需要在其中一個節點上運行。

你將看到以下輸出:

Enter cluster name :Cluster
Enter IP address for cluster alias : 10.0.0.3
--------------------------------
Information for Cluster Member 0
--------------------------------
Enter name of cluster member : node1
Looking for host storage0 (may take a few seconds)...
Enter number of heartbeat channels (minimum = 1) : 1
Information about Channel 0
Channel type: net or serial :
Enter hostname of the cluster member on heartbeat channel 0 \
: node1
Looking for host node1 (may take a few seconds)...
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 』storage0』
Choose one of the following power switches:
o NONE
o RPS10
o BAYTECH
o APCSERIAL
o APCMASTER
o WTI_NPS
Power switch : NONE

Information for Cluster Member 1
--------------------------------
Enter name of cluster member : node2
Looking for host storage1 (may take a few seconds)...
Information about Channel 0
Enter hostname of the cluster member on heartbeat channel 0 \
: node2
Looking for host storage1 (may take a few seconds)...
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 』node2』
Choose one of the following power switches:
o NONE
o RPS10
o BAYTECH
o APCSERIAL
o APCMASTER
o WTI_NPS
Power switch : NONE

Cluster name: Development Cluster
Cluster alias IP address: 10.0.0.154
Cluster alias netmask: 255.255.254.0
--------------------
Member 0 Information
--------------------
Name: node1
Primary quorum partition: /dev/raw/raw1
Shadow quorum partition: /dev/raw/raw2
Heartbeat channels: 1
Channel type: net, Name: node1
Power switch IP address or hostname: node1
--------------------
Member 1 Information
--------------------
Name: node2
Primary quorum partition: /dev/raw/raw1
Shadow quorum partition: /dev/raw/raw2
Heartbeat channels: 1
Channel type: net, Name: node2
Save the cluster member information? yes/no :
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
----------------------------------------------------------------
Configuration on this member is complete.
To configure the next member, invoke the following command on that system:
# /sbin/cluconfig --init=/dev/raw/raw1
See the manual to complete the cluster installation
此時報錯。


請教高手指點。 :em02:
《解決方案》

請高手指點:AS2.1集群的安裝問題

請把你的安裝過程自已寫下來,你現在帖子的內容,並沒有包含相關內容無法了解問題的所在。
《解決方案》

請高手指點:AS2.1集群的安裝問題

1、連線。將4L的SCSI控制卡安裝在X335上,線纜連接在集成的控制卡上
2、用IBM SERVERRAID光碟啟動,進入管理界面。
3、配置controller2,將4塊硬碟配成RAID1。
4、將controller 2配置為cluster,將logical drive設置為共享。channel1設置為6。
5、重新啟動機器。
6、啟動另外一台主機,進入raidserver的管理界面。可以看到4個物理盤,但是看不到array。
7、配置cluster,將logical drive設置為共享。
8、問題:在第一台主機上可以進行fdisk /dev/sdb分區操作,但是在第二台主機的操作系統中無法看到相關盤的信息。
我懷疑是否在什麼地方設置有錯誤。

另外老兄,你也是成都的,是否可以給個電話,向你請教。

[火星人 ] 請高手指點:AS2.1集群的安裝問題已經有655次圍觀

http://coctec.com/docs/service/show-post-10378.html