RHEL6下安裝GPFS 3.5的具體過程

來源:互聯網
上載者:User

RHEL6下安裝GPFS 3.5的具體過程 安裝gpfs叢集檔案系統 已三台主機為例1,    安裝gpfs軟體(三台主機上運行)本次從db2 purescale安裝介質中直接安裝,其它安裝方法見參考文獻yum install /tmp/gpfs/*.rpmrpm –qa gpfs驗證軟體是否已經正確安裝2,編譯相關軟體,安裝並已後的rpm包cd /usr/lpp/mmfs/src && make Autoconfig && make World && make InstallImages[root@linux1 src]# make rpm安裝編譯完自動產生的RPM 包yum install /root/rpmbuild/RPMS/x86_64/gpfs.gplbin-2.6.32-131.0.15.el6.x86_64-3.5.0-0.x86_64.rpm3,    修改PATH路徑(三台主機上運行) 在3 台主機上修改HOME目錄下的。bash_profile檔案,在檔案末尾增加export PATH=$PATH:/usr/lpp/mmfs/bin4,    建立目錄,用做GPFS檔案系統(三台主機上運行)mkdir /db2fs5,    建立gpfs 群集設定檔[root@wtydb21 tmp]# vi /tmp/gpfsprofilewtydb21:quorum-managerwtydb22:quorum-managerwtydb23:quorum-manager6,建立叢集,注意指定ssh方式[root@wtydb21 pam.d]# [root@wtydb21 gpfs]# mmcrcluster -N /tmp/gpfsprofile  -p wtydb21 -s wtydb22  -C gpfs_cluster -r /usr/bin/ssh -R /usr/bin/scpSat Apr  6 12:17:35 CST 2013: mmcrcluster: Processing node wtydb21Sat Apr  6 12:17:35 CST 2013: mmcrcluster: Processing node wtydb22Sat Apr  6 12:17:38 CST 2013: mmcrcluster: Processing node wtydb23mmcrcluster: Command successfully completedmmcrcluster: Warning: Not all nodes have proper GPFS license designations.    Use the mmchlicense command to designate licenses as needed.mmcrcluster: Propagating the cluster configuration data to all  affected nodes.  This is an asynchronous process. mmcrcluster 命令其中參數含義-C bgbcrun 設定叢集名稱-U bgbc 定義網域名稱-N /tmp/gpfs/nodefile 指定節點檔案名稱-p NSD1 指定主NSD 伺服器為 NSD1-s NSD1 指定備NSD 伺服器為 NSD17,接受許可協議[root@wtydb21 pam.d]# mmchlicense server --accept -N wtydb21,wtydb22,wtydb238,確認建立叢集狀況[root@wtydb21 ~]# mmlscluster[root@wtydb21 gpfs]# mmlscluster GPFS cluster information========================  GPFS cluster name:         gpfs_cluster.wtydb21  GPFS cluster id:           12146727015547904479  GPFS UID domain:           gpfs_cluster.wtydb21  Remote shell command:      /usr/bin/ssh  Remote file copy command:  /usr/bin/scp GPFS cluster configuration servers:-----------------------------------  Primary server:    wtydb21  Secondary server:  wtydb22  Node  Daemon node name  IP address   Admin node name  Designation-------------------------------------------------------------------   1   wtydb21           10.4.52.101  wtydb21          quorum-manager   2   wtydb22           10.4.52.102  wtydb22          quorum-manager   3   wtydb23           10.4.52.103  wtydb23          quorum-manager9,產生nsd 盤,使用/dev/dm-3 [root@wtydb21 etc]# vi /tmp/nsdprofiledm-3:::dataAndMetadata::[root@wtydb21 gpfs]#  mmcrnsd -F /tmp/nsdprofilemmcrnsd: Processing disk dm-3mmcrnsd: Propagating the cluster configuration data to all  affected nodes.  This is an asynchronous process. 此時系統自動修改/tmp/gpfsnsdprofile 檔案內容如下:[root@wtydb21 ~]# cat /tmp/nsdprofile# dm-4:::dataAndMetadata::gpfs1nsd:::dataAndMetadata:-1::system 10,啟動叢集[root@wtydb21 /]# mmstartup -a.[root@wtydb21 src]# mmgetstate -a -L  Node number  Node name       Quorum  Nodes up  Total nodes  GPFS state  Remarks    ------------------------------------------------------------------------------------       1      wtydb21            2        2          3       active      quorum node       2      wtydb22            2        2          3       active      quorum node       3      wtydb23            2        2          3       active      11,建立gpfs 檔案系統[root@wtydb21 src]# mmcrfs /db2fs gpfs_lv -F /tmp/nsdprofile -A yes -n 30 -v no The following disks of gpfs_lv will be formatted on node wtydb21:    gpfs1nsd: size 100829184 KBFormatting file system ...Disks up to size 848 GB can be added to storage pool system.Creating Inode FileCreating Allocation MapsCreating Log FilesClearing Inode Allocation MapClearing Block Allocation MapFormatting Allocation Map for storage pool systemCompleted creation of file system /dev/gpfs_lv.mmcrfs: Propagating the cluster configuration data to all  affected nodes.  This is an asynchronous process. 參數含義如下:/datafs 檔案系統 mount 點名gpfs_lv 指定檔案系統 lv 名-F 指定 NSD 的檔案名稱-A 自動 mount 選項為 yes-B 塊大小為64K-n 掛載檔案系統的節點估計數30 個-v 校正建立磁碟是否已有檔案系統 為否12,掛載檔案系統[root@wtydb21 /]# mount /db2fs[root@wtydb21 /]# df 13,設定gpfs 開機自啟[root@wtydb21 /]# mmchconfig autoload=yes 14,查詢GPFS 配置資訊[root@wtydb21 share]# mmlsconfig [root@wtydb21 share]# mmgetstate -a 15,備忘:第一次安裝gpfs後,版本不對,導致資料庫不能正確啟動,下載並升級後3.5.0.2後問題解決[root@sdcmpdb1 ~]# mmstartup -ammstartup: Required service not applied. Install GPFS 3.5.0.1 or later.mmstartup: Command failed.  Examine previous error messages to determine cause.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.