GPFS在Linux下安装过程简述

6 篇文章 0 订阅

1.安装GPFS包

#rpm –ivh *.rpm
(gpfs.base-3.1.0-1.x86_64,gpfs.docs-3.1.0-1.noarch,gpfs.gpl-3.1.0-1.noarch,gpfs.msg.en_US-3.1.0-1.noarch)
2. 安装GPFS升级包

rpm –Uvh *.rpm
(gpfs.base-3.1.0-8.x86_64,gpfs.docs-3.1.0-8.noarch,gpfs.gpl-3.1.0-8.noarch,gpfs.msg.en_US-3.1.0-8.noarch)

3. 编译

#cd /usr/lpp/mmfs/src/config
#cp site.mcr.proto site.mcr 
#vi site.mcr
参考 README 修改site.mcr
#cd /usr/lpp/mmfs/src
#export SHARKCLONEROOT=/usr/lpp/mmfs/src
#make Autoconfig
#make InstallImages
#cd /usr/lpp/mmfs/bin

/* Copy bin files to all the other nodes */

4. 系统优化:

mmchconfig pagepool=1000M (4M-1/2内存总量)
mmchconfig maxFilesToCache =1700(default,1-100000)
maxStatCache (4 × maxFilesToCache )
Aggregate network interfaces 
Swap space (2 x total of mem)

updatedb considerations (skip gpfs) important

Suggested starting points are: 
mmchconfig prefetchThreads=18
mmchconfig worker1Threads=24 

Verify /proc/sys/net/ipv4/tcp_window_scaling is enabled. It should be by default. 

Tune the TCP window settings by adding these lines to the /etc/sysctl.conf file:
# increase Linux TCP buffer limits 
net.core.rmem_max = 8388608 
net.core.wmem_max = 8388608 
# increase default and maximum Linux TCP buffer sizes 
net.ipv4.tcp_rmem = 4096 262144 8388608 
net.ipv4.tcp_wmem = 4096 262144 8388608 
# increase max backlog to avoid dropped packets 
net.core.netdev_max_backlog=2500 

A. Issue the sysctl -p /etc/sysctl.conf command to set the kernel settings. 
B. Issue the mmstartup -a command to restart GPFS 


5 .创建GPFS集群

#/usr/lpp/mmfs/bin/mmcrcluster -t lc -p io1 -s io2 -n
/tmp/gpfs.nodes -r /usr/bin/ssh -R /usr/bin/scp
List the GPFS cluster details using:
#/usr/lpp/mmfs/bin/mmlscluster

6. 启动 GPFS
mmstartup -a

7. 磁盘定义
cat /tmp/gpfs.disks
/dev/sda:io1::dataAndMetadata:-1
/dev/sdb:io2::dataAndMetadata:-1
....
#cp /tmp/gpfs.disks /tmp/gpfs.disks.bak
#/usr/lpp/mmfs/bin/mmcrnsd -F /dump/gpfs.disks -v yes
#mmlsnsd

8.创建GPFS文件系统
# mmcrfs /gpfs1 gpfs1 -F /tmp/gpfs.disks1 -A yes

9.增加GPFS客户端
#mmaddnode -N node1
#mmaddnode -N node2

 

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值