Board logo

标题: IBM dashDB Local 从入门到精通,第 4 部分 dashDB local MPP Linux 安装指南(11) [打印本页]

作者: look_w    时间: 2017-12-18 10:19     标题: IBM dashDB Local 从入门到精通,第 4 部分 dashDB local MPP Linux 安装指南(11)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[root@i-si5oq07a src]# <strong>mv /etc/redhat-release/etc/redhat-release.original</strong><br>
[root@i-si5oq07a src]# <strong>cat/etc/redhat-release.original</strong><br>
CentOS Linux release 7.3.1611 (Core)<br>
[root@i-si5oq07a src]# <strong>echo "Red Hat Enterprise Linux Server release 7.3" > /etc/redhat-release</strong><br>
[root@i-si5oq07a src]# <strong>cat /etc/redhat-release</strong><br>
Red Hat Enterprise Linux Server release 7.3<br>
[root@i-si5oq07a src]# <strong>/usr/lpp/mmfs/bin/mmbuildgpl</strong><br>
--------------------------------------------------------<br>
mmbuildgpl: Building GPL module begins at Tue Feb 7 12:54:19 CST 2017.<br>
--------------------------------------------------------<br>
Verifying Kernel Header...<br>
... ...<br>
--------------------------------------------------------<br>
mmbuildgpl: Building GPL module completed successfully at Tue Feb 7 12:54:32 CST 2017.<br>
--------------------------------------------------------<br>
as results, it creates /usr/lpp/mmfs/src/config/env.mcr file:<br>
[root@i-8t7n6xp2 config]# <strong>more env.mcr</strong><br>
#define GPFS_ARCH_X86_64<br>
#define GPFS_LINUX<br>
LINUX_DISTRIBUTION := REDHAT_AS_LINUX<br>
#define LINUX_KERNEL_VERSION 31000514<br>
KERNEL_BUILD_DIR := /usr/src/kernels/3.10.0-514.6.1.el7.x86_64<br>
[root@i-8t7n6xp2 config]#<br>
[root@i-si5oq07a src]# <strong>cd /lib/modules/`uname -r`/extra</strong><br>
[root@i-si5oq07a extra]# <strong>ls -l</strong><br>
total 4040<br>
-rw-r--r-- 1 root root 3508824 Feb 7 12:54 mmfs26.ko<br>
-rw-r--r-- 1 root root 554336 Feb 7 12:54 mmfslinux.ko<br>
-rw-r--r-- 1 root root 68648 Feb 7 12:54 tracedev.ko




1
2
3
4
5
6
7
[root@i-8t7n6xp2 ~]# <strong>/usr/lpp/mmfs/bin/mmmount clusterfs /mnt/clusterfs
     -N all</strong><br>
Tue Feb 7 19:55:24 CST 2017: mmmount: Mounting file systems ...<br>
i-8t7n6xp2: Warning: Permanently added 'i-8t7n6xp2,192.168.0.2' (ECDSA) to the list of known hosts.<br>
i-oisebqqf: Warning: Permanently added 'i-oisebqqf,192.168.0.3' (ECDSA) to the list of known hosts.<br>
i-si5oq07a: Warning: Permanently added 'i-si5oq07a,192.168.0.4' (ECDSA) to
    the list of known hosts.




我们可以通过 mmlsmount 命令查看文件系统挂接状态
1
2
[root@i-8t7n6xp2 ~]#<strong> /usr/lpp/mmfs/bin/mmlsmount all</strong><br>
File system clusterfs is mounted on 3 nodes.




1
2
关闭 GPFS 节点<br><strong>/usr/lpp/mmfs/bin/mmumount all -a</strong><br><strong>/usr/lpp/mmfs/bin/mmshutdown -a</strong><br>
启动 gpfs 节点<br><strong>/usr/lpp/mmfs/bin/mmstartup -a</strong><br><strong>/usr/lpp/mmfs/bin/mmgetstate -a -L</strong><br><strong>/usr/lpp/mmfs/bin/mmmount all -a</strong>






欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0