登录ovirt,安装gluster报错。
[root@ovirt102 ~]# yum install centos-release-gluster -y
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 3:13:29 ago on Wed May 18 14:17:11 2022.
No match for argument: centos-release-gluster
Error: Unable to find a match: centos-release-gluster
[root@ovirt102 ~]# dnf install -y epel-release
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 3:14:49 ago on Wed May 18 14:17:11 2022.
All matches were filtered out by exclude filtering for argument: epel-release
Error: Unable to find a match: epel-release
解决 Failed to set locale, defaulting to C.UTF-8问题
[root@ovirt102 ~]# Failed to set locale, defaulting to C.UTF-8
-bash: Failed: command not found
[root@ovirt102 ~]# echo "export LC_ALL=en_US.UTF8" >> /etc/profile
[root@ovirt102 ~]# source /etc/profile
node status: OK
See `nodectl check` for more information
Admin Console: https://172.16.100.108:9090/
安装安装epel源,报Error: Unable to find a match错误
[root@ovirt102 ~]# dnf install -y epel-release
Last metadata expiration check: 3:15:28 ago on Wed 18 May 2022 02:17:11 PM CST.
All matches were filtered out by exclude filtering for argument: epel-release
Error: Unable to find a match: epel-release
[root@ovirt102 ~]# All matches were filtered out by exclude filtering for argument: epel-releaseyum install –y epel-release^C
[root@ovirt102 ~]# yum install –y epel-release
Last metadata expiration check: 3:16:13 ago on Wed 18 May 2022 02:17:11 PM CST.
No match for argument: –y
All matches were filtered out by exclude filtering for argument: epel-release
Error: Unable to find a match: –y epel-release
[root@ovirt102 ~]# cat /etc/redhat-release
CentOS Stream release 8
[root@ovirt102 ~]# wget
-bash: wget: command not found
[root@ovirt102 ~]# dnf install wget
Last metadata expiration check: 3:19:17 ago on Wed 18 May 2022 02:17:11 PM CST.
All matches were filtered out by exclude filtering for argument: wget
Error: Unable to find a match: wget
[root@ovirt102 ~]# Error: Unable to find a match: wget^C
直接yum安装,解决Error: Unable to find a match: 问题
[root@ovirt102 ~]# ping www.163.com
PING z163picipv6.v.bsgslb.cn (221.233.240.110) 56(84) bytes of data.
64 bytes from 221.233.240.110 (221.233.240.110): icmp_seq=1 ttl=54 time=13.3 ms
64 bytes from 221.233.240.110 (221.233.240.110): icmp_seq=2 ttl=54 time=12.10 ms
64 bytes from 221.233.240.110 (221.233.240.110): icmp_seq=3 ttl=54 time=12.9 ms
^C
--- z163picipv6.v.bsgslb.cn ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 12.947/13.072/13.274/0.195 ms
[root@ovirt102 ~]# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Last metadata expiration check: 3:21:27 ago on Wed 18 May 2022 02:17:11 PM CST.
epel-release-latest-8.noarch.rpm 16 kB/s | 23 kB 00:01
Dependencies resolved.
================================================================================
Package Architecture Version Repository Size
================================================================================
Installing:
epel-release noarch 8-15.el8 @commandline 23 k
Transaction Summary
================================================================================
Install 1 Package
Total size: 23 k
Installed size: 32 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : epel-release-8-15.el8.noarch 1/1
Running scriptlet: epel-release-8-15.el8.noarch 1/1
Verifying : epel-release-8-15.el8.noarch 1/1
Persisting: epel-release-latest-8.noarch.rpm
Installed:
epel-release-8-15.el8.noarch
Complete!
[root@ovirt102 ~]#
[root@ovirt102 ~]# cd /etc/yum.repos.d/
[root@ovirt102 yum.repos.d]# ls
CentOS-Stream-AppStream.repo CentOS-Stream-ResilientStorage.repo
CentOS-Stream-BaseOS.repo CentOS-Stream-Sources.repo
CentOS-Stream-Debuginfo.repo epel-modular.repo
CentOS-Stream-Extras.repo epel.repo
CentOS-Stream-HighAvailability.repo epel-testing-modular.repo
CentOS-Stream-Media.repo epel-testing.repo
CentOS-Stream-NFV.repo node-optional.repo
CentOS-Stream-PowerTools.repo ovirt-4.4-dependencies.repo
CentOS-Stream-RealTime.repo ovirt-4.4.repo
安装wget仍报错。
[root@ovirt102 yum.repos.d]# yum install wget -y
Last metadata expiration check: 0:03:07 ago on Wed 18 May 2022 05:47:05 PM CST.
All matches were filtered out by exclude filtering for argument: wget
Error: Unable to find a match: wget
再次安装glusterfs,仍提示报错
[root@ovirt102 yum.repos.d]# yum install centos-release-gluster -y
Last metadata expiration check: 0:07:17 ago on Wed 18 May 2022 05:47:05 PM CST.
No match for argument: centos-release-gluster
Error: Unable to find a match: centos-release-gluster
3.配置安装源(此步骤最好使用xshell登录操作,方便复制)
进入repos.d目录
cd /etc/yum.repos.d
创建glusterfs.repo文件
vi glusterfs.repo
写入下列内容
[glusterfs-epel] name=GlusterFS is a clustered file-system capable of scaling to several petabytes. baseurl=https://buildlogs.centos.org/centos/7/storage/x86_64/gluster-3.10/ enabled=1 skip_if_unavailable=1 gpgcheck=0