配置本地Yum源
[root@localhost home]# ls
Kylin10SP220210524x86.iso sa13
[root@localhost home]# mkdir /mnt/iso
mkdir: 无法创建目录 “/mnt/iso”: 文件已存在
------------将ISO挂载至本地创建的目录。
[root@localhost home]# mount -o loop Kylin10SP220210524x86.iso /mnt/iso
mount: /mnt/iso: WARNING: source write-protected, mounted read-only.
root@localhost home]# cat /etc/yum.repos.d/kylin.repo
[kylin]
name=kylin
baseurl=file:///mnt/iso
gpgcheck=0
enabled=1
使用Yum安装sos
[root@localhost ~]# yum provides sos
上次元数据过期检查:2 days, 9:22:43 前,执行于 2024年03月04日 星期一 10时17分09秒。
sos-3.9.1-2.p01.ky10.noarch : A set of tools to gather troubleshooting information from a system
仓库 :@System
匹配来源:
提供 : sos = 3.9.1-2.p01.ky10
sos-3.9.1-2.p01.ky10.noarch : A set of tools to gather troubleshooting information from a system
仓库 :kylin
匹配来源:
提供 : sos = 3.9.1-2.p01.ky10
-------------通过本地yum源安装sos软件包。
[root@localhost ~]# yum install sos
上次元数据过期检查:0:00:51 前,执行于 2024年03月06日 星期三 19时40分04秒。
依赖关系解决。
=========================================================================================================================================================================================
Package Architecture Version Repository Size
=========================================================================================================================================================================================
安装:
sos noarch 3.9.1-2.p01.ky10 kylin 506 k
事务概要
=========================================================================================================================================================================================
安装 1 软件包
总计:506 k
安装大小:1.6 M
确定吗?[y/N]: y
下载软件包:
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
准备中 : 1/1
安装 : sos-3.9.1-2.p01.ky10.noarch 1/1
运行脚本: sos-3.9.1-2.p01.ky10.noarch 1/1
/sbin/ldconfig: /usr/lib64/libLLVM-7.so 不是符号链接
验证 : sos-3.9.1-2.p01.ky10.noarch 1/1
已安装:
sos-3.9.1-2.p01.ky10.noarch
完毕!
使用sos收集日志
[root@localhost ~]# sosreport
sosreport (version 3.9)
This command will collect diagnostic and configuration information from
this Kylin system and installed applications.
An archive containing the collected information will be generated in
/var/tmp/sos.yfhmy6l7 and may be provided to a Kylin support
representative.
Any information provided to Kylin will be treated in accordance with the
published support policies at:
http://www.kylinos.cn
The generated archive may contain data considered sensitive and its
content should be reviewed by the originating organization before being
passed to any third party.
No changes will be made to system configuration.
按 ENTER 键继续,或者 CTRL-C 组合键退出。
Please enter the case id that you are generating this report for []:
Setting up archive ...
Setting up plugins ...
[plugin:firewalld] skipped command 'nft list ruleset': required kmods missing: nf_tables. Use '--allow-system-changes' to enable collection.
[plugin:networking] skipped command 'nft list ruleset': required kmods missing: nf_tables.
[plugin:networking] skipped command 'ip -s macsec show': required kmods missing: macsec. Use '--allow-system-changes' to enable collection.
[plugin:networking] skipped command 'ss -peaonmi': required kmods missing: inet_diag, tcp_diag, unix_diag, af_packet_diag, udp_diag, netlink_diag. Use '--allow-system-changes' to enable collection.
Your sosreport has been generated and saved in:
/var/tmp/sosreport-localhost-20240306194119.tar.xz
Size 20.99MiB
Owner root
md5 956682e9523e189485812a5cca2964a4
Please send this file to your support representative.