在同一台主机上zfs和gluster无法同时安装
centos7上安装zfs
https://blog.csdn.net/linuxnews/article/details/51286358
1、获取163yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
2、安装zfs的yum源
yum -y install http://download.zfsonlinux.org/epel/zfs-release.el7_3.noarch.rpm
3、安装zfs
yum -y install kernel zfs
1 | yum localinstall --nogpgcheck http://epel.mirror.net.in/epel/7/x86_64/e/epel-release-7-5.noarch.rpm |
1 | yum install kernel-devel zfs |
zfs命令 ——> https://docs.oracle.com/cd/E26926_01/html/E29115/zfs-1m.html
zpool命令 ——> https://docs.oracle.com/cd/E26926_01/html/E29115/zpool-1m.html
安装gluster
1、获取163yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
2、安装最新版本的gluster软件仓库:
yum -y install centos-release-gluster310
3、安装gluster软件:
yum -y install glusterfs glusterfs-server glusterfs-fuse glusterfs-cli glusterfs-geo-replication
4、 查看版本信息:
glusterfs -V
CentOS 7 升级内核到4.4.6 LTS
rpm –import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
yum –enablerepo=elrepo-kernel install kernel-lt-devel kernel-lt -y
awk -F\’ ‘$1==”menuentry “ {print $2}’ /etc/grub2.cfg
grub2-set-default xxxx reboot
uname -r