How to install GPFS 3.5 in RHEL6

Source: Internet
Author: User

Install GPFS 3.5 in RHEL6. The file system of the gpfs cluster has three hosts as an example. 1. Install gpfs software (run on three hosts). This installation is directly installed from the db2 purescale installation media, for other installation methods, see yum install/tmp/gpfs /*. rpmrpm-qa gpfs verification software has been correctly installed 2. compile the relevant software, after the rpm package is installed, cd/usr/lpp/mmfs/src & make Autoconfig & make World & make InstallImages [root @ linux1 src] # make rpm is installed and compiled the automatically generated RPM package 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, modifying the PATH (run on three hosts In the HOME directory of the three hosts. Bash_profile file, add export PATH = $ PATH:/usr/lpp/mmfs/bin4 at the end of the file, create a directory, and use it as the GPFS File System (run on three hosts) mkdir/db2fs5, create gpfs cluster profile [root @ wtydb21 tmp] # vi/tmp/gpfsprofilewtydb21: quorum-managerwtydb22: quorum-managerwtydb23: quorum-manager6, create cluster, note specifying ssh mode [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 2 013: 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 restart: 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 command in which parameter meaning-C bgbcrun Set cluster name-U bgbc definition domain name-N/tmp/gpfs/nodefile specify node file name-p NSD1 specify master NSD server for NSD1-s NSD1 specify slave NSD the server is NSD17, accept the license agreement [root @ wtydb21 pam. d] # mmchlicense server -- accept-N wtydb21, wtydb22, wtydb238. Confirm the cluster creation status [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: wty Db22 Node Daemon node name IP address Admin node name Designation interval 1 wtydb21 10.4.52.101 wtydb21 quorum-manager 2 wtydb22 blocks wtydb22 quorum-manager 3 wtydb23 blocks wtydb23 quorum-manager9 to generate nsd disks, use/dev/dm-3 [root @ wtydb21 etc] # vi/tmp/nsdprofiledm-3: dataAndMetadata: [root @ wtydb21 gpfs] # mmcrnsd-F/tmp/nsdprofilemm Crnsd: Processing disk dm-3mmcrnsd: Propagating the cluster configuration data to all affected nodes. This is an asynchronous process. the system automatically modifies the/tmp/gpfsnsdprofile file as follows: [root @ wtydb21 ~] # Cat/tmp/nsdprofile # dm-4: dataAndMetadata: gpfs1nsd: dataAndMetadata:-1: system 10, start the Cluster [root @ wtydb21/] # mmstartup-. [root @ wtydb21 src] # mmgetstate-a-L Node number Node name Quorum Nodes up Total nodes GPFS state Remarks limit 1 wtydb21 2 2 3 active quorum node 2 wtydb22 2 2 3 active quorum node 3 wtydb23 2 2 3 Ctive 11, create A gpfs File System [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 MapFo Rmatting 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. the parameter description is as follows: /datafs file system mount name gpfs_lv specify File System lv name-F specify NSD file name-A automatic mount option is yes-B block size 64K-n mount file system estimated number of nodes 30 -v: Check whether the existing file system of the created disk is no 12, mount the file system [root @ wtydb21/] # mount/db2fs [root @ wtydb21/] # df 13, set gpfs Start automatically [root @ wtydb21/] # mmchconfig autoload = yes 14, query GPFS configuration information [root @ wtydb21 share] # mmlsconfig [root @ wtydb21 share] # mmgetstate-a 15, note: after the first installation of gpfs, the version is incorrect, causing the database to fail to start properly. After downloading and upgrading, the problem will be solved after 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.