13.挂载文件系统:
[root@Web02_a ras]# mmmount /vol_data -a
Fri Jan 24 20:04:25 CST 2014: mmmount:Mounting file systems ...
[root@Web02_a ras]# df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda3 ext3 19G 11G 7.0G 60% /
/dev/sda1 ext3 190M 12M 169M 7% /boot
tmpfs tmpfs 123M 0 123M 0% /dev/shm
/dev/vol_data gpfs 814M 333M 481M 41% /vol_data
[root@Nagios ras]# df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda3 ext3 6.6G 3.5G 2.8G 56% /
/dev/sda1 ext3 190M 12M 169M 7% /boot
tmpfs tmpfs 249M 0 249M 0% /dev/shm
/dev/vol_data gpfs 814M 333M 481M 41% /vol_data
安装完成。
14.开机自启动
mmchconfig autoload=yes
或在/etc/rc.local中添加:/usr/lpp/mmfs/bin/mmstartup -a
15.可靠性测试
down掉Nagiogs服务器测试。看数据是否读取正常
[root@Web02_a ras]# cd /vol_data/
[root@Web02_a vol_data]# cp /etc/hosts .
[root@Web02_a vol_data]# ll
total 0
-rw-r--r-- 1 root root 375 Jan 26 09:25hosts
[root@Web02_a vol_data]# cat hosts
# Do not remove the following line, orvarious programs
# that require network functionality willfail.
127.0.0.1 localhost.localdomain localhostbogon
::1 localhost6.localdomain6 localhost6
10.0.0.236 Web02_a
10.0.0.243 Nagios
[root@Web02_a vol_data]# ssh Nagios
Last login: Sun Jan 26 09:08:28 2014 fromweb02_a
[root@Nagios ~]# /etc/init.d/networkstop #down掉Nagios服务器网卡
Shutting down interface eth0:
[root@Web02_a vol_data]# mmgetstate -a #查看状态已经有一个节点down掉
Nodenumber Node name GPFS state
------------------------------------------
1 Web02_a active
2 Nagios unknown
[root@Web02_a vol_data]# cat/vol_data/hosts #还能正常读取,保证集群的高可用。
# Do not remove the following line, orvarious programs
# that require network functionality willfail.
127.0.0.1 localhost.localdomain localhostbogon
::1 localhost6.localdomain6 localhost6
10.0.0.236 Web02_a
10.0.0.243 Nagios