vi ~/.bashrc
添加
PATH=$PATH:/usr/lpp/mmfs/bin
立即生效
source ~/.bashrc
2.2.4
、创建节点描述文件
Vi /tmp/gpfs_node
10.3.164.24 node1:quorum-manager
10.3.164.25 node2:quorum-manager
2.2.5
、创建磁盘描述文件
/dev/hdb:node1:::1:GPFSNSD1
2.2.6
、创建主机信任文件
2.2.6.1
、
以下命令分别在
node1
和
node2
上都执行一遍
#mkdir ~/.ssh
#chmod 700 ~/.ssh
#ssh-keygen -t rsa
#ssh-keygen -t dsa
2.2.6.2
、在
node1
上执行以下命令
#cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
#cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
#ssh node2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
#ssh node2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
#scp ~/.ssh/authorized_keys node2:~/.ssh/authorized_keys
2.2.6.3
、测试两个节点的连接等效性
#ssh node1 date
#ssh node2 date
2.2.7
、
确认连接磁盘
#fdisk
–
l
Disk /dev/sda: 16.1 GB, 16106127360 bytes
255 heads, 63 sectors/track, 1958 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot
Start
End
Blocks
Id
System
/dev/sda1
*
1
13
104391
83
Linux